ToshA_NPCfollow Smart Events


ToshA_NPCfollow.js is a powerful plugin for RPG Maker MZ that greatly simplifies the management of NPCs in your game. With this plugin, NPCs can follow the player, navigate to a specified point, or patrol along specified routes with a configurable trigger speed and distance.

Now you don't have to manually set complex routes. Just specify the points to patrol, and the plugin will automatically create a route for the NPC. NPCs will become smart: they find workarounds on their own, avoiding obstacles, and can skip other events when they collide.

Main functions:

Following the player: NPCs will follow the player while maintaining a certain distance.
Setting the distance and speed: The ability to specify parameters through comments.
Moving to a point: NPCs will move to the specified point.
Patrolling: Setting multiple points for patrolling.
Intelligent NPCs: NPCs find workarounds and avoid obstacles.
Spoiler: v 2.4
ToshA_NPCfollow Plugin Update to Version 2.4



We are excited to announce the release of the new version of the ToshA_NPCfollow plugin. In this version, we have added several new features and fixed bugs to enhance your gaming experience.

Key Changes in Version 2.4:
Auto-start when Approaching within One Tile:
Events can now automatically start when the player approaches within one tile using the <follow player: 1> comment.

Shelter Setup:
Added the ability to create shelters for events. Use the <react to weather> comment to make events seek shelter when the corresponding switch is turned on. Shelters are configured through plugin parameters.
Support for Blocking and Passable Regions:
You can now set blocking regions that events cannot pass through and passable regions that allow events to bypass obstacles. These regions are configured through plugin parameters.
Fixes and Improvements:
Fixed a bug where events would return to the initial point and restart their route.
Improved event restoration logic to avoid conflicts between pages.
Updated the setupPageSettings method to correctly read comments from any event page.

Spoiler: How to Use the New Features
How to Use the New Features:
Auto-start when Approaching:
Add the <follow player: 1> comment to an event to make it automatically start when the player approaches within one tile.
In the plugin parameters, add shelter regions and their corresponding switches.

For example:
{"regionId": 1, "switchId": 8}

Setting Blocking and Passable Regions:
In the plugin parameters, add the IDs of blocking and passable regions. For example:
"blockRegions": [5],
"passThroughRegions": [6]


Usage Example:
<follow player: 1>
<follow distance: p3;f10>
<patrol points: 5,5;10,10;5,10>
<speed: p3;f5>
<react to weather>


Download the plugin
good looking plugin. Your pro EN version is still in russian tho.
good looking plugin. Your pro EN version is still in russian tho.
Please forgive me, I have already replaced it with the English version. Thanks for the support)
ToshA_NPCfollow Plugin Update to Version 2.4

We are excited to announce the release of the new version of the ToshA_NPCfollow plugin. In this version, we have added several new features and fixed bugs to enhance your gaming experience.

Key Changes in Version 2.4:
Auto-start when Approaching within One Tile:
Events can now automatically start when the player approaches within one tile using the <follow player: 1> comment.

Shelter Setup:
Added the ability to create shelters for events. Use the <react to weather> comment to make events seek shelter when the corresponding switch is turned on. Shelters are configured through plugin parameters.
Support for Blocking and Passable Regions:
You can now set blocking regions that events cannot pass through and passable regions that allow events to bypass obstacles. These regions are configured through plugin parameters.
Fixes and Improvements:
Fixed a bug where events would return to the initial point and restart their route.
Improved event restoration logic to avoid conflicts between pages.
Updated the setupPageSettings method to correctly read comments from any event page.

How to Use the New Features:
Auto-start when Approaching:
Add the <follow player: 1> comment to an event to make it automatically start when the player approaches within one tile.

Spoiler: Shelter Setup
In the plugin parameters, add shelter regions and their corresponding switches.

For example:
{"regionId": 1, "switchId": 8}

Setting Blocking and Passable Regions:
In the plugin parameters, add the IDs of blocking and passable regions. For example:
"blockRegions": [5],
"passThroughRegions": [6]


Usage Example:
<follow player: 1>
<follow distance: p3;f10>
<patrol points: 5,5;10,10;5,10>
<speed: p3;f5>
<react to weather>

Spoiler: video

Original thread: https://forums.rpgmakerweb.com/threads/tosha_npcfollow-smart-events.169182/