ID:164166
 
I'm having trouble with click...
turf
wall
Click()
if(usr.client.mouse_pointer_icon=='buymage.dmi')
if(!occupied)
if(usr.gold>=70)
usr.gold-=70
var/mob/defenders/Magician/m=new(src)
m.icon_state=usr.colour
m.owner+=usr
occupied=1
if(usr.gold<70)
usr.client.mouse_pointer_icon=null
else
usr<<"Magicians cost 70 gold."

But when I do this...

mob/defenders/Click()
usr<<"hi"

Nothing happens. Is it because I used new(src) to put new people on the right place? If so, what's another way?
Have you set a default icon for /mob/defenders? Are you actually clicking the /mob/defender when you expect to "hi" output?