[VXAce] Add Flee to Actor Battle Command And Remove Party Commands

Hello members, could you help me please to:

Add Flee to Actor Battle Command And Remove Party Commands​

Thank you!

Note:

  • I use default battle system
  • I use Yanfly Core Engine
A google search shows several options for removing the party commands
Ruby:
class Scene_Battle
  def start_party_command_selection
    unless scene_changing?
      refresh_status
      @status_window.unselect
      @status_window.open
      if BattleManager.input_start
        next_command
      else
        @party_command_window.deactivate
        turn_start
      end
    end
  end
end
for the flee command, just add the escape command to the actors class
A google search shows several options for removing the party commands
Ruby:
class Scene_Battle
  def start_party_command_selection
    unless scene_changing?
      refresh_status
      @status_window.unselect
      @status_window.open
      if BattleManager.input_start
        next_command
      else
        @party_command_window.deactivate
        turn_start
      end
    end
  end
end
for the flee command, just add the escape command to the actors class
Thank you.

Edit1: i put it, the 'flee' show but the actor still can't flee.
Edit2: i use this.
Battle Add-on: Skip Party Command
################################################################################
# Battle Add-on: Skip Party Command
# Author: Unsigned_Zero
#
#
################################################################################
class Scene_Battle
alias u0_custom_create_actor_command_window create_actor_command_window
def create_actor_command_window
u0_custom_create_actor_command_window
@actor_command_window.set_handler🙂escape, method🙂command_escape))
end
#--------------------------------------------------------------------------
# alias method: battle_start
#--------------------------------------------------------------------------
alias u0_custom_battle_start battle_start
def battle_start
u0_custom_battle_start
@party_command_window.deactivate
if BattleManager.input_start
command_fight
else
turn_start
end
end

#--------------------------------------------------------------------------
# overwrite method: turn_end
#--------------------------------------------------------------------------
def turn_end
all_battle_members.each do |battler|
battler.on_turn_end
end

BattleManager.turn_end
process_event
start_party_command_selection
if BattleManager.input_start
@party_command_window.deactivate
command_fight
else
@party_command_window.deactivate
turn_start
end
end
end

class Window_ActorCommand
alias u0_custom_make_command_list make_command_list
def make_command_list
u0_custom_make_command_list
add_command(Vocab::escape, :escape, BattleManager.can_escape?)
end
end
Edit1: i put it, the 'flee' show but the actor still can't flee.
does it say failed, or just nothing?
does it say failed, or just nothing?
Party command removed. When i try to put escape command to actor command, the menu show up but when i click it, nothing happened.
Looking into the script, it does it all for you, so whatever changes you made to add the skill in, you can undo.

Original thread: https://forums.rpgmakerweb.com/threads/vxace-add-flee-to-actor-battle-command-and-remove-party-commands.148102/