ID:267657
 
Well, I got this problem. See, when I first go into the world, and press 5, center, to talk, it gives me this:

Unrecognized or inaccessible verb: Talk

But when I'm infront of the NPC and press 5, they don't say anything, but that error goes away. Then once I step away from the NPC and press 5, that error is gone. But, the NPC still doesn't say anything. So here's the NPC code:

mob
NPC
Girl
name = "Girl"
icon = 'Girl.dmi'
density = 1
verb
Talk()
set hidden = 1
src in oview(1)
usr << "Howdy [usr]!"

The indents got all messed up, so pay no attention to that. And also, I was wondering how to make it so that the NPC won't talk to me, unless I'm facing it. When I use the oview(1) code, it'll talk to me even if I'm back to back with it.. Which isn't what I want. Hopefully you understand, I don't think I can describe my problem any better without making myself look like a fool having a seizure. Help would be appeciated. Thanks.

Well, i havent really read much into using the Center button and all, BUT, i think you need to do this..
client/Center() //whenever client presses center
for(var/mob/NPC/M in get_step(usr,usr.dir))
Talk(M) // talks to mob one step infront of him

client/proc/Talk(mob/Person)
if(Person.name == "Girl") // if the persons name is Girl
usr << "Howdy [usr]"
mob/NPC/girl
name = "Girl"
icon = 'Girl.dmi'


I think thats what you'd have to do.