ID:167141
 
I was wondering, how I could bump into an NPC to make them start talking... Could somone show me how? NOTE: I mean you bump into him...
Like this

mob/Bump(atom/A)
if(istype(A, /obj/NPC))
var/obj/NPC/N = A
N.Talk(src) // call the NPC's Talk() proc when you bump into one, and send the bumper through the argument to know who bumped into it

obj/NPC
proc/Talk(mob/M)
M << "[src] says: Hello!" // display "Hello" to M, or whatever you want to do


~~> Unknown Person