I have another problem about this script section:
class Game_Enemy < Game_Battler #-------------------------------------------------------------------------- # * states #-------------------------------------------------------------------------- def states st = super for newbornstate in enemy.new_added_state st.push(newbornstate) unless newbornstate.nil? end return st.uniq endendNormally, it works, but whenever I finish my turn during battle, this error occurs:
which pinpoints me to this script section:
#-------------------------------------------------------------------------- # * Update State Turn Count #-------------------------------------------------------------------------- def update_state_turns states.each do |state| @state_turns[state.id] -= 1 if @state_turns[state.id] > 0 end endWhat is wrong with my script?
class Game_Enemy < Game_Battler #-------------------------------------------------------------------------- # * states #-------------------------------------------------------------------------- def states st = super for newbornstate in enemy.new_added_state st.push(newbornstate) unless newbornstate.nil? end return st.uniq endendNormally, it works, but whenever I finish my turn during battle, this error occurs:
which pinpoints me to this script section:
#-------------------------------------------------------------------------- # * Update State Turn Count #-------------------------------------------------------------------------- def update_state_turns states.each do |state| @state_turns[state.id] -= 1 if @state_turns[state.id] > 0 end endWhat is wrong with my script?