Script Looping? -1 reply

Please wait...

extremeist

Because Extremist was taken

50 XP

29th July 2005

0 Uploads

114 Posts

0 Threads

#1 13 years ago

I was just doing some scripting in ye olde construction set and i am trying to get a script to loop. Does anyone know how? Here is the script as it stands now: ref self float time int go Begin OnEquip int go==1 set time to 0 if (time < 2) Player.additem Gold001 1 endif if (time > 2) set time to 0 int go == 0 endif End Basically, this script gives the player 1 gold every time it is equipped. However, i want it to continue to give 1 gold every 2 seconds but i can't think of any way to do this. Some kind of "if" function, i guess? Thanks for you help - person who helps the most gets this beer!>>:beer:




Daracaex

The Dragon

50 XP

22nd July 2006

0 Uploads

169 Posts

0 Threads

#2 13 years ago
extremeist

Because Extremist was taken

50 XP

29th July 2005

0 Uploads

114 Posts

0 Threads

#3 13 years ago

What? Is that a script to look up or a line i should add on the end?




extremeist

Because Extremist was taken

50 XP

29th July 2005

0 Uploads

114 Posts

0 Threads

#4 13 years ago

thnx mate :beer: