Random Movement

Hey, I'm sorry if this is in the wrong board, I wasn't sure where I'd ask this question:


Is there any way I can make NPCs move randomly in a designated area? Like with the map region ID when adding troops to a location/map.


What I essentially did was create an area, marked as 2 on region ID, and hope that I could specify in an NPC's movement that they should only randomly move in Region ID 2,


but it seems like that isn't an option.


If it's not in the engine, is there a plugin for said feature?
yes - depending on which maker you're using there are several scripts/Plugins that restrict movement by region ID. Yanfly wrote one that was included in the launch pack of scripts for example. However, as far as I know most of them use the region as a border and are for all events - but you can ask for updates or alternatives.


I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.
yes yanfly has a region restriction plugin, you can choose a region ID that NPC cant pass, and basically draw the area you want
Thank you very much.

Original thread: https://forums.rpgmakerweb.com/threads/random-movement.58883/