#==============================================================================# ¥ Updates# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# 2011.12.24 - Started Script and Finished.# #==============================================================================# ¥ Introduction# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# This script will make a state becomes infective, which like a virus, it will # infect other battlers.# #==============================================================================# ¥ Instructions# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# To install this script, open up your script editor and copy/paste this script# to an open slot below ¥ Materials/‘fÞ but above ¥ Main. Remember to save.# # -----------------------------------------------------------------------------# State Notetags - These notetags go in the state notebox in the database.# -----------------------------------------------------------------------------# # This state will infect after x turns, and will add state y to infected unit.## # This state will infect after x turns, and will add state y to infected unit.# #==============================================================================# ¥ 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.# #==============================================================================

#==============================================================================# ¥ 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.#==============================================================================

#-------------------------------------------------------------------------- # new method: load_notetags_infst #-------------------------------------------------------------------------- def self.load_notetags_infst groups = [$data_states] for group in groups for obj in group next if obj.nil? obj.load_notetags_infst end end end

#-------------------------------------------------------------------------- # new method: update_state_infect #-------------------------------------------------------------------------- def update_state_infect for state in states if $data_states[state.id].infect_turn_a || $data_states[state.id].infect_turn_e if $data_states[state.id].infect_turn_a @infect_turn_a[state.id] -= 1 if @infect_turn_a[state.id] <= 0 shuffle = $game_party.members.dup shuffle = shuffle.shuffle for member in shuffle next if member == nil next if member.state?(state) next if member.dead? member.add_state(state.infect_state_a) end shuffle.clear shuffle = nil end end if $data_states[state.id].infect_turn_e @infect_turn_e[state.id] -= 1 if @infect_turn_e[state.id] <= 0 shuffle = $game_troop.members.dup shuffle = shuffle.shuffle for member in shuffle next if member == nil next if member.state?(state) next if member.dead? member.add_state(state.infect_state_e) end shuffle.clear shuffle = nil end end end end end