So, does anyone remember the Freeze and Heat states from Final Fantasy IX? I was able to recreate the Freeze effect, where a character dies when struck with a normal attack, but I'm not sure how I can make the Heat one, where a character dies instantly if they do any action, or if afflicted with an hp loss state such as Poison. Anyone know how I could recreate that effect? I'm kinda stumped here.. :x
Heat State
RPG Maker VXAce SupportHere's a small script that should do what you need (just add it under Materials):
#==============================================================================# ** Game_Battler#------------------------------------------------------------------------------# A battler class with methods for sprites and actions added. This class # is used as a super class of the Game_Actor class and Game_Enemy class.#==============================================================================class Game_Battler < Game_BattlerBase # ----- Array of Poison-type states ----- # POISON_STATE_IDS = [2, 26] # ----- HEAT state ID -----# HEAT = 27 #-------------------------------------------------------------------------- # * Add New State #-------------------------------------------------------------------------- alias dps_add_new_state add_new_state def add_new_state(state_id) if state?(HEAT) die if POISON_STATE_IDS.include?(state_id) end dps_add_new_state(state_id) endend#==============================================================================# ** Scene_Battle#------------------------------------------------------------------------------# This class performs battle screen processing.#==============================================================================class Scene_Battle < Scene_Base # ----- HEAT state ID ----- # HEAT = 27 # ----- GUARD skill ID ----- # GUARD = 2 #-------------------------------------------------------------------------- # * Use Skill/Item #-------------------------------------------------------------------------- alias dps_use_item use_item def use_item if @subject.actor? if @subject.state?(HEAT) # Kill the character unless he's guarding @subject.die unless @subject.current_action.item == $data_skills[GUARD] return end end dps_use_item endendReplace the values of POISON_STATE_IDS, HEAT, and GUARD with their respective state and skill IDs for your game.
A couple of things to note:
- this will kill the character as soon as they're inflicted with a poison-type state.
- if the character in the heat state uses an ability or attacks, he/she will die before the attack/skill activates. This is to avoid killing the character as soon as he/she is inflicted with the status, but can probably be worked-around if necessary.
- the character may still Guard while under the heat state.
I'm not sure if this is exactly what you wanted, but hopefully it helps!
#==============================================================================# ** Game_Battler#------------------------------------------------------------------------------# A battler class with methods for sprites and actions added. This class # is used as a super class of the Game_Actor class and Game_Enemy class.#==============================================================================class Game_Battler < Game_BattlerBase # ----- Array of Poison-type states ----- # POISON_STATE_IDS = [2, 26] # ----- HEAT state ID -----# HEAT = 27 #-------------------------------------------------------------------------- # * Add New State #-------------------------------------------------------------------------- alias dps_add_new_state add_new_state def add_new_state(state_id) if state?(HEAT) die if POISON_STATE_IDS.include?(state_id) end dps_add_new_state(state_id) endend#==============================================================================# ** Scene_Battle#------------------------------------------------------------------------------# This class performs battle screen processing.#==============================================================================class Scene_Battle < Scene_Base # ----- HEAT state ID ----- # HEAT = 27 # ----- GUARD skill ID ----- # GUARD = 2 #-------------------------------------------------------------------------- # * Use Skill/Item #-------------------------------------------------------------------------- alias dps_use_item use_item def use_item if @subject.actor? if @subject.state?(HEAT) # Kill the character unless he's guarding @subject.die unless @subject.current_action.item == $data_skills[GUARD] return end end dps_use_item endendReplace the values of POISON_STATE_IDS, HEAT, and GUARD with their respective state and skill IDs for your game.
A couple of things to note:
- this will kill the character as soon as they're inflicted with a poison-type state.
- if the character in the heat state uses an ability or attacks, he/she will die before the attack/skill activates. This is to avoid killing the character as soon as he/she is inflicted with the status, but can probably be worked-around if necessary.
- the character may still Guard while under the heat state.
I'm not sure if this is exactly what you wanted, but hopefully it helps!
Thanks Duncan, I'll give it a test whenever I can! 🙂
Original thread: https://forums.rpgmakerweb.com/threads/heat-state.22577/