Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
StarSpirit_Wander.inc.c
Go to the documentation of this file.
1
#include "
StarSpirit.h
"
2
3
#include "
world/common/enemy/ai/FlyingAI.inc.c
"
4
5
MobileAISettings
N(
AISettings_StarSpirit_Wander
) = {
6
.moveSpeed = 1.2f,
7
.moveTime = 60,
8
.waitTime = 30,
9
.playerSearchInterval = -1,
10
.unk_AI_2C = 1,
11
};
12
13
EvtScript
N(
EVS_NpcAI_StarSpirit_Wander
) = {
14
Call
(
SetSelfVar
, 0, 0)
15
Call
(
SetSelfVar
, 5, 0)
16
Call
(
SetSelfVar
, 6, 0)
17
Call
(
SetSelfVar
, 1, 200)
18
Call
(N(
FlyingAI_Main
),
Ref
(N(
AISettings_StarSpirit_Wander
)))
19
Return
20
End
21
};
22
23
NpcSettings
N(
NpcSettings_StarSpirit_Wander
) = {
24
.
height
= 26,
25
.radius = 24,
26
.level =
ACTOR_LEVEL_NONE
,
27
.ai = &N(
EVS_NpcAI_StarSpirit_Wander
),
28
};
29
30
NpcSettings
N(
NpcSettings_StarKid_Wander
) = {
31
.height = 20,
32
.radius = 20,
33
.level =
ACTOR_LEVEL_NONE
,
34
.ai = &N(
EVS_NpcAI_StarSpirit_Wander
),
35
};
36
37
NpcSettings
N(
NpcSettings_StarMan_Wander
) = {
38
.height = 22,
39
.radius = 24,
40
.level =
ACTOR_LEVEL_NONE
,
41
.ai = &N(
EVS_NpcAI_StarSpirit_Wander
),
42
};
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
FlyingAI.inc.c
StarSpirit.h
EvtScript
Bytecode EvtScript[]
Definition
common_structs.h:14
NpcSettings::height
s16 height
Definition
npc.h:145
MobileAISettings
Definition
npc.h:92
NpcSettings
Definition
npc.h:143
SetSelfVar
ApiStatus SetSelfVar(Evt *script, b32 isInitialCall)
Ref
#define Ref(sym)
Address/pointer constant.
Definition
macros.h:60
End
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition
macros.h:213
Call
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition
macros.h:576
Return
#define Return
Kills the current EVT thread.
Definition
macros.h:217
src
world
common
npc
StarSpirit_Wander.inc.c
Generated by
1.10.0