mob/var/training = 0
mob/var/stam = 10
mob/var/stamax = 10
mob/verb/Train()
set category = "Training"
usr << "You begin to train"
usr.training = 1
usr.stam -= rand(1,3)
usr.stamax += 1
usr.Pl += 0.1
usr.MaxPl += 0.1
train()
return
if(usr.training == 1)
usr.training = 0
usr << "You stop training"
return
proc
train()
if(usr.stam <= 1)
usr.training = 0
usr.stam = 1
usr.Pl += 0
usr.MaxPl += 0
usr.stamax += 0
usr << "your to tired"
else
usr.training = 1
return
Problem description: How do i make it loop so i dont have to keep clicking? and how do i make it that you dont gain Pl or Staimina when your on 1 stam? my way didn't work.