ID:261440
 
how to make someone age in my game.need code and try to explain how it works
Knuckles skater wrote:
how to make someone age in my game.need code and try to explain how it works

Well if you want age, just put

mob/var/age

that will give you age..what you do with that..or want to do with that your being much to vague...
In response to Darkness
i'm sorry i didn't say what i needed i need it so once you hit lets say age 10 your icon changes but then i need a system to make the years go by.
In response to Knuckles skater
I'm bored

mob
var
age = 1
maxage = 100
proc
age()
while(age != maxage)//while age isn't maxage
sleep(200)//20 ticks
age++//adds to the agevar
agecheck()//calls the proc I'm about to define
agecheck()
if(src.age == 10)
src.icon_state = "10 years"//changes their icon_state
src << "You're 10 years old now!"
else
return..()


There's a basic system for what you asked for.