23 .alertRadius = 100.0f,
24 .playerSearchInterval = 10,
27 .chaseUpdateInterval = 15,
28 .chaseRadius = 200.0f,
33 Call(N(MagikoopaAI_Main),
Ref(N(AISettings_Magikoopa)))
57 Call(N(MagikoopaAI_OnPlayerWon))
60 Call(N(MagikoopaAI_OnPlayerFled))
70 .level = ACTOR_LEVEL_MAGIKOOPA,
71 .ai = &N(EVS_NpcAI_Magikoopa),
72 .onHit = &N(EVS_NpcHit_Magikoopa),
73 .onDefeat = &N(EVS_NpcDefeat_Magikoopa),
76AnimID N(ExtraAnims_Magikoopa)[] = {
77 ANIM_Magikoopa_Anim00,
78 ANIM_Magikoopa_Anim01,
79 ANIM_Magikoopa_Anim01,
80 ANIM_Magikoopa_Anim01,
81 ANIM_Magikoopa_Anim02,
82 ANIM_Magikoopa_Anim03,
83 ANIM_Magikoopa_Anim04,
87EvtScript N(EVS_NpcAuxAI_Magikoopa_GroundHitbox) = {
94EvtScript N(EVS_NpcAuxAI_Magikoopa_FlyingHitbox) = {
101EvtScript N(EVS_NpcAI_Magikoopa_Hitbox) = {
102 Call(N(MagikoopaAI_SpellMain))
107EvtScript N(EVS_NpcHit_Magikoopa_Hitbox) = {
108 Call(N(MagikoopaAI_OnHitInit))
112 Call(N(MagikoopaAI_OnHit))
118EvtScript N(EVS_NpcDefeat_Magikoopa_Hitbox) = {
134NpcSettings N(NpcSettings_Magikoopa_GroundHitbox) = {
136 .otherAI = &N(EVS_NpcAuxAI_Magikoopa_GroundHitbox),
137 .ai = &N(EVS_NpcAI_Magikoopa_Hitbox),
138 .onHit = &N(EVS_NpcHit_Magikoopa_Hitbox),
139 .onDefeat = &N(EVS_NpcDefeat_Magikoopa_Hitbox),
142NpcSettings N(NpcSettings_Magikoopa_FlyingHitbox) = {
143 .defaultAnim = ANIM_FlyingMagikoopa_Anim00,
144 .otherAI = &N(EVS_NpcAuxAI_Magikoopa_FlyingHitbox),
145 .ai = &N(EVS_NpcAI_Magikoopa_Hitbox),
146 .onHit = &N(EVS_NpcHit_Magikoopa_Hitbox),
147 .onDefeat = &N(EVS_NpcDefeat_Magikoopa_Hitbox),
@ ENCOUNTER_TRIGGER_HAMMER
@ ENCOUNTER_TRIGGER_PARTNER
ApiStatus SetEnemyFlagBits(Evt *script, b32 isInitialCall)
ApiStatus RemoveNpc(Evt *script, b32 isInitialCall)
ApiStatus GetSelfAnimationFromTable(Evt *script, b32 isInitialCall)
ApiStatus DoNpcDefeat(Evt *script, b32 isInitialCall)
ApiStatus SetNpcPos(Evt *script, b32 isInitialCall)
ApiStatus GetOwnerEncounterTrigger(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 EndCaseGroup
Marks the end of a switch case group (CaseOrEq and/or CaseAndEq), stopping fallthrough.
#define CaseOrEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR.
#define EndIf
Marks the end of an if statement or an else block.
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#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.
EvtScript EVS_NpcHitRecoil
#define ANIM_LIST_END
Terminates an extraAnimationList.