ID:273942
 
I have some turfs that activate commands through the Click() proc. Problem is if I try to put in a var that is under mob/var it wont work. If i try to link it to a global var that wont work either. I want to activate a var that I can link to mobs within a turf's Click() proc. Is there any way to make this possible?
Try using arguements.

mob/var
coolness=0

turf
cool
icon='cool.dmi'
icon_state="cool"
Click(mob/M in view(0))
M.coolness=1

This compiles fine and should work although I didnt test it
If you're wanting to reference the mob of the client who is clicking, then you can use usr to reference their mob.

E.g.:

mob/var/something = 1

turf/Click()
world << usr.something
In response to ANiChowy (#2)
Thanks for your help it's now working fine.