At the beginning of every battle, a fight and escape menu is shown. How do i remove the commands from the battle? Keep in mind, this is for VX Ace(or RGSS3).
How Do I Remove The Party Commands In Battle?
RGSS3 Script RequestsDo you want to completely remove them (making escaping impossible) or do you want to just skip them when entering the battle?
I'd like to completely remove them, so you wouldn't be able to go to the party commands menu, no matter what.
Since this can't be done without a script (editing), I'm moving this to RGSS3 Script Requests.
Then you have to edit the Scene_Battle class. I am not going to do that for you because I have no time right now, but, to anyone who wants to do it, here are two options:
- Without having to rewrite too many methods, simply move the viewport to the left and redirect the scene to directly activate the actors window (disallowing the cancel button when selecting actor actions);
- Rewrite the Scene_Battle class and its viewport to completely get rid of that said window this uses less memory but requires more work
An easy way is to put in Yanfly Ace Battle Engine script. There is an option in there to not use the party menu.
I'm so bad at scripting, sorry. I didnt understand what you meant by moving the viewport to the left. I did see the word viewport in Scene_Battle!
And you are right on that, Roninator2, but it also adds other things that I don't need. Also, its possible to press cancel and go back to the party commands menu.
And you are right on that, Roninator2, but it also adds other things that I don't need. Also, its possible to press cancel and go back to the party commands menu.
Add this below Yanfly Ace Battle Engine
Code:
class Scene_Battle < Scene_Base
def prior_command
if BattleManager.prior_command
start_actor_command_selection
else
start_party_command_selection unless YEA::BATTLE::SKIP_PARTY_COMMAND
return unless YEA::BATTLE::SKIP_PARTY_COMMAND
@party_command_window.deactivate
if BattleManager.input_start
command_fight
else
turn_start
end
end
end
end
If you really are not up into using Yanfly, you could use this:
What it does is basically force the fight handler, thus although commands are technically still there, they wouldn't display, and player wouldn't be able to select between them. It overwrites setup method of Window_PartyCommand.
Maybe you would like this script to be bellow others.
Code:
class Window_PartyCommand < Window_Command
def setup; call_handler(:fight); end
end
Maybe you would like this script to be bellow others.
Both ways worked! Thank you to everyone who contributed to this thread.
Mod, please lock this thread.
Mod, please lock this thread.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-remove-the-party-commands-in-battle.111076/