ID:162988
 
I need help on making a selecting system. If there is one can you please link it in a post. I want to make it so when you click on something it will be selected and the icon assigned with appear on it.
Look up Click() and overlays.
In response to Kaiochao2536
I know how to do those. >.>

atom/Click()
src.overlays += 'select.dmi'


I tried this. But it doesn't work.
Plus I need to make it so that the selected obj will be able to use a macro against. Like if you select a NPC it will Talk to it when you use the Macro.
In response to Akto
Make a mob variable called "var/mob/target" and change it to the selected thing. Make the macro talk to your target.

mob/var/mob/target
atom/movable/Click()
..()
usr.target.overlays-='select.dmi'
overlays+='select.dmi'