4#include "sprite/player.h"
6API_CALLABLE(WorldItem_ShowUseSparkles) {
16API_CALLABLE(WorldItem_ShowHPGain) {
23 fx_recover(0, x, y, z, amt);
27API_CALLABLE(WorldItem_ShowFPGain) {
34 fx_recover(1, x, y, z, amt);
38API_CALLABLE(WorldItem_RestoreHP) {
50 playerData->
curHP = newHP;
54API_CALLABLE(WorldItem_RestoreFP) {
66 playerData->
curFP = newFP;
70API_CALLABLE(WorldItem_PauseTime) {
78API_CALLABLE(WorldItem_UnpauseTime) {
86API_CALLABLE(WorldItem_GetItemProperties) {
90 script->varTable[11] = (&
gItemTable[itemIdx])->potencyA;
91 script->varTable[12] = (&
gItemTable[itemIdx])->potencyB;
92 script->varTable[13] = FALSE;
95 script->varTable[13] = TRUE;
99 if (script->varTable[11] < 0 || (script->varTable[11] <= 0 && script->varTable[12] < 0)) {
102 script->varTable[15] = var15;
107API_CALLABLE(WorldItem_ConsumeItem) {
162 Call(WorldItem_PauseTime)
205 Call(WorldItem_ConsumeItem)
207 Call(WorldItem_UnpauseTime)
@ ITEM_TYPE_FLAG_USE_DRINK_ANIMATION
@ GLOBAL_OVERRIDES_CANT_PICK_UP_ITEMS
s32 evt_get_variable(Evt *script, Bytecode var)
void remove_consumable(void)
void set_time_freeze_mode(s32)
Time freeze modes: 0: none 1: NPCs move, can't be interacted with 2: NPCs don't move,...
ApiStatus GetPartnerInUse(Evt *script, b32 isInitialCall)
ApiStatus RemoveItemEntity(Evt *script, b32 isInitialCall)
ApiStatus PlaySound(Evt *script, b32 isInitialCall)
ApiStatus ShowRecoveryShimmer(Evt *script, b32 isInitialCall)
ApiStatus SetPlayerAnimation(Evt *script, b32 isInitialCall)
ApiStatus DisablePlayerInput(Evt *script, b32 isInitialCall)
Disables player and partner input, and disables the status menu.
ApiStatus MakeItemEntity(Evt *script, b32 isInitialCall)
ApiStatus ShowStartRecoveryShimmer(Evt *script, b32 isInitialCall)
ApiStatus InterruptUsePartner(Evt *script, b32 isInitialCall)
ApiStatus GetPlayerPos(Evt *script, b32 isInitialCall)
#define Else
Marks the end of an if statement and the start of the else block.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#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 Add(VAR, INT_VALUE)
#define EndLoop
Marks the end of a loop.
#define IfGt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR <= RVAR.
#define EndIf
Marks the end of an if statement or an else block.
#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 SetGroup(GROUP)
Sets the current thread's group. Group value meanings are currently not known.
#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 Return
Kills the current EVT thread.
EvtScript EVS_WorldItem_ShowUsedItem
EvtScript EVS_WorldItem_PlayEatingSounds
EvtScript EVS_WorldItem_PlayDrinkingSounds
EvtScript EVS_World_UseItem