ID:171389
 
Its amazing! no matter how many times my PC's do pressups, they never get tired! AT ALL!

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...
Is press-up British for push-up?

~Kujila
In response to Kujila
yes :)
In response to Farkas
Hate to have an irrelevant post, but clear up your in-game language.
"nope your flyin" ruins the atmosphere- would the ethereal, ghostly voice in your head really forget things like punctuation?
In response to Kholint
My game is no where near finished, that text is simply there to make sure everything is going right, I am not some 12 year old who types like they are handicapped, with, OMFG I totally r00lz j00 cos i am da c000lest! IDST 4EVA! My game will have correct english, so every one can read it.

Thanks for your comments though,

Farkas