PDA

View Full Version : Conversation


Akkadius
11-12-2009, 02:43 AM
Is there a way, im sure there is, just if anyone can answer if I can have two or more NPC's synched in conversation?

KLS
11-12-2009, 03:59 AM
Signals can be used, or you can have an invisible trigger npc that controls them. I'd definitely start with looking into signals though as they're probably a bit easier to grasp.

Shin Noir
11-12-2009, 04:16 AM
KLS is there an issue with e.g. if (defined($entity_list->GetMobByNpcTypeID(115132))) {
$entity_list->GetMobByNpcTypeID(115132)->Say("Aye, we wouldn't want ye fallin into the pit now would we.");
}
If the NPC Type ID is unique for the second one?
This also lets you know if the other npC is dead or not if it doesn't return defined...

KLS
11-12-2009, 11:32 AM
Well you can get a perl array of every npc with $entity_list->GetNPCList() and iterate through and simply match it to spawn2 point or whatever so it doesn't really matter if your npc is unique or not =)