Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   new controll? (https://forums.graalonline.com/forums/showthread.php?t=20989)

XeroMaster 01-12-2002 01:20 PM

new controll?
 
how can I make a pic with difrent opsons---

like the clothes changer on graal...

I just ned some helt on how I could hilight diffrent parts

Goboom 01-14-2002 09:28 AM

you would have to do it by npc scripting totaly!!! you either have to make multiple gifs or have them all in one and use changeimgpart or setgifpart alot!!

Python523 01-14-2002 09:41 AM

Re: new controll?
 
Quote:

Originally posted by XeroMaster
how can I make a pic with difrent opsons---

like the clothes changer on graal...

I just ned some helt on how I could hilight diffrent parts

*hands Xero a spell check* Use it well

XeroMaster 01-14-2002 08:58 PM

I know ......
 
it can be scripted offline because the galixy minigame have the script, it has a post in npc scripting to.

it has :

Start
OPTIONS
Star

TDO2000 01-14-2002 11:02 PM

Re: I know ......
 
Quote:

Originally posted by XeroMaster
it can be scripted offline because the galixy minigame have the script, it has a post in npc scripting to.

it has :

Start
OPTIONS
Star

showimg index,@text here,x,y;

changeimgcolor index,red,green,blue,alpha;

and use keydowns to steer through the menue...

if u want the text bigger if it's higlighted use changeimgzoom...

Loriel 01-15-2002 02:49 AM

You use one showimg to draw the background, and one for each of the options. Then you do a this.cursor variable that gets increased/decreased depending on timeout...

Sennema 01-15-2002 08:11 AM

Yeah, pretty much what they said. You'd first start off with a timeout=.05, then in a timeout loop have a this.timer=(this.timer+1)%3 (I picked that one up from one of Liquid's item scripts. It sorta moderates the cursor speed.)
Then use this.pos or something to keep track of the cursor position, with a %# (# is 1 higher than the max value).
Then use showimg, with x and y using screenwidth and screenheight (use division)
Then use something like
NPC Code:

if(keydown(key)&&this.timer=2){
script;
}



There. I also proved to myself I didn't forget what I was doing over my almost 2-month holiday.

All the same, hope that helps.

XeroMaster 01-15-2002 08:18 AM

???
 
what?!?!?

I do not understand what you peole are saying,

could some one give ne the graal 2001 clothes changer
script so I can get it from there!!

PLEASE

Mrmicro 01-16-2002 04:49 AM

You people think hes talking about the z-clothing thing... Hes talking about the one in the humen start place!


All times are GMT +2. The time now is 07:39 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.