which allows for custom handlers but I cannot figure out how to make custom party commands. For example, Escape is a party command. But I'd also like the ability to do things like change in-battle "settings" and to be able to revive "Mortally-Dead" members using alive members' EXP aka Essence. Let's just skip the explainations for those.
Here are my settings:
Spoiler
class Scene_Battleattr_reader :ess_revive def ess_revive $game_temp.reserve_common_event(70) return endend
Spoiler
#-------------------------------------------------------------------------- # - Party Command Custom Commands - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # For those who use scripts to that may produce unique effects in battle, # use this hash to manage the custom commands for the Party Command Window. # You can disable certain commands or prevent them from appearing by using # switches. If you don't wish to bind them to a switch, set the proper # switch to 0 for it to have no impact. #-------------------------------------------------------------------------- CUSTOM_PARTY_COMMANDS ={ # :command => ["Display Name", EnableSwitch, ShowSwitch, Handler Method], :revival => [ "Revival", 0, 0, :ess_revive], :custom1 => [ "Custom Name", 0, 0, :command_name1], :custom2 => [ "Custom Name", 13, 0, :command_name2], } # Do not remove this.
Spoiler
Code:
# This array arranges the order of which the commands appear in the Party # Command window. PARTY_COMMANDS =[ :fight, :autobattle, :party, # :custom1, :combatlog, :revival, ] # Do not remove this. Spoiler
Code:
def make_command_list for command in YEA::BATTLE_COMMANDS::PARTY_COMMANDS case command#-- when :revival add_command("Revival", :ess_revive)#--#If this is not here, selecting revival does nothing and causes the game to freeze. #Well, more it's stuck in some sort of a loop.#When this part /is/ here, selecting revival simply does nothing. when :fight add_command(Vocab::fight, :fight) when :escape add_command(Vocab::escape, :escape, BattleManager.can_escape?) when :combatlog next unless $imported["YEA-CombatLogDisplay"] add_command(YEA::COMBAT_LOG::COMMAND_NAME, :combatlog) when :autobattle next unless $imported["YEA-CommandAutobattle"] add_autobattle_command when :party next unless $imported["YEA-PartySystem"] next unless $imported["YEA-CommandParty"] add_party_command else process_custom_command(command) end end end