ID:1621242
 
(See the best response by GhostAnime.)
Code:
mob
AI
NPC
Mother
icon = 'Icons/characters/mother.dmi'
density = 1
layer = 3
Click()
_message(usr, "Hello!","#FF33FF")


Problem description:

The Click Proc will not execute.
The Click proc is called when the player clicks an object

For starters, where is the obj?
Also, make sure that you are allowing it to be click-able.
Set mouse_opacity for the /obj to 2.

Another thing is make sure Click() isn't being used by the same object in another part of the code
Another thing is make sure Click() isn't being used by the same object in another part of the code

Click() can be defined multiple times provided the second compiled override calls ..()
In response to MasterGOA
MasterGOA wrote:
For starters, where is the obj?

He does not need Click() to be defined on an /obj, any /atom is okay including /mob as he has shown.

Set mouse_opacity for the /obj to 2.

It should be noted this should be the case if the Mother is transparent or has areas that are transparent and you do not want to ignore it on those areas. Review the DM entry for the settings for this variable.

Another thing is make sure Click() isn't being used by the same object in another part of the code

Yes, if you have another Click() function defined, be sure to call the parent procedure ..() to call the other instances. Without ..(), only that definition of the procedure is called.
Best response
Are you sure _message() correctly works? Output a message to world or world.log to make sure that the Click() is called.

What exactly IS the failure? What is the error message received?

Please provide the error you obtain and/or describe what exactly is wrong with it.