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

● ARCHIVED · READ-ONLY
Started by 3rr0r1n5ynt4x 5 posts View original ↗
  1. 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.
  2. 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();
    };
  3. 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?
  4. You might need to call "deselect" or "deactivate" on the PartyCommandWindow.
  5. 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();
    };