ID:157843
 
Well, a simple question here, I don't really understand how to make it but, how do I make a var in mob work in area? If I type the var which is in mob in area, it will give me the error "undefined var" >_>
Naturally, in order to access a mob's variable, you need to first have a mob (or more accurately, a mob reference stored in some var). Then you refer to it, and its var or proc, if you wish. Look up the . operator and read DM tutorials and guides for more info.
In response to Kaioken
Yeah well, I am trying to read the whole DM guide and I looked up the . operator but I still don't get it, could you or someone show an example of how it would work?

Thanks
In response to Enic
mob/verb/Access_a_mob_var()
var/mob/our_mob = src
src << our_mob.name