world
New()
..()
spawn(150) Age1()
mob/var
age=0
deathage=0
year=0
powerlevel_max=0
ki_max=0
strength=0
speed=0
defence=0
proc/Age2()
spawn(72000) Age1()
proc/Age1()
src.year+=1
world<<"It is year [year].."
src.ki_max+=rand(1,15)
src.powerlevel_max+=rand(5,15)
src.strength+=rand(1,15)
src.speed+=rand(1,15)
src.defence+=rand(1,15)
Problem description: I don't know if I'm setting the age right, I'm aiming to make it to where the server itself will display a year and keep going while the server is running. Player is still gaining age even if logged out, it might not work but the error is that I have undefined variables when they're listed above as a variable.
If you look at your code, specifically the "Age1" proc, you will see that you are trying to change the "year", "ki_max" and "powerlevel_max" (among others) of the "src" object.
What is "src"? In this case, it is moot-- the proc is not attached to the mob, so it will not share its variables.
Changing proc/Age1() to mob/proc/Age1() will cause your "undefined variable" errors to vanish, but new errors will pop up: both world/New() nor proc/Age2() can call Age1() because it is no longer a global proc.
What you want to do here is do a so-called for loop, where you loop through every mob and call it's "Age1" proc.
Whilst the above will fix your problems, it will not fix your design issues. Your system is based upon a year. Every so often (every 7200 seconds), the year is increased and you want players to automatically become a little bit stronger.
Without further ado, I give you a working system. I'm just going to hope you're going to actually read it through and learn from it: