world/mob = /mob/player
mob/var
level = 0
health = 100
mp = 50
mob/player/var
experience = 0
However, when I try and access the mob/player/var variables in mob/Stat()
mob/Stat ( )
if ( TEST_MODE && src.key = "Dayoak" ) //The statpanel is only there for me for quick access to variables for testing, TEST_MODE is a #define I have)
if ( statpanel ( "Stats" ) )
stat ( "Level" , level )
stat ( "Experience" , "[ experience ]/[ level * 10 ]" )
stat ( "Health" , health )
if ( statpanel ( "Server" ) )
stat ( "CPU" , "[ world.cpu ]%" )
error: experience : undefined var
I'm guessing client.statobj isn't set to /mob/player, however my Login() is set up through mob/player/Login(), shouldn't it set it to world/mob, or am I just going about this all wrong?