4#include "sprite/npc/Magikoopa.h"
5#include "sprite/npc/FlyingMagikoopa.h"
7#define NAMESPACE A(yellow_magikoopa)
9extern s32 N(GroundAnims)[];
10extern s32 N(FlyingAnims)[];
11extern s32 N(BroomAnims)[];
25 AVAR_ShouldKnockDown = 0,
33s32 N(DefenseTable)[] = {
38s32 N(FlyingDefense)[] = {
43s32 N(StatusTable)[] = {
68s32 N(FlyingStatusTable)[] = {
97 .posOffset = { 0, 0, 0 },
98 .targetOffset = { 2, 35 },
100 .idleAnimations = N(GroundAnims),
101 .defenseTable = N(DefenseTable),
103 .elementImmunityFlags = 0,
104 .projectileTargetOffset = { -5, -12 },
112 .posOffset = { 0, 0, 0 },
113 .targetOffset = { 2, 35 },
115 .idleAnimations = N(GroundAnims),
116 .defenseTable = N(FlyingDefense),
118 .elementImmunityFlags = 0,
119 .projectileTargetOffset = { -5, -12 },
124 .posOffset = { 0, 0, 0 },
125 .targetOffset = { -10, 35 },
127 .idleAnimations = N(FlyingAnims),
128 .defenseTable = N(FlyingDefense),
130 .elementImmunityFlags = 0,
131 .projectileTargetOffset = { 0, -8 },
136 .posOffset = { 0, 0, 0 },
137 .targetOffset = { 0, 0 },
139 .idleAnimations = N(BroomAnims),
140 .defenseTable = N(FlyingDefense),
142 .elementImmunityFlags = 0,
143 .projectileTargetOffset = { 0, 0 },
149 .type = ACTOR_TYPE_YELLOW_MAGIKOOPA,
150 .level = ACTOR_LEVEL_YELLOW_MAGIKOOPA,
153 .partsData = N(GroundParts),
154 .initScript = &N(EVS_Init),
155 .statusTable = N(StatusTable),
158 .hurricaneChance = 70,
160 .upAndAwayChance = 95,
162 .powerBounceChance = 80,
165 .healthBarOffset = { 0, 0 },
166 .statusIconOffset = { -10, 20 },
167 .statusTextOffset = { 10, 32 },
172 .type = ACTOR_TYPE_FLYING_YELLOW_MAGIKOOPA,
173 .level = ACTOR_LEVEL_FLYING_YELLOW_MAGIKOOPA,
176 .partsData = N(FlyingParts),
177 .initScript = &N(EVS_Init_Flying),
178 .statusTable = N(FlyingStatusTable),
181 .hurricaneChance = 75,
183 .upAndAwayChance = 95,
185 .powerBounceChance = 80,
188 .healthBarOffset = { 0, 0 },
189 .statusIconOffset = { -25, 20 },
190 .statusTextOffset = { 1, 34 },
193s32 N(GroundAnims)[] = {
206s32 N(FlyingAnims)[] = {
219s32 N(BroomAnims)[] = {
289 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim04)
295 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim02)
323#include "common/GetSelectedMoveID.inc.c"
355 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim04)
360 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim04)
385 Call(N(StartRumbleWithParams), 150, 10)
391 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim04)
408 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim01)
413 Call(N(SetAbsoluteStatusOffsets), -10, 20, 10, 32)
496 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Yellow_Anim01)
500 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Yellow_Anim01)
507 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Yellow_Anim04)
513 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Yellow_Anim02)
548 Call(MoveBattleCamOver, 1)
551 Call(MoveBattleCamOver, 10)
564 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Yellow_Anim02)
572 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Yellow_Anim03)
603 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Yellow_Anim03)
643 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim02)
670 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim03)
691 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim01)
721 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim01)
746 Call(MoveBattleCamOver, 15)
798#include "common/battle/CheckMagikoopaCastTarget.inc.c"
804 Call(InitTargetIterator)
847 Call(MoveBattleCamOver, 15)
851 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim02)
853 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Yellow_Anim02)
890 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Yellow_Anim01)
892 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Yellow_Anim01)
905 Call(FreezeBattleState, TRUE)
907 Call(FreezeBattleState, FALSE)
909 Call(WaitForBuffDone)
#define STATUS_FLAGS_IMMOBILIZED
@ BS_FLAGS1_PARTNER_ACTING
@ BS_FLAGS1_TRIGGER_EVENTS
@ BS_FLAGS1_INCLUDE_POWER_UPS
@ ACTOR_EVENT_FLAG_RIDING_BROOMSTICK
Actor is on Magikoopa Broomstick, effect seems to be redundant.
@ STATUS_TURN_MOD_DEFAULT
@ STATUS_TURN_MOD_PARALYZE
@ TARGET_FLAG_PRIMARY_ONLY
@ STATUS_FLAG_TRANSPARENT
@ SOUND_MAGIKOOPA_WAND_STRIKE
@ SOUND_MAGIKOOPA_ELECTRIFY
@ ACTOR_FLAG_FLYING
Quake Hammer can't hit.
@ ACTOR_FLAG_TYPE_CHANGED
Indicates actors type has changed, triggers recheck for if HP bar should be shown based on tattle sta...
@ EVENT_BEGIN_FIRST_STRIKE
@ ACTOR_PART_FLAG_PRIMARY_TARGET
@ ACTOR_PART_FLAG_USE_ABSOLUTE_POSITION
@ ACTOR_PART_FLAG_NO_TARGET
Cannot be targeted.
@ ACTOR_PART_FLAG_INVISIBLE
@ DAMAGE_TYPE_TRIGGER_LUCKY
EvtScript EVS_Enemy_Death
EvtScript EVS_Enemy_SpinSmashHit
EvtScript EVS_Enemy_AirLift
EvtScript EVS_ForceNextTarget
EvtScript EVS_Enemy_BlowAway
EvtScript EVS_Enemy_Recover
EvtScript EVS_Enemy_BurnHit
EvtScript EVS_Enemy_NoDamageHit
ApiStatus RandInt(Evt *script, b32 isInitialCall)
ApiStatus ShakeCam(Evt *script, b32 isInitialCall)
#define Else
Marks the end of an if statement and the start of the else block.
#define Switch(LVAR)
Marks the start of a switch statement.
#define Ref(sym)
Address/pointer constant.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#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 Sub(VAR, INT_VALUE)
#define IfNe(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR != RVAR.
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Mod(VAR, INT_VALUE)
#define Add(VAR, INT_VALUE)
#define EndLoop
Marks the end of a loop.
#define EndCaseGroup
Marks the end of a switch case group (CaseOrEq and/or CaseAndEq), stopping fallthrough.
#define Goto(LABEL_ID)
Moves execution to the given label.
#define IfGt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR <= RVAR.
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
#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 CaseDefault
Marks the start of a switch case that executes unconditionally. It also marks the end of any previous...
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#define Thread
Marks the start of a thread block.
#define EndThread
Marks the end of a thread block.
#define IfFlag(LVAR, RVAR)
Marks the beginning of an if statement that only executes if the RVAR flag is set on LVAR,...
#define IfNotFlag(LVAR, RVAR)
Marks the beginning of an if statement that only executes if the RVAR flag is unset on LVAR,...
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
#define PlayEffect(args...)
#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 Loop(TIMES)
Marks the beginning of a loop.
#define SetConst(VAR, CONST)
Sets the given variable to a given value, skipping the evt_get_variable call.
#define Return
Kills the current EVT thread.
@ BTL_VAR_Magikoopa_LastIndexBoosted