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:
What? Is that a script to look up or a line i should add on the end?
thnx mate :beer: