Moving NPC's
m4u
07 May 2014, 18:17Hi guys,
If I have rooms A->B->C, how to move a NPC from A to C but passing by B in a natural way? I mean by taking 2 turns instead of 1.
The question is meant for more complex maps and different routes. The NPC has to choose the shortest route.
Example: NPC's in "Suspended" by Infocom.
If I have rooms A->B->C, how to move a NPC from A to C but passing by B in a natural way? I mean by taking 2 turns instead of 1.
The question is meant for more complex maps and different routes. The NPC has to choose the shortest route.
Example: NPC's in "Suspended" by Infocom.

jaynabonne
07 May 2014, 18:31You could use this to compute the path from A to C:
viewtopic.php?f=18&t=3214
I use it in my stuff to compute the path an NPC will follow. It returns a list of exits to be traversed to get from start to finish.
viewtopic.php?f=18&t=3214
I use it in my stuff to compute the path an NPC will follow. It returns a list of exits to be traversed to get from start to finish.