ID:139356
 
Code:
mob
var
charging
power

mob
verb
Charges()
charging=1
while(charging==1)
sleep(10)
power++
usr<<"[power]"
return





mob
verb
Releasez()
charging=0
if(charging==0&& power>=7)
usr<<"Ha"
Ki_Blast()
power=0
else
power=0
return


Problem description:
Im trying to get a decent charge system to work where i hold down the button then if you held it long enough overlay comes on and when released it fires a blast but if not reached the overlay part it just resets.

But from what i can see if i set the sleep over 10 it sometimes keeps counting even though i released it and the overlay doesn't instantly remove. So anyone got any mods to improve this alot more
         while(charging==1)
sleep(10)
power++
usr<<"[power]"
return// eh does this thing even loop?


remove the return and retest