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: Smart Pathfinding
- Original author: Shaz
- Original date: October 24, 2015
- Source thread: https://forums.rpgmakerweb.com/threads/smart-pathfinding.46761/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)
Summary
Smart Pathfinding 2015.10.21 by Shaz
Archived First Post
Smart Pathfinding
2015.10.21
by Shaz
Introduction
This plugin allows you to set up smart pathfinding for events.
How to use
Add to your plugins folder (file name does not really matter, but I call mine SmartPath.js). There are no parameters to set.
Use the plugin command SmartPath eventID1 eventID2 to make event 1 find a path to event 2
Use the plugin command SmartPath eventID x y to make the event find a path to x, y on the map
Use the plugin command SmartPath eventID cancel to cancel pathfinding for the event
eventID, eventID1 and eventID2 can be a number for a specific event (no leading zeros), 0 for the event issuing the plugin call, -1 for the player, or $gameVariables.value(id) to get the event number from the specified variable (replace id with the variable id, no leading zeros).
x and y can be map coordinates or $gameVariables.value(id) to get the x or y value from the specified variable (replace id with the variable id, no leading zeros).
The event will continue to follow its target until told to stop. So if the target is another event or the player, if the target moves, the event will adjust its course or follow, depending on how close it is to the target.
Plugin
Download from pastebin
Credit
- Shaz
Terms
- free for use in commercial games
Note
- the plugin says it works for events OR the player, but I'm not sure that it does work for the player. I need to re-test that.
2015.10.21
by Shaz
Introduction
This plugin allows you to set up smart pathfinding for events.
How to use
Add to your plugins folder (file name does not really matter, but I call mine SmartPath.js). There are no parameters to set.
Use the plugin command SmartPath eventID1 eventID2 to make event 1 find a path to event 2
Use the plugin command SmartPath eventID x y to make the event find a path to x, y on the map
Use the plugin command SmartPath eventID cancel to cancel pathfinding for the event
eventID, eventID1 and eventID2 can be a number for a specific event (no leading zeros), 0 for the event issuing the plugin call, -1 for the player, or $gameVariables.value(id) to get the event number from the specified variable (replace id with the variable id, no leading zeros).
x and y can be map coordinates or $gameVariables.value(id) to get the x or y value from the specified variable (replace id with the variable id, no leading zeros).
The event will continue to follow its target until told to stop. So if the target is another event or the player, if the target moves, the event will adjust its course or follow, depending on how close it is to the target.
Plugin
Download from pastebin
Credit
- Shaz
Terms
- free for use in commercial games
Note
- the plugin says it works for events OR the player, but I'm not sure that it does work for the player. I need to re-test that.
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
Credit - Shaz Terms
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.
Replies (0)
No replies yet.
0
replies
2
views
Topic Summary
Loading summary...