3#include "sprite/npc/BattleParakarry.h"
5#define NAMESPACE A(parakarry_clone)
12s32 N(DefaultAnims)[] = {
25s32 N(DefenseTable)[] = {
30s32 N(StatusTable)[] = {
59 .posOffset = { 0, 0, 0 },
60 .targetOffset = { -3, 32 },
62 .idleAnimations = N(DefaultAnims),
63 .defenseTable = N(DefenseTable),
65 .elementImmunityFlags = 0,
66 .projectileTargetOffset = { 0, -16 },
71 .posOffset = { 0, 50, 0 },
72 .targetOffset = { -3, -18 },
74 .idleAnimations = NULL,
75 .defenseTable = N(DefenseTable),
77 .elementImmunityFlags = 0,
78 .projectileTargetOffset = { 0, -16 },
84 .type = ACTOR_TYPE_GHOST_PARAKARRY,
85 .level = ACTOR_LEVEL_GHOST_PARAKARRY,
88 .partsData = N(ActorParts),
89 .initScript = &N(EVS_Init),
90 .statusTable = N(StatusTable),
93 .hurricaneChance = 70,
95 .upAndAwayChance = 95,
97 .powerBounceChance = 90,
100 .healthBarOffset = { 0, 0 },
101 .statusIconOffset = { -10, 20 },
102 .statusTextOffset = { 10, 20 },
129 ExecWait(
A(EVS_Duplighost_OnHitElectric))
240 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Run)
245 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Still)
250 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_FlyFast)
256 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_PreDive)
263 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Dive)
272 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Idle)
287 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Run)
295 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_PostDive)
318 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Dive)
322 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Still)
325 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Run)
329 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Idle)
334 Call(SetAnimation,
ACTOR_SELF, PRT_MAIN, ANIM_BattleParakarry_Run)
#define STATUS_FLAGS_IMMOBILIZED
@ BS_FLAGS1_TRIGGER_EVENTS
@ BS_FLAGS1_INCLUDE_POWER_UPS
@ STATUS_TURN_MOD_DEFAULT
@ STATUS_TURN_MOD_PARALYZE
@ SOUND_PARAKARRY_PREDIVE
@ ACTOR_FLAG_FLYING
Quake Hammer can't hit.
@ ACTOR_PART_FLAG_PRIMARY_TARGET
@ ACTOR_PART_FLAG_SKIP_MOVEMENT_ALLOC
@ ACTOR_PART_FLAG_NO_TARGET
Cannot be targeted.
@ ACTOR_PART_FLAG_INVISIBLE
@ DAMAGE_TYPE_TRIGGER_LUCKY
EvtScript EVS_Enemy_ScareAway
EvtScript EVS_Enemy_Death
EvtScript EVS_Enemy_SpinSmashHit
EvtScript EVS_Enemy_AirLift
EvtScript EVS_Enemy_BlowAway
EvtScript EVS_Enemy_Recover
EvtScript EVS_Enemy_BurnHit
EvtScript EVS_Enemy_NoDamageHit
ApiStatus PlaySound(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 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 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 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 SetConst(VAR, CONST)
Sets the given variable to a given value, skipping the evt_get_variable call.
#define Return
Kills the current EVT thread.
#define ACTOR_BY_POS(_name, _pos, _priority, args...)