Go to the source code of this file.
◆ start_battle()
void start_battle |
( |
Evt * | script, |
|
|
s32 | songID ) |
Definition at line 189 of file encounter_api.c.
189 {
193 s32 i;
194
196
203 currentEncounter->
songID = songID;
204 currentEncounter->
unk_18 = -1;
205
208 }
209
212 }
213
216
218 for (i = 0; i < encounter->
count; i++) {
219 enemy = encounter->
enemy[i];
224
226
229
231 hitEvtInstance->
owner1.enemy = enemy;
234 }
235 }
236 }
237
244}
union Evt::@8 owner1
Initially -1.
union Evt::@9 owner2
Initially -1.
@ ENEMY_FLAG_ENABLE_HIT_SCRIPT
@ ENCOUNTER_SUBSTATE_PRE_BATTLE_INIT
@ ENCOUNTER_STATE_PRE_BATTLE
@ EVT_GROUP_FLAG_INTERACT
void partner_disable_input(void)
s32 disable_player_input(void)
s32 resume_all_group(s32 groupFlags)
s32 suspend_all_script(s32 id)
Evt * start_script(EvtScript *source, s32 priority, s32 initialState)
s8 scriptedBattle
battle started by StartBattle but not by encounter
Encounter * encounterList[24]
EncounterStatus gCurrentEncounter
b32 EncounterStateChanged