Delete it from rpg_windows and more importantly, from rpg_scenes. You can't miss this one in rpg_scenes, search for command "Escape".
I looked through scenes and window, i couldnt find it in window, and in scenes i got confused instead.
possibly u could tell in detail which files exacly to remove? sorry for the inconvenience
Everytime i think i found the right thing, it just gives me an error whenever i open the game
Ok, my bad. Scene_Battle has a bit different structure. But what you can do is disable the Cancel command by simply deleting it from actorCommandWindow instead.
Scene_Battle.prototype.createActorCommandWindow = function() {
this._actorCommandWindow = new Window_ActorCommand();
this._actorCommandWindow.setHandler('attack', this.commandAttack.bind(this));
this._actorCommandWindow.setHandler('skill', this.commandSkill.bind(this));
this._actorCommandWindow.setHandler('guard', this.commandGuard.bind(this));
this._actorCommandWindow.setHandler('item', this.commandItem.bind(this));
//remove this._actorCommandWindow.setHandler('cancel', this.selectPreviousCommand.bind(this));
this.addWindow(this._actorCommandWindow);
};
Alright that worked! thanks alot!
Now i gotta find a way to add a Flee button on the menu haha
The same method, just flipped around.
Scene_Battle.prototype.createActorCommandWindow = function() {
this._actorCommandWindow = new Window_ActorCommand();
this._actorCommandWindow.setHandler('attack', this.commandAttack.bind(this));
this._actorCommandWindow.setHandler('skill', this.commandSkill.bind(this));
this._actorCommandWindow.setHandler('guard', this.commandGuard.bind(this));
this._actorCommandWindow.setHandler('item', this.commandItem.bind(this));
//add this._actorCommandWindow.setHandler('escape', this.commandEscape.bind(this));
this.addWindow(this._actorCommandWindow);
having three addWindow commands is unnecessary. Also, having the "escape" command commented out. I suggest taking a basic javascript course, my favorite site is sololearn.com. It's free and will definitely helpyou understand it better than just typing in commands without any knowledge.
Alright, i'll check that site out. Thanks alot for your help and patience with me.
Yes, I forgot about one important thing 😀
rpg_windows
Window_ActorCommand.prototype.makeCommandList = function() {
if (this._actor) {
this.addAttackCommand();
this.addSkillCommands();
this.addGuardCommand();
this.addItemCommand();
this.addCommand(TextManager.escape, 'escape', BattleManager.canEscape());
}
};
ah, had some issues finding the spot.. it appears theres no such thing as Windows_actorCommand in that rpg_Windows text.
so i just copy pasted it at the very bottom below everything else and hoped for the best, and it appears to have worked haha
Windows_Actorcommand should be there, just right Window_PartyCommand 😀. But if you paste it to the rock bottom, it works too, because it overwrites the default function.
Hehe yeah, it went to the rock bottom. i scrolled up and down like 5 times, slowly even, and couldnt find it 😛
but now thats completed, thanks to you.