# ============================================================================= # ♫ ~ Wounded state by TheoAllen ~ ♫ # Version : 1.1 # Requires : N/A # Contact : www.rpgmakerid.com # ============================================================================= # ♫ UPDATES : # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # 2013.03.04 - Add notetags for actor and enemy # 2013.02.22 - Started and finished script # # ============================================================================= # ♫ DESCRIPTION : # This script allow you to automatically add state if the characters or enemy # in wounded condition. To disable this automatic add state for some enemies or # characters, just simply put resist state in feature system # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # ♫ INSTRUCTION : # Put this script below material but above main in script editor. Don't forget # to save. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # ♫ HOW TO USE : # ------------------------------- # ACTOR AND ENEMY NOTETAGS # ------------------------------- # # To specify wounded condition. Default value can be configured below. # # # To specify which state will be add if the battler met the wounded condition. # Default value can be configured below. # ============================================================================= # ♫ TERMS OF USE : # - Credit me, TheoAllen. If you think it's necessary. # - You may use and edit this script both commercial and non-commercial or even # adult game as long as u don't claim it's yours. # - I'll be glad if you give me a free copy of your game if you use this script # in your commercial project. # ============================================================================= $imported = {} if $imported.nil? $imported["Theo-WoundedState"] = true # ============================================================================= # ♫ CONFIGURATIONS ~ ♫ # ============================================================================= module THEOLIZED module WS WOUNDED_CONDITION = 0.25 # default percentage of wounded condition. WOUNDED_STATE_ID = 0 # default wounded state ID end end # ============================================================================= # ♫ Do not edit unless you know what to do ~ ♫ # ============================================================================= # SCRIPT INFOS : # ------------------------------------- # Rewriten method : # N/A # ------------------------------------- # Aliased method : # - DataManager # def self.load_database # - Game_BattlerBase # def refresh # ============================================================================= # ♫ NOTETAGS ~ ♫ # ============================================================================= module THEOLIZED module NOTETAGS_WS WOUNDED_COND = /<(?:WOUNDED COND|wounded cond):[ ]*(\d+)([%%])>/i WOUNDED_STATE = /<(?:WOUNDED STATE|wounded state):[ ]*(\d+)>/i end end # ============================================================================= # ♫ Module DataManager ~ ♫ # ============================================================================= module DataManager #-------------------------------------------------------------------------- # ♫ Aliased load database #-------------------------------------------------------------------------- class <