class Game_Troop < Game_Unit
#==========================================================================
# 所有的战斗都必须要执行以下敌人队伍中设置战斗事件,请设置该敌人队伍的ID号,
# 默认是31号。然后请到【数据库】-【敌人队伍】中找到该ID,尽情地设置吧!
FORCE_TROOP_ID = 31
#==========================================================================
#--------------------------------------------------------------------------
# ● 设置战斗事件
#--------------------------------------------------------------------------
def setup_battle_event
return if @interpreter.running?
if $game_temp.common_event_id > 0
common_event = $data_common_events[$game_temp.common_event_id]
@interpreter.setup(common_event.list)
$game_temp.common_event_id = 0
return
end
for page in troop.pages
next unless conditions_met?(page)
@interpreter.setup(page.list)
if page.span <= 1
@event_flags[page] = true
end
return
end
for page in $data_troops[FORCE_TROOP_ID].pages
next unless conditions_met?(page)
@interpreter.setup(page.list)
if page.span <= 1
@event_flags[page] = true
end
return
end
end
end