I have two NPC's, A and B.
A is wandering randomly around an area.
In this area, there are a few named waypoints.
Players can talk to B. Based on the conversation, A should walk to specified waypoints.
Example:
PC: Hi B
B: Hello, what do you want ?
PC: Please send A to the southern corner
B: sure.
[NPC A walks to the waypoint WP_SC]
I've thought I've done it right in this way, but the script isn't fired from the conversation:
Code: Select all
void main()
{
object oA = GetObjectByTag("NPC_A");
object oTarget = GetWaypointByTag("WP_SC");
AssignCommand(oA,ActionForceMoveToObject(oTarget));
}