Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
AmazyDayzee.inc.c
Go to the documentation of this file.
1#include "AmazyDayzee.h"
2
4
5MobileAISettings N(AISettings_AmazyDayzee) = {
6 .moveSpeed = 1.5f,
7 .moveTime = 30,
8 .waitTime = 30,
9 .alertRadius = 100.0f,
10 .alertOffsetDist = 30.0f,
11 .playerSearchInterval = 3,
12 .chaseSpeed = 2.4f,
13 .chaseTurnRate = 15,
14 .chaseUpdateInterval = 1,
15 .chaseRadius = 140.0f,
16 .chaseOffsetDist = 30.0f,
17 .unk_AI_2C = 1,
18};
19
20EvtScript N(EVS_NpcAI_AmazyDayzee) = {
21 Call(N(AvoidPlayerAI_Main), Ref(N(AISettings_AmazyDayzee)))
22 Return
23 End
24};
25
26EvtScript N(EVS_NpcAux_AmazyDayzee) = {
27 Label(0)
29 Add(LVar1, 30)
30 Sub(LVar2, 2)
31 PlayEffect(EFFECT_SPARKLES, 3, LVar0, LVar1, LVar2, 30)
32 Wait(15)
33 Goto(0)
34 Return
35 End
36};
37
38NpcSettings N(NpcSettings_AmazyDayzee) = {
39 .height = 30,
40 .radius = 24,
41 .level = ACTOR_LEVEL_AMAZY_DAYZEE,
42 .ai = &N(EVS_NpcAI_AmazyDayzee),
43 .onHit = &EnemyNpcHit,
44 .aux = &N(EVS_NpcAux_AmazyDayzee),
45 .onDefeat = &EnemyNpcDefeat,
46};
Bytecode EvtScript[]
@ NPC_SELF
Definition enums.h:2526
s16 height
Definition npc.h:145
ApiStatus GetNpcPos(Evt *script, b32 isInitialCall)
EvtScript EnemyNpcDefeat
Definition encounter.c:158
EvtScript EnemyNpcHit
Definition encounter.c:131
#define Ref(sym)
Address/pointer constant.
Definition macros.h:60
#define Sub(VAR, INT_VALUE)
Definition macros.h:377
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Add(VAR, INT_VALUE)
Definition macros.h:376
#define Goto(LABEL_ID)
Moves execution to the given label.
Definition macros.h:232
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
Definition macros.h:227
#define LVar2
Definition macros.h:150
#define LVar1
Definition macros.h:149
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:254
#define PlayEffect(args...)
Definition macros.h:807
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define LVar0
Definition macros.h:148
#define Return
Kills the current EVT thread.
Definition macros.h:217