ID:169230
 
How would I make it so stat(src) updates constantly?

Example: If you're standing south, and you move north then east, and you still had the stat panel open, your icon wouldn't update in the panel.
mob
Stat()
statpanel("Statistics")
stat(src)
stat("Health:","[usr.health]/[usr.maxhealth]")
stat("Magic:","[usr.mp]/[usr.maxmp]"
I thought it is updated every tick.... try
mob/New()
..()
spawn while(1)
Stat()
sleep(1)

I'm not sure if this is good though...
In response to CIB
runtimes everywhere..
(sorry for delay i haven't been online in awhile)
It updates everytime you re-open the statpanel.
You shouldn't unless you want your game to lag constantly and crash after a few short minutes of running. Currently it's updated about every 8 ticks, which is fine, anything more would be a lot of overhead with more than one user.