Which is totally not what i want to happen,
Can some one show me how to, with this code, make it so that after 1 minute you stop because your knackered.
Ive tried over and over, but i cant get it to work!
mob/verb/PressUps()
set category = "Training"
if(!fly)
if(pressup)
usr.moveallow = 1
usr.icon_state = ""
usr.pressup = 0
usr << "You stop doing your press-ups"
return
if(!pressup)
usr.moveallow = 0
usr.icon_state = "pressup"
usr.pressup = 1
usr << "You start doing your press-ups"
var/strinc = rand(1,30)
if(strinc == 1)
src.strength += 2
src << "You feel stronger!"
if(strinc == 2)
src.strength += 4
src << "You feel MUCH stronger!"
else
..()
usr.Press_Ups()
if(fly)
usr << "Nope your flyin!"
return
mob/proc
Press_Ups(mob/M)
if(src.pressup)
sleep(20)
var/strinc = rand(1,10)
if(strinc == 1)
src.strength += 2
src << "You feel stronger!"
if(strinc == 2)
src.strength += 4
src << "You feel MUCH stronger!"
else
..()
Press_Ups()
if(!src.pressup)
return
Thanks in advance,
Farkas
~{EDIT}~
Nevermind... sorted it...
~Kujila