public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

MZToshA_NPCfollow Smart Events

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: ToshA_NPCfollow Smart Events
  • Original author: ToshaAngel
  • Original date: June 1, 2024
  • Source thread: https://forums.rpgmakerweb.com/threads/tosha_npcfollow-smart-events.169182/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMZ)

Summary

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....

Archived First Post


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.
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.
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

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rmmz#plugin-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar