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
4
5MobileAISettings N(AISettings_StarSpirit_Wander) = {
6 .moveSpeed = 1.2f,
7 .moveTime = 60,
8 .waitTime = 30,
9 .playerSearchInterval = -1,
10 .unk_AI_2C = 1,
11};
12
13EvtScript 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
23NpcSettings N(NpcSettings_StarSpirit_Wander) = {
24 .height = 26,
25 .radius = 24,
26 .level = ACTOR_LEVEL_NONE,
27 .ai = &N(EVS_NpcAI_StarSpirit_Wander),
28};
29
30NpcSettings N(NpcSettings_StarKid_Wander) = {
31 .height = 20,
32 .radius = 20,
33 .level = ACTOR_LEVEL_NONE,
34 .ai = &N(EVS_NpcAI_StarSpirit_Wander),
35};
36
37NpcSettings N(NpcSettings_StarMan_Wander) = {
38 .height = 22,
39 .radius = 24,
40 .level = ACTOR_LEVEL_NONE,
41 .ai = &N(EVS_NpcAI_StarSpirit_Wander),
42};
Bytecode EvtScript[]
s16 height
Definition npc.h:145
ApiStatus SetSelfVar(Evt *script, b32 isInitialCall)
#define Ref(sym)
Address/pointer constant.
Definition macros.h:60
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define Return
Kills the current EVT thread.
Definition macros.h:217