So I've looked all over and I can't seem to find where to change the sv actor slide distance when escaping. I wanted to remove it or at least adjust it. Anyone know where this is?
Escape Slide
RPG Maker MV SupportThe function is in the rpg_sprites.js file. Though, it is recommended not to edit the core files directly, as any changes will be lost when mv is updated.
Instead, just put this in a text editor and import it as a plugin:
This is the default function in the file. You can change the numbers to adjust it.
(The first number is the x distance, the second one is the y distance and the third one is the duration).
You can set them all to 0 if you want to remove it completely.
Instead, just put this in a text editor and import it as a plugin:
Code:
Sprite_Actor.prototype.retreat = function() {
this.startMove(300, 0, 30);
};
This is the default function in the file. You can change the numbers to adjust it.
(The first number is the x distance, the second one is the y distance and the third one is the duration).
You can set them all to 0 if you want to remove it completely.
Thanks for the info, Naveed. Unfortunately even after importing it as a plugin, changing it in the core file, and in the Yanfly core engine plugin my dude still slides back like a champ :/
At this point I'm not sure what's overriding my changes. Here's the section from the Yanfly core engine btw (Under the Sprite Actor section):
Sprite_Actor.prototype.retreat = function() {
this.startMove(1200, 0, 120);
};
As you can see it defaults to higher values on x and duration than the core file. I switched these to 0 without any luck but I also tried simply switching them to smaller values to see if there was a change but there wasn't.
To be honest I'd like to remove the escape function entirely. Shaz posted a script for this which works, and the Yanfly core engine allows you to skip the party command menu but you can still back click to it (it'll just have the fight option at that point). I wish I could remove the party command menu entirely and just be done with it lol :/
At this point I'm not sure what's overriding my changes. Here's the section from the Yanfly core engine btw (Under the Sprite Actor section):
Sprite_Actor.prototype.retreat = function() {
this.startMove(1200, 0, 120);
};
As you can see it defaults to higher values on x and duration than the core file. I switched these to 0 without any luck but I also tried simply switching them to smaller values to see if there was a change but there wasn't.
To be honest I'd like to remove the escape function entirely. Shaz posted a script for this which works, and the Yanfly core engine allows you to skip the party command menu but you can still back click to it (it'll just have the fight option at that point). I wish I could remove the party command menu entirely and just be done with it lol :/
Quick update-
So I narrowed it down to a single culprit (after the Yanfly core engine) and it's the Yanfly battle core plugin (Line 4143)
Game_Actor.prototype.performEscapeSuccess = function() {
if (this.battler()) {
this.performEscape();
this.battler().startMove(300, 0, 60);
}
};
So anyone using Yanfly plugins who wants to remove the slide needs to make changes to the battle core and probably to the core engine as well. Note that the lines in the js are slightly different as one uses the term "retreat" and the other uses the word "escape". Now you're dudes can escape from battle without doing the electric slide. As Naveed explained above you can adjust the x, y, and duration values to create a smaller back slide are to remove it entirely.
Thanks again for the help, Naveed!
So I narrowed it down to a single culprit (after the Yanfly core engine) and it's the Yanfly battle core plugin (Line 4143)
Game_Actor.prototype.performEscapeSuccess = function() {
if (this.battler()) {
this.performEscape();
this.battler().startMove(300, 0, 60);
}
};
So anyone using Yanfly plugins who wants to remove the slide needs to make changes to the battle core and probably to the core engine as well. Note that the lines in the js are slightly different as one uses the term "retreat" and the other uses the word "escape". Now you're dudes can escape from battle without doing the electric slide. As Naveed explained above you can adjust the x, y, and duration values to create a smaller back slide are to remove it entirely.
Thanks again for the help, Naveed!
Glad to help 🙂
Original thread: https://forums.rpgmakerweb.com/threads/escape-slide.81880/