10 .alertOffsetDist = 20.0f,
11 .playerSearchInterval = 3,
14 .chaseUpdateInterval = 10,
15 .chaseRadius = 150.0f,
16 .chaseOffsetDist = 20.0f,
21 Call(N(FlyingMagikoopaAI_Main),
Ref(N(AISettings_FlyingMagikoopa)))
26EvtScript N(EVS_NpcDefeat_FlyingMagikoopa) = {
44 .level = ACTOR_LEVEL_FLYING_MAGIKOOPA,
45 .ai = &N(EVS_NpcAI_FlyingMagikoopa),
47 .onDefeat = &N(EVS_NpcDefeat_FlyingMagikoopa),
50AnimID N(ExtraAnims_FlyingMagikoopa)[] = {
51 ANIM_FlyingMagikoopa_Anim00,
52 ANIM_FlyingMagikoopa_Anim01,
53 ANIM_FlyingMagikoopa_Anim01,
54 ANIM_FlyingMagikoopa_Anim01,
55 ANIM_FlyingMagikoopa_Anim02,
56 ANIM_FlyingMagikoopa_Anim03,
57 ANIM_FlyingMagikoopa_Anim04,
61EvtScript N(EVS_NpcAuxAI_FlyingMagikoopa_AltHitbox) = {
68EvtScript N(EVS_NpcAuxAI_FlyingMagikoopa_Hitbox) = {
75EvtScript N(EVS_NpcAI_FlyingMagikoopa_Hitbox) = {
76 Call(N(MagikoopaAI_SpellMain))
81EvtScript N(EVS_NpcHit_FlyingMagikoopa_Hitbox) = {
82 Call(N(FlyingMagikoopaAI_OnHitInit))
86 Call(N(FlyingMagikoopaAI_OnHit))
92EvtScript N(EVS_NpcDefeat_FlyingMagikoopa_Hitbox) = {
108NpcSettings N(NpcSettings_FlyingMagikoopa_AltHitbox) = {
110 .otherAI = &N(EVS_NpcAuxAI_FlyingMagikoopa_AltHitbox),
111 .ai = &N(EVS_NpcAI_FlyingMagikoopa_Hitbox),
112 .onHit = &N(EVS_NpcHit_FlyingMagikoopa_Hitbox),
113 .onDefeat = &N(EVS_NpcDefeat_FlyingMagikoopa_Hitbox),
116NpcSettings N(NpcSettings_FlyingMagikoopa_Hitbox) = {
117 .defaultAnim = ANIM_FlyingMagikoopa_Anim00,
118 .otherAI = &N(EVS_NpcAuxAI_FlyingMagikoopa_Hitbox),
119 .ai = &N(EVS_NpcAI_FlyingMagikoopa_Hitbox),
120 .onHit = &N(EVS_NpcHit_FlyingMagikoopa_Hitbox),
121 .onDefeat = &N(EVS_NpcDefeat_FlyingMagikoopa_Hitbox),
ApiStatus SetEnemyFlagBits(Evt *script, b32 isInitialCall)
ApiStatus RemoveNpc(Evt *script, b32 isInitialCall)
ApiStatus DoNpcDefeat(Evt *script, b32 isInitialCall)
ApiStatus SetNpcPos(Evt *script, b32 isInitialCall)
ApiStatus OnPlayerFled(Evt *script, b32 isInitialCall)
ApiStatus SetSelfVar(Evt *script, b32 isInitialCall)
ApiStatus GetBattleOutcome(Evt *script, b32 isInitialCall)
#define Switch(LVAR)
Marks the start of a switch statement.
#define Ref(sym)
Address/pointer constant.
#define CaseEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR. It also marks the end of any pre...
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define EndIf
Marks the end of an if statement or an else block.
#define NPC_DISPOSE_LOCATION
#define EndSwitch
Marks the end of a switch statement and any case.
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Exec(EVT_SOURCE)
Launches a new thread.
#define Return
Kills the current EVT thread.
#define ANIM_LIST_END
Terminates an extraAnimationList.