I am trying to get my head around the start-to-finish processing of the RTP battle scripts. I'm sure I'm going to have a lot of questions. So I'll keep them all in the one thread, which might be handy for others down the track too.
Question 1:
Why does battle_start call process_event? At this point, the (Enemy) Emerged! message has been displayed. The party has not been given the chance to fight or escape. What could happen between these two things that would require that method to run? Is there something in troop events that could happen before the player's even been given the chance to escape?
Question 1:
Code:
class Scene_Battle def battle_start BattleManager.battle_start process_event start_party_command_selection end def process_event while !scene_changing? $game_troop.interpreter.update $game_troop.setup_battle_event wait_for_message wait_for_effect if $game_troop.all_dead? process_forced_action BattleManager.judge_win_loss break unless $game_troop.interpreter.running? update_for_wait end endend