ID:266956
 
How do i make an area so when you go into it, it says something



ie. I have made a toilet icon and i want it so when someone goes on it, it says something like "arrrhhhh I needed that"


Can you help???
...

atom //atom, thus, can be replaced with any obj/turf/mob/area
Enter() //called when attempting to enter
world << "Attempting to enter"
Entered() //called when entered succsessfully
world << "Entered"
Exit() //called when attempting to exit
world << "Attempting to exit"
Exited() //called when exited succsessfully
world << "Exited"

[edit] Tpyo!
In response to Garthor
it came up with an error saying that


Emter() //called when attempting to enter



Admin.dm:96:error:Emter :undefined proc
In response to DBZAS_Vegeto
Oops, typo, should be Enter()
In response to Garthor
Garthor wrote:
...
Exit() //called when exited succsessfully
world << "Exited"

that should be the Exited() and not Exit()
just thought i would point that out
In response to Soori-99
Typo.
In response to Garthor
i thought so.
In response to Garthor
dont lie Garthor. You did that unperpous just to see if he'd be smart enough to know its Enter() and not Emter() :-P
In response to Branks
I didn't, it might've been my alternate personality though....