PushUp()
if(src.Meditate) return
if(src.Rest) return
if(src.Stamina <= 0) return
if(src.PushUp)
src.icon_state = ""
src.PushUp = 0
src << "<font size = 1>you have finished doing pushups"
return
else
goto STEP1
STEP1
src.icon_state = "pushup"
src.PushUp = 1
goto STEP2
STEP2
var/random= rand(1,12)
if(random == 6)
src << "<font size = 1>Your strength has increased by 1"
src.Strength += 1
if(random == 7)
src << "<font size = 1>Your maximum stamina has increased by 1"
src.MaxStamina += 1
sleep(50)
src.Stamina -= rand(1,2)
src.Exp += rand(1,5)
src.Level()
goto STEP3
STEP3
if(src.Stamina <= 0)
src << "<font size = 1>You are too tired to continue doing pushups"
src.icon_state = ""
src.PushUp = 0
return
else
goto STEP2
Problem description:
When I click the verb Push ups he does his push ups bla bla but when I push it again to make him stop it looks like hes stopped but hes still gaining exp, any ideas?
Dave