mob/proc/Runpop()
world.Repop()
if(agemark==0)
spawn(1000)
usr.agemark=1
else if(agemark==1)
spawn(1000)
usr.agemark=2
else if(agemark==2)
spawn(1000)
usr.agemark=3
else if(agemark==3)
spawn(1000)
usr.agemark=4
else if(agemark==4)
spawn(1000)
usr.agemark=5
usr<<"Client Info: Half of a year has passed"
else if(agemark==5)
spawn(1000)
usr.agemark=6
else if(agemark==6)
spawn(1000)
usr.agemark=7
else if(agemark==7)
spawn(1000)
usr.agemark=8
else if(agemark==8)
spawn(1000)
usr.agemark=9
else if(usr.agemark==9)
spawn(1000)
usr.Age += 1
if(usr.Age==40)
usr<<"Client Info: As you stand there your body feels weak, and your mind fogs. At that moment you realize your life as a warrior has come to an end"
spawn(10)
del(usr)
else
usr<<"Client Info: A year passes as you get older (you are [usr.Age])"
usr.agemark=0
Runpop()
Problem description:I was wondering if there is a more efficent way of coding this.
-Krow
By Eris, that's scary.
Why don't you just add one to that variable, and then check what it is for things that happen at different months?
Oh, and don't use usr in procs. usr is likely null there.