Hey there!
Having issues with Escape Command not working with YEP_BattleEngineCore.
Removed PartyCommandWindow (Fight/Escape menu) and decided to add escape option in Actor Command Window with this snippet(in a plugin):
Actor Command window right now contains:
Attack - Skill - Item - Escape
When using the escape command it gives an error of "Cannot read property slice of undefined"
Turning OFF BattleEngineCore does make it work but disables all the functionality that I want from the plugin.
Not sure how to set up the correct flow for the escape with the plugin.
Plugins
Having issues with Escape Command not working with YEP_BattleEngineCore.
Removed PartyCommandWindow (Fight/Escape menu) and decided to add escape option in Actor Command Window with this snippet(in a plugin):
JavaScript:
Window_ActorCommand.prototype.makeCommandList = function() {
if (this._actor) {
this.addAttackCommand();
this.addCommand('Active', 'skill', true, 1);
this.addItemCommand();
this.addCommand(TextManager.escape, 'escape', BattleManager.canEscape());
}
};
Actor Command window right now contains:
Attack - Skill - Item - Escape
When using the escape command it gives an error of "Cannot read property slice of undefined"
Code:
YEP_CoreEngine.js:1098 TypeError: Cannot read property 'slice' of undefined
at Function.BattleManager.createSetupActions (YEP_BattleEngineCore.js:2156)
at Function.BattleManager.updatePhase (YEP_BattleEngineCore.js:2125)
at Function.BattleManager.update (YEP_BattleEngineCore.js:1910)
at Scene_Battle.updateBattleProcess (rpg_scenes.js:2265)
at Scene_Battle.update (rpg_scenes.js:2257)
at Scene_Battle.update (YEP_CoreEngine.js:1431)
at Scene_Battle.update (YEP_BattleEngineCore.js:4551)
at Function.SceneManager.updateScene (rpg_managers.js:2024)
at Function.SceneManager.updateMain (rpg_managers.js:1983)
at Function.SceneManager.update (rpg_managers.js:1907)
Turning OFF BattleEngineCore does make it work but disables all the functionality that I want from the plugin.
Not sure how to set up the correct flow for the escape with the plugin.
Plugins