That was a command you had to do yourself?
Smart Pathfinding
JS Plugin Releases (RMMV)Yeah. Essentially, I just had to command them to do places by setting up the pathing (setting coords on the map for them to get to) during a scene, have them go there, do their talking bits and either have them route back to the main actor (or have the main actor come back to them if he moved) or have "Gather Followers" if they clustered. I never expected the script to have it do all the work for me, just allow control over the followers and not have to do the move routes since memorizing paths and setting up branch conditions was always such a pain.
Possibly OT question, but are you guys generally doing your cut-scenes with your main actor(s)? I have been doing my cut-scenes by turning Transparency ON and creating Event tiles to represent the people in the active cut-scene. Are there any drawbacks to that approach?
I was envisioning an API like:
SmartPath Cutscene_Member_001 Cutscene_Spot_001 Auto_Cancel SmartFollow Cutscene_Member_002 Cutscene_Member_001 Auto_Cancel 1Essentially, "Cutscene_Member_001, traverse to Cutscene_Spot_001 and stop once you get there." "Now, Cutscene_Member_002, follow Cutscene_Member_001 and stop once he's stopped AND you're one tile away from him."
This wouldn't work terribly well if you're trying to do this with the "follower" actors, at least that I can tell. Your main PC can be referenced as event ID -1 but I'm not for sure about the others.
Id imagine setting a group of people to go to a single place at one time or maybe go to a location and then go to the closest available region (identified by region number). Like a firedrill in school, all of the students leave via a certain path but then congregate in an outdoor area. Also have a home setting where you could tell them to go home and they find the path back to (home). If you have ever played the game FTL you can select home for people, then select a group and tell them all to go somewhere. When whatever is happening is over they can all go back to their current home location.
@dragoonkain, personally I don't like followers and have disabled them in my game. So the question isn't applicable to me, apart from making the plugin more useful to people 🙂
first of all... nice script. this would come in handy.
any plan on making this script to be able to use in move route?
since move route didn't have plugin command. just script call 😀 .
it would be nice to have the event move to certain place using move route... so i don't have to manually activate it.
useful for those harvest moon like game where people have schedule. 😀 .
any plan on making this script to be able to use in move route?
since move route didn't have plugin command. just script call 😀 .
it would be nice to have the event move to certain place using move route... so i don't have to manually activate it.
useful for those harvest moon like game where people have schedule. 😀 .
Sure - I'll see about adding it.
Nice, this is what I need 😀 a wait and auto_cancel thank you....
Anyway, there's some bug one the code itself, when I use the "AUTO_CANCEL_NEAR" plugin command it said that variable t is undefined so I fix into y and it work. Maybe you should update the code...
Thanks for pointing that out! I fixed it on my end at some point and totally forgot to update it here. I have updated the links to use github so if I make any other fixes to that fork they'll stay up to date. Cheers!
So I'm getting a very strange issue after using the plug in command for the player. It works fine until the cutscene I'm using ends and the player again has control. I try to move, and the player moves right back where the coordinates had the player move during the cutscene just prior.
Anyway to fix this? This plugin isn't required and I'm not above manually programming move routes, I just like the niceness of the plugin.
For references sake I'm using the MBS Smooth Scroll and Galenmareth's No Move Route Speed Up plugins and I've turned them both off and the issue persists.
Edit: I've tried it in a fresh project with no other plug ins and the issue persists. If it can't be fixed I'll do without I suppose. :/
Anyway to fix this? This plugin isn't required and I'm not above manually programming move routes, I just like the niceness of the plugin.
For references sake I'm using the MBS Smooth Scroll and Galenmareth's No Move Route Speed Up plugins and I've turned them both off and the issue persists.
Edit: I've tried it in a fresh project with no other plug ins and the issue persists. If it can't be fixed I'll do without I suppose. :/
Can you send me a copy of the files in the data folder from your fresh project?
Edit - are you using my original version, or the edited version by dragoonkain?
Edit - are you using my original version, or the edited version by dragoonkain?
That happened to me today! You just need to used tha5 plugin command at the end of the cutscene : smartpath -1 cancel
Shaz, I am having a small issue with interaction between this plugin and Yanfly's Event Chase Player...
Specifically, I have an event that chases the player until it engages in a battle, after which (when its defeated) it walks back to its original location using this plugin.
It returns fine. But when Yanfly's plugin triggers again, it never travels more than 1 square before ping ponging back and forth endlessly between its original loc and the step it took.
The reason I'm need it this way is that I am using another plugin that saves all event locations. If I don't have the event travel back to its original place, it will just stay where it was last killed.
The event location plugin is estriole's - Save Map Event.
Specifically, I have an event that chases the player until it engages in a battle, after which (when its defeated) it walks back to its original location using this plugin.
It returns fine. But when Yanfly's plugin triggers again, it never travels more than 1 square before ping ponging back and forth endlessly between its original loc and the step it took.
The reason I'm need it this way is that I am using another plugin that saves all event locations. If I don't have the event travel back to its original place, it will just stay where it was last killed.
The event location plugin is estriole's - Save Map Event.
Once you give it a location, it will keep moving to that location until you tell it not to. So you can either monitor for when it reaches its home location and use the plugin command to cancel the pathfinding, or you could try the modified version mentioned later in the thread, which I think may have the ability to auto-cancel after reaching the destination.
Ah. That makes sense. I must have missed that detail! /facepalm
Hello Shaz. i am working on a digital board game and this is a wonderful plugin option. Is there a way for the player, event -1, to ignore ALL events between host event and final destination event. From each event encountered, at the end there is a die roll, so there are six possible events that the destination event could be. If the roll is > 1, then other events may have to be passed through.
Thanks,
Jay
Thanks,
Jay
Not on its own. It just uses the default logic to determine whether a tile can be walked on.
Is it an option to have multiple pages for your events, each with the same sprite, and set the higher numbered page to THROUGH, and conditioned by the variable (dice roll) being larger than the number that would result in that event being the target? That should allow the player to walk through them on their way to a different event.
Is it an option to have multiple pages for your events, each with the same sprite, and set the higher numbered page to THROUGH, and conditioned by the variable (dice roll) being larger than the number that would result in that event being the target? That should allow the player to walk through them on their way to a different event.
Shaz, I'm having trouble getting your script to work. I'm actually trying to combine it with Whitesphere's Stealth script, to make a more robust stealth system. I want an event, when Self-Switch C is switched, to begin to move towards the location the player was last when the switch was flipped. I store the player's XY coords into variables, but I can't figure out how to get the event to move towards the coordinates. On top of this, I'd also need the event's self switch to turn off once it reaches its destination, returning to it's default state, and thus resuming it's 'patrol'.
If you have the location in variables, you can use $gameVariables.value(x) and $gameVariables.value(y) as the destination (replacing the x and y with the variable id).
There is no "turn off" once the destination is reached. But look at the modded version, also posted in this thread, as I think it does have a "cancel action" type of option that you could use for that purpose.
There is no "turn off" once the destination is reached. But look at the modded version, also posted in this thread, as I think it does have a "cancel action" type of option that you could use for that purpose.
I'm getting a Syntax error. Says "GameVariables" is not defined.
Original thread: https://forums.rpgmakerweb.com/threads/smart-pathfinding.46761/