Var_Accessed(var_name,atom/Src) // Src is the owner of the var, if available (would be null for global vars and stuff)
world<<"[var name] accessed!"
switch(var_name)
if("h_pee")
if(ismob(Src))Src:UpdateHP()
mob/var/h_pee=1337
mob/verb/ChangeHP(a as num)
usr.h_pee=a // the var has been accessed! Var_Accessed() would be called.
mob/proc/UpdateHP()
winset(w.e)
Gets called whenever a var is accessed. This would simplify certain things so much. Instead of tracking every single var change by ourselves, just override that prawk.
(Turn vars into procs ftw? Is it possible?)