4#include "sprite/npc/BattleEldstar.h"
5#include "sprite/player.h"
7#define NAMESPACE battle_move_refresh
11API_CALLABLE(N(FlyAroundPlayer)) {
23 script->functionTemp[0] = STATE_INIT;
26 npc = script->functionTempPtr[1];
28 switch (script->functionTemp[0]) {
41 script->functionTemp[0] = STATE_FLYING;
68 fx_sparkles(0, npc->
pos.
x, npc->
pos.
y, npc->
pos.
z, 30.0f);
75 if (npc->
pos.
y > 200.0f) {
76 script->functionTemp[0] = STATE_DONE;
86API_CALLABLE(N(RemovePlayerDebuffs)) {
109API_CALLABLE(N(SpawnHeartRecoverFX)) {
110 Bytecode* args = script->ptrReadPos;
116 fx_recover(0, x, y, z, duration);
121API_CALLABLE(N(SpawnFlowerRecoverFX)) {
122 Bytecode* args = script->ptrReadPos;
128 fx_recover(1, x, y, z, duration);
134 ExecWait(N(EVS_StarPower_WishForSpirit))
136 ExecWait(N(EVS_StarPower_SpiritSummoned))
161 Call(N(RemovePlayerDebuffs))
163 Call(PlayerYieldTurn)
struct EffectInstance * disableEffect
struct DisableXFXData * disableX
s32 evt_get_variable(Evt *script, Bytecode var)
void remove_status_debuff(s32)
void btl_update_ko_status(void)
void add_vec2D_polar(f32 *x, f32 *y, f32 r, f32 theta)
Npc * get_npc_unsafe(s32 npcID)
ApiStatus PlaySound(Evt *script, b32 isInitialCall)
ApiStatus DeleteNpc(Evt *script, b32 isInitialCall)
ApiStatus SetNpcAnimation(Evt *script, b32 isInitialCall)
ApiStatus ShowStartRecoveryShimmer(Evt *script, b32 isInitialCall)
ApiStatus EnableNpcBlur(Evt *script, b32 isInitialCall)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Add(VAR, INT_VALUE)
#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 Wait(NUM_FRAMES)
Blocks for the given number of frames.
#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.
struct Actor * playerActor
BattleStatus gBattleStatus