5#include "sprite/npc/Magikoopa.h"
6#include "sprite/npc/FlyingMagikoopa.h"
8#define NAMESPACE A(green_magikoopa)
17extern s32 N(GroundAnims)[];
18extern s32 N(FlyingAnims)[];
19extern s32 N(BroomAnims)[];
28 AVAR_ShouldKnockDown = 0,
36s32 N(DefenseTable)[] = {
41s32 N(FlyingDefense)[] = {
46s32 N(StatusTable)[] = {
71s32 N(FlyingStatusTable)[] = {
100 .posOffset = { 0, 0, 0 },
101 .targetOffset = { 2, 35 },
103 .idleAnimations = N(GroundAnims),
104 .defenseTable = N(DefenseTable),
106 .elementImmunityFlags = 0,
107 .projectileTargetOffset = { -5, -12 },
115 .posOffset = { 0, 0, 0 },
116 .targetOffset = { 2, 35 },
118 .idleAnimations = N(GroundAnims),
119 .defenseTable = N(FlyingDefense),
121 .elementImmunityFlags = 0,
122 .projectileTargetOffset = { -5, -12 },
127 .posOffset = { 0, 0, 0 },
128 .targetOffset = { -10, 35 },
130 .idleAnimations = N(FlyingAnims),
131 .defenseTable = N(FlyingDefense),
133 .elementImmunityFlags = 0,
134 .projectileTargetOffset = { 0, -8 },
139 .posOffset = { 0, 0, 0 },
140 .targetOffset = { 0, 0 },
142 .idleAnimations = N(BroomAnims),
143 .defenseTable = N(FlyingDefense),
145 .elementImmunityFlags = 0,
146 .projectileTargetOffset = { 0, 0 },
152 .type = ACTOR_TYPE_GREEN_MAGIKOOPA,
153 .level = ACTOR_LEVEL_GREEN_MAGIKOOPA,
156 .partsData = N(GroundParts),
157 .initScript = &N(EVS_Init),
158 .statusTable = N(StatusTable),
161 .hurricaneChance = 70,
163 .upAndAwayChance = 95,
165 .powerBounceChance = 75,
168 .healthBarOffset = { 0, 0 },
169 .statusIconOffset = { -10, 20 },
170 .statusTextOffset = { 10, 32 },
175 .type = ACTOR_TYPE_FLYING_GREEN_MAGIKOOPA,
176 .level = ACTOR_LEVEL_FLYING_GREEN_MAGIKOOPA,
179 .partsData = N(FlyingParts),
180 .initScript = &N(EVS_Init_Flying),
181 .statusTable = N(FlyingStatusTable),
184 .hurricaneChance = 75,
186 .upAndAwayChance = 95,
188 .powerBounceChance = 75,
191 .healthBarOffset = { 0, 0 },
192 .statusIconOffset = { -25, 20 },
193 .statusTextOffset = { 1, 34 },
196s32 N(GroundAnims)[] = {
209s32 N(FlyingAnims)[] = {
222s32 N(BroomAnims)[] = {
296 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim04)
302 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim02)
357 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim04)
362 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim04)
387 Call(N(StartRumbleWithParams), 150, 10)
393 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim04)
410 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim01)
415 Call(N(SetAbsoluteStatusOffsets), -10, 20, 10, 32)
498 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim01)
502 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim01)
509 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim04)
515 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim02)
550 Call(MoveBattleCamOver, 1)
553 Call(MoveBattleCamOver, 10)
566 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim02)
574 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim03)
605 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim03)
645 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim02)
672 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim03)
693 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim01)
723 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim01)
748 Call(MoveBattleCamOver, 15)
804 Call(InitTargetIterator)
847 Call(MoveBattleCamOver, 15)
851 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim02)
853 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim02)
890 Call(SetAnimation,
ACTOR_SELF, PRT_GROUND, ANIM_Magikoopa_Green_Anim01)
892 Call(SetAnimation,
ACTOR_SELF, PRT_FLYING, ANIM_FlyingMagikoopa_Green_Anim01)
900 Call(FreezeBattleState, TRUE)
902 Call(FreezeBattleState, FALSE)
904 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
@ SOUND_MAGIKOOPA_WAND_STRIKE
@ SOUND_MAGIKOOPA_POWER_UP
@ 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 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 IfLt(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