2020-08-04 08:49:11 +02:00
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, SetEncounterStatusFlags);
|
|
|
|
|
2020-08-16 07:13:03 +02:00
|
|
|
s32 LoadDemoBattle(ScriptInstance* script) {
|
2020-08-10 07:03:56 +02:00
|
|
|
load_demo_battle(get_variable(script, *script->ptrReadPos));
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ???
|
2020-08-16 07:13:03 +02:00
|
|
|
s32 func_80044290(ScriptInstance* script) {
|
2020-08-10 07:03:56 +02:00
|
|
|
return 2;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, MakeNpcs);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, RemoveNpc);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, RemoveEncounter);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, GetBattleOutcome);
|
|
|
|
|
2020-08-16 07:13:03 +02:00
|
|
|
s32 GetOwnerEncountered(ScriptInstance* script) {
|
2020-08-10 07:03:56 +02:00
|
|
|
set_variable(script, *script->ptrReadPos, script->ownerActorID->encountered);
|
|
|
|
return 2;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, DoNpcDefeat);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, start_battle);
|
|
|
|
|
2020-08-16 07:13:03 +02:00
|
|
|
s32 StartBattle(ScriptInstance* script) {
|
2020-08-10 07:03:56 +02:00
|
|
|
start_battle(script, -1);
|
|
|
|
return 1;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-08-16 07:13:03 +02:00
|
|
|
s32 StartBattleWith(ScriptInstance* script) {
|
2020-08-10 07:03:56 +02:00
|
|
|
start_battle(script, get_variable(script, *script->ptrReadPos));
|
|
|
|
return 1;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, StartBossBattle);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, SetBattleMusic);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, BindNpcAI);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, BindNpcIdle);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, RestartNpcAI);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, EnableNpcAI);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, SetNpcAux);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, BindNpcAux);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, RestartNpcAux);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, EnableNpcAux);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, BindNpcInteract);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, BindNpcHit);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, BindNpcDefeat);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, SetSelfVar);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, GetSelfVar);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, SetNpcVar);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, GetNpcVar);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, SetSelfRotation);
|
|
|
|
|
2020-08-16 07:13:03 +02:00
|
|
|
s32 SetSelfEnemyFlags(ScriptInstance* script) {
|
2020-08-10 07:03:56 +02:00
|
|
|
script->ownerActorID->flags = *script->ptrReadPos;
|
|
|
|
return 2;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, SetSelfEnemyFlagBits);
|
|
|
|
|
2020-08-16 07:13:03 +02:00
|
|
|
s32 GetSelfNpcID(ScriptInstance* script) {
|
2020-08-10 07:03:56 +02:00
|
|
|
set_variable(script, *script->ptrReadPos, script->ownerActorID->npcID);
|
|
|
|
return 2;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, ClearDefeatedEnemies);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, SetEnemyFlagBits);
|
|
|
|
|
|
|
|
INCLUDE_ASM(code_1f580_len_1940, GetSelfAnimationFromTable);
|