Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Blooper.inc.c
Go to the documentation of this file.
1#include "Blooper.h"
2
3NpcSettings N(NpcSettings_Blooper) = {
4 .height = 24,
5 .radius = 24,
6 .level = ACTOR_LEVEL_NONE,
7};
8
9s32 N(BlooperBattles)[] = {
13};
14
15API_CALLABLE(N(GetBlooperBattleID)) {
16 Bytecode* args = script->ptrReadPos;
17 Enemy* enemy = script->owner1.enemy;
18 s32 index = evt_get_variable(script, *args++);
19
20 gCurrentEncounter.encounterList[enemy->encounterIndex]->battle = N(BlooperBattles)[index];
21 return ApiStatus_DONE2;
22}
@ BTL_TIK2_FORMATION_00
@ BTL_TIK2_FORMATION_01
@ BTL_TIK2_FORMATION_02
#define ApiStatus_DONE2
Definition evt.h:118
s32 Bytecode
Definition evt.h:7
s32 evt_get_variable(Evt *script, Bytecode var)
Definition evt.c:1690
s8 encounterIndex
Definition npc.h:296
Encounter * encounterList[24]
Definition npc.h:392
EncounterStatus gCurrentEncounter
Definition encounter.c:176
s16 battle
Definition npc.h:353
Definition npc.h:294