Escape Slide

Sc0wly

Veteran
Veteran
Joined
Feb 13, 2017
Messages
46
Reaction score
11
First Language
English
Primarily Uses
RMMV
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?
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
The 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:

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.
 

Sc0wly

Veteran
Veteran
Joined
Feb 13, 2017
Messages
46
Reaction score
11
First Language
English
Primarily Uses
RMMV
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 :/
 

Sc0wly

Veteran
Veteran
Joined
Feb 13, 2017
Messages
46
Reaction score
11
First Language
English
Primarily Uses
RMMV
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!
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
Glad to help :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top