Help disabling step-in at the start of battles for MV

Status
Not open for further replies.

Fitferfer

Villager
Member
Joined
Sep 24, 2018
Messages
13
Reaction score
3
First Language
English
Primarily Uses
RMMV
Hey everyone,

I'm looking to disable the step in/slide in that happens at the start of battle for my actors in the Side View in RMMV.

I'm using Yanfly's Core Engine as well as Yanfly's BattleEngineCore. It's great! But I want my battlers to be static on the screen when battles start (or to display an custom animation), rather than step/sliding in.

I've dug through some of the core .js files as well as Yanfly's .js files trying to find pieces of the battle scripts myself, but I'm just not finding what I need...

Thanks!
 

Fornoreason1000

Black Sheep
Veteran
Joined
Mar 1, 2014
Messages
206
Reaction score
95
First Language
English
Primarily Uses
RMMV
okay i believe this is what does it

Code:
Sprite_Actor.prototype.moveToStartPosition = function() {
    this.startMove(300, 0, 0);
};
this is called immediately when the sprite is created, start Move is a function tha will progressively move the sprite to the define position, however, this actually is what make the battler start of screen.

interestingly enough though, Yanfly's Battle core changes it to this:

Code:
Sprite_Actor.prototype.moveToStartPosition = function() {
    if (BattleManager._bypassMoveToStartLocation) return; //this will cancel the effect!
    if ($gameSystem.isSideView() && this._checkAliveStatus) {
      this.startMove(300, 0, 0);
    }
}
I'm assuming BattleManager._bypassMoveToStartLocation is used in one of his other plugins, as it only makes one appearance in the Battle Core Engine itself.

if you're only using Battle Core, you can set it to true, and they will always skip the slide effect until it is set to false.
testing this, it will stop the sliding animation at the start,
but it will not stop the turn animation (they walk forwards when they get a turn!)
 

Fitferfer

Villager
Member
Joined
Sep 24, 2018
Messages
13
Reaction score
3
First Language
English
Primarily Uses
RMMV
You're a lifesaver :D

The Yanfly Battle Core actually has options inside to turn off steps forward DURING combat (Step Distance under the SPRITES subsection)... Just not one to turn off that initial saunter in.

Cheers, really appreciate the help.
 

masanobu91

Veteran
Veteran
Joined
Mar 15, 2020
Messages
31
Reaction score
2
First Language
Italian
Primarily Uses
Other
Hello, very interesting, i wish i knew more about javascript T_T

Anyway...

I will be very quick and straight to the point. Yesterday I installed the row formation plug in by Yanfly and now I have 2 major "problems" that i can't solve.
1: The step in animation of battlers is skipped (battlers just spawn in their home position, and if a battler is added midbattle it will spawn there without the step in motion). I want to have it even if i use the row plug in, is it possible?
2: Probably is my ignorance here, but i would like to be able that melee attacks can only reach the 1st raw. But even if i put my battlers on the 2nd or 3rd row they get hit anyway by the enemy attacks (even if i put the notetag <row only: 1> in the skill (attack) notetag).

I hope you can help me with this, I am completely ignorant about java script programing, i am sure there is a way to do what i want with that but i wonder if i messed up some settings or there is just some kind of plugin command or notetags that can help with that.
Thank you so much!!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP

@masanobu91 , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top