#============================================================================== # # ▼ Yanfly Engine Ace - Command Autobattle v1.01 # -- Last Updated: 2011.12.26 # -- Level: Normal # -- Requires: n/a # #============================================================================== $imported = {} if $imported.nil? $imported["YEA-CommandAutobattle"] = true #============================================================================== # ▼ Updates # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # 2011.12.26 - Bug Fixed: Autobattle cancelled after each battle. # 2011.12.12 - Started Script and Finished. # #============================================================================== # ▼ Introduction # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # Anyone remember the Autobattle command from RPG Maker 2000? Well, now it's # back and you can choose to tack it onto the Party Command Window or the Actor # Command Window. When autobattle is selected, it will let the game determine # what action to use for the party and/or actors depending on the game's A.I. # # Furthermore, there is an option to have Autobattle continously remain in # effect if selected from the Party Command Window. When Autobattle is selected # in the Actor Command Window, it'll cause the game to automatically choose an # action for that actor instead. # # In addition to this, there exists the functionality of having all battle # members but the first member autobattle. This feature can be turned off. # #============================================================================== # ▼ Instructions # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # To install this script, open up your script editor and copy/paste this script # to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save. # # Adjust the settings in the module to your liking. # #============================================================================== # ▼ Compatibility # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # This script is made strictly for RPG Maker VX Ace. It is highly unlikely that # it will run with RPG Maker VX without adjusting. # #============================================================================== module YEA module AUTOBATTLE #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # - Party Autobattle Command Settings - #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # Adjust the command settings for Autobattle under the Party Command Window # here. If you decide to let Party Autobattle be continuous, it will keep # going until the player decides to cancel it with X. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ENABLE_PARTY_AUTOBATTLE = true # Enables autobattle in Party Window. PARTY_COMMAND_NAME = "Auto" # Text that appears for Autobattle. PARTY_SHOW_SWITCH = 0 # Switch used to show Autobattle. PARTY_ENABLE_SWITCH = 0 # Switch used to enable Autobattle. # Note: For both of the switches, if they are set to 0, then the feature # will not be used at all. The command will always be shown and/or the # command will always be enabled. # These settings adjust continous autobattle. If enabled, these settings # will be applied. Otherwise, they won't be. ENABLE_CONTINOUS = true # If true, autobattle is continous. DISABLE_MESSAGE = "Press Cancel to turn off Autobattle." #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # - Actor Autobattle Command Settings - #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # Adjust the command settings for Autobattle under the Actor Command Window # here. Actors do not have continous autobattle. Instead, they just simply # choose whatever action the game decides is most suitable for them. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ENABLE_ACTOR_AUTOBATTLE = true # Enables autobattle in Party Window. ACTOR_COMMAND_NAME = "Auto" # Text that appears for Autobattle. ACTOR_SHOW_SWITCH = 0 # Switch used to show Autobattle. ACTOR_ENABLE_SWITCH = 0 # Switch used to enable Autobattle. # Note: For both of the switches, if they are set to 0, then the feature # will not be used at all. The command will always be shown and/or the # command will always be enabled. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # - Secondary Members Autobattle - #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # For those who only want to grant command control to the first actor in # battle, enable the setting below. All of the battle members who aren't # first in line will automatically choose their action for the turn. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ENABLE_SECONDARY_AUTOBATTLE = false end # AUTOBATTLE end # YEA #============================================================================== # ▼ Editting anything past this point may potentially result in causing # computer damage, incontinence, explosion of user's head, coma, death, and/or # halitosis so edit at your own risk. #============================================================================== #============================================================================== # ■ BattleManager #============================================================================== module BattleManager #-------------------------------------------------------------------------- # alias method: process_victory #-------------------------------------------------------------------------- class <