Skip the Fight / Escape menu at the start of each rund while battles

Accendor

Veteran
Veteran
Joined
Aug 24, 2015
Messages
230
Reaction score
62
First Language
german
Primarily Uses
N/A
Hi,


I want to remove the menu that asks if you want to fight an enemy or if you want to flee. I know that you can do it with Yanfly Battle Core but that plugin is just "too much". Most of that stuff included in there is not needed by me and has compatbility issues with other addons that I am using.


I tried to extract the part which is used to skip that sequence but until now I failed.


It looks like something small, so I hope that I can get help here.
 

Joewoof

Veteran
Veteran
Joined
Oct 28, 2015
Messages
123
Reaction score
56
First Language
English
Here's my attempt at the extract. Just wrap it as a plugin and it should work.

Code:
var SceneBattlePartyCommand = Scene_Battle.prototype.startPartyCommandSelection;
Scene_Battle.prototype.startPartyCommandSelection = function() {
    SceneBattlePartyCommand.call(this);
	this.selectNextCommand();
};
 

Accendor

Veteran
Veteran
Joined
Aug 24, 2015
Messages
230
Reaction score
62
First Language
german
Primarily Uses
N/A
Thank you!


Well, that already helps me a lot. Now I am directly in the fight and do not have the menu in the beginning, which is great.


Only problem: The cursor (the one you normally use to select if you want to fight or escape) is still in the position where the menu normally is. That is not the case when I use Yanflys however (which I can not use because of other reasons however). Does someone perhaps have a solution for this?
 

Joewoof

Veteran
Veteran
Joined
Oct 28, 2015
Messages
123
Reaction score
56
First Language
English
You might need to call "deselect" or "deactivate" on the PartyCommandWindow.
 

Accendor

Veteran
Veteran
Joined
Aug 24, 2015
Messages
230
Reaction score
62
First Language
german
Primarily Uses
N/A
Thanks for your help!


Complete script for anyone who needs it in the future:


var SceneBattlePartyCommand = Scene_Battle.prototype.startPartyCommandSelection;
Scene_Battle.prototype.startPartyCommandSelection = function() {
    SceneBattlePartyCommand.call(this);
    this.selectNextCommand();
    this._helpWindow.clear();
    this._partyCommandWindow.deactivate();
};
 

Latest Threads

Latest Posts

Latest Profile Posts

There are so many coding terms that are complete gibberish to me. Like what the heck is "Return" or "Array"??
Sometimes I forget how tiny and fun working in 16x16 is (or with 18x18 if ya counting the white outline LOL) and before you ask Yes. Yes this is an appropriate ratio of drinks to all the other stuff. :popcorn:
f37ac128dedc8a53af7deb2b12e8ea81becf6e46.png
Phew, sleep all day, awake all night. I don't know what to draw tonight!

Does that count as poetry? ..Is there a super fast way to test my creations in RPG Maker? Has anyone played the new Pokémon games? I'm itching to buy it but I don't think my husband will want me to after he finds out how much I spent on Christmas!
When can we get this?
RPG Maker MZ Saturn.png
Saturn port when?
I'm new to rpgmaker mv, link me some good stuff to learn.

Forum statistics

Threads
117,070
Messages
1,104,305
Members
153,051
Latest member
Altokai
Top