Gaming
 

Use waypoints with NPCs

From NWNWiki

Contents

[edit] Use Waypoints with NPCs

This is all done in the toolset for any basic Waypoint walking NPC.

  • Place your NPC where you want him/her/it to start at.
  • Right Click on the NPC and select "Create Waypoint".
  • Keeping the NPC Selected (Green box around it). Right-click where you want the NPC to walk to first and select "Create Waypoint".
  • Right-click again where you want it to move to next, and select "Create Waypoint"
  • Continue doing this until the path you want the NPC to take is complete. Make sure the NPC is "Selected" the entire time you are adding waypoints.

Look in the left side bar under Waypoints and you will see all the Waypoints you just added. Should look something like this.

WP_TagOfNPC_01
WP_TagOfNPC_02
WP_TagOfNPC_03

Ect.

[edit] NOTE

Make sure each NPC that is walking waypoints has a unique tag. If you place 5 guards and they all have the same tag, lets say GUARD, then ALL 5 guards will walk the SAME set of waypoints. Unless this is what you want them to do, change the tag of each one you want to walk a different set of Waypoints.

[edit] Adding Waypoint's Manually

You can add Waypoints manually by following the naming convention as shown above. Place down your Waypoint and change the tag to WP_TAGofNPC_01 incrimenting the number by 1 for each additional Waypoint.

This is handy for makeing NPCs Cross Transition boarders. Example: I place a guard in Area1 and have the following waypoints. (Guard Tag is GUARD)

WP_GUARD_01
WP_GUARD_02
WP_GUARD_03

Now I want the Guard to continue into Area2. So in Area2 I place three waypoints and change each TAG of the Waypoint to the following:

WP_GUARD_04
WP_GUARD_05
WP_GUARD_06

Now my NPC guard will walk back and forth between Area1 and Area2.

[edit] Known Issue

If there are no PCs in the area, then NPCs become lazy and don't want to continue walking their Waypoints. Sometimes the NPCs will leave Area1 into Area2 and not return until the PC enters Area2.