Dungeon crawling for NPC's

So I've put about 530 hours into RPG maker, making simple RPGs based on some tabletop experiences I've had and sharing them with my Pathfinder group. I've been having a lot of fun with that but I want to move on to a more advanced game idea I had: instead of playing as an adventurer, you play as the DM. So I want to make a game where you play as a character who places traps or monster encounters in a dungeon or cave type setting. A group of npc adventurers then invade and the goal is to take them out. What would be the best way to set the NPC's pathfinding? So it's somewhat random and hard to guess. If they just move in a straight line it would be to easy.
I should go ahead and point out that I have never needed to move an NPC in a complicated fashion. It's pretty much just been left to right or up and down...
there are scripts and plugins that add pathfinding functions to the engine - that is what you'll need here.
there are scripts and plugins that add pathfinding functions to the engine - that is what you'll need here.
Fantastic, I was really hoping a plugin would get me what I need, which ones do I need?
you need to search for that yourself, I don't have any links ready.
that is why I gave you the term "pathfinding" to search for.
you need to search for that yourself, I don't have any links ready.
that is why I gave you the term "pathfinding" to search for.
Ah, kk. I will, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/dungeon-crawling-for-npcs.128600/