4#include "sprite/player.h"
6#define NAMESPACE battle_item_stone_cap
10API_CALLABLE(N(func_802A123C_7217DC)) {
16 script->functionTemp[0] = 0;
19 switch (script->functionTemp[0]) {
23 script->functionTemp[1] = 3;
24 script->functionTemp[0] = 1;
28 for (i = 0; i < 10; i++) {
31 f32 z = player->
curPos.
z + 5.0f;
32 fx_floating_cloud_puff(0, x, y, z, 1.0f, 25);
35 if (script->functionTemp[1] == 0) {
38 battleStatus2->
flags1 &= ~BS_FLAGS1_HUSTLED;
45 script->functionTemp[1]--;
63 Call(N(func_802A123C_7217DC))
s32 inflict_status(Actor *, s32, s32)
ApiStatus PlaySound(Evt *script, b32 isInitialCall)
ApiStatus GetItemPower(Evt *script, b32 isInitialCall)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#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