ID:144107
 
Code:
var/flypower = "100"

verb/Fly()
usr<<"you have [flypower] fly points"
usr.density=0
sleep(flypower*10)
usr<<"fly points have ran out"
usr.density=1


Problem description:I want the player to fly for
as long as there fly point amount... it not working...

Whats the error?
In response to Torla2217
it won't work for when I wanna have a timer for the ppl who use it...
In response to Hellonagol
I ment when you compile it, what error do you have?
In response to Torla2217
no error it just don't work the way I want...
In response to Hellonagol
So how does it work? if(flypower*10) how long does 1 point give you, it should give you 1second. So does 100 starpower give you 100seconds?
var/flypower = "100"

verb/Fly()
usr<<"you have [flypower] fly points"
usr.density=0
spawn(flypower*10)
usr<<"fly points have ran out"
usr.density=1



Not sure but that may work...

-KirbyAllStar
In response to Torla2217
yes
In response to Hellonagol
Then it works fine, change the sleep to like 50 or 100, not 10 if you want more
In response to Torla2217
what does the proc sleep do? just wondering :P
In response to FretFulGun
Idk, im no good with codes xD. But each 10sleep is 1 second, so 600sleep is one minute.