CitizensDev/Citizens — Issue #365: Path following types + new pathing system
Author: Snaipe
Created: 2011-11-02 11:40:57+00:00
State: open

Something great would be to introduce AI choices for NPCs when they follow a path, maybe with a path following type system.

For example, there would be a "Wander" type where :
1) the NPC would go to one of the closest waypoint (randomly)
2) when a waypoint is attained, the NPC would either idle or repeat 1)

etc.

The only problem is that with the current pathing system, from what I saw, is based on a "Go to the closest waypoint with the highest id, otherwise turn back"; the point is that there is no real connection between waypoints, a better pathing system would be to first place waypoints with physical blocks on top of their position, such as glowstone, and then, toggle a "waypoint linking mode" where the user would right click on a waypoint to edit it, then left click on the other waypoints that needs to be linked to it. when everything is done, the plugin would remove the blocks and save everything.

That way, it would be possible to make multiple path, and make the NPC choose one of those. And nonetheless it will make more realistic NPCs.