mob/Guy
icon = 'guy.dmi'
Now, He has this verb...
mob/Guy
icon = 'guy.dmi'
verb/Talk()
set src in oview(1)
usr << "<B>Hello</b>"
What can i add in there if i wanted to make this verb only work when you are facing it?
Help would be appreciated.
ID:267242
![]() Jan 24 2003, 2:55 pm
|
|
Okay, pretend i have a mob called "Guy"
mob/Guy Now, He has this verb... mob/Guy What can i add in there if i wanted to make this verb only work when you are facing it? Help would be appreciated. |
![]() Jan 24 2003, 2:59 pm
|
|
look up get_step() I think.
|
<code>get_step(ref,dir)</code> returns the turf one step away from <code>ref</code> in <code>dir</code> direction. To check for something one step away:
mob/NPC Now, all NPCs that have their text var set to something will talk to you. Example: mob/NPC/Townsfolk And that's all you need for a townsfolk guy that will talk to you. Object Oriented Programming, gotta love it! |