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
3
NpcSettings
N(
NpcSettings_Blooper
) = {
4
.height = 24,
5
.radius = 24,
6
.level =
ACTOR_LEVEL_NONE
,
7
};
8
9
s32 N(
BlooperBattles
)[] = {
10
BTL_TIK2_FORMATION_00
,
11
BTL_TIK2_FORMATION_01
,
12
BTL_TIK2_FORMATION_02
,
13
};
14
15
API_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
}
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
Blooper.h
BTL_TIK2_FORMATION_00
@ BTL_TIK2_FORMATION_00
Definition
battle_names.h:398
BTL_TIK2_FORMATION_01
@ BTL_TIK2_FORMATION_01
Definition
battle_names.h:399
BTL_TIK2_FORMATION_02
@ BTL_TIK2_FORMATION_02
Definition
battle_names.h:400
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
evt_get_variable
s32 evt_get_variable(Evt *script, Bytecode var)
Definition
evt.c:1689
Enemy::encounterIndex
s8 encounterIndex
Definition
npc.h:296
EncounterStatus::encounterList
Encounter * encounterList[24]
Definition
npc.h:392
gCurrentEncounter
EncounterStatus gCurrentEncounter
Definition
encounter.c:176
Encounter::battle
s16 battle
Definition
npc.h:353
Enemy
Definition
npc.h:294
NpcSettings
Definition
npc.h:143
src
world
common
enemy
Blooper.inc.c
Generated by
1.10.0