papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
world_use_item.c File Reference

Functions

 MATCHING_BSS (0x2700)
 

Variables

EvtScript EVS_WorldItem_ShowUsedItem
 
EvtScript EVS_WorldItem_PlayEatingSounds
 
EvtScript EVS_WorldItem_PlayDrinkingSounds
 
EvtScript EVS_World_UseItem
 

Function Documentation

◆ MATCHING_BSS()

MATCHING_BSS ( 0x2700 )

Variable Documentation

◆ EVS_World_UseItem

EvtScript EVS_World_UseItem

◆ EVS_WorldItem_PlayDrinkingSounds

EvtScript EVS_WorldItem_PlayDrinkingSounds
Initial value:
= {
Loop(4)
Wait(10)
Call(SetPlayerAnimation, ANIM_Mario1_Drink)
Wait(45)
}
@ SOUND_EAT_OR_DRINK
Definition enums.h:1441
ApiStatus PlaySound(Evt *script, b32 isInitialCall)
ApiStatus SetPlayerAnimation(Evt *script, b32 isInitialCall)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:225
#define EndLoop
Marks the end of a loop.
Definition macros.h:260
#define Thread
Marks the start of a thread block.
Definition macros.h:556
#define EndThread
Marks the end of a thread block.
Definition macros.h:559
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:266
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:588
#define Loop(TIMES)
Marks the beginning of a loop.
Definition macros.h:257
#define Return
Kills the current EVT thread.
Definition macros.h:229

◆ EVS_WorldItem_PlayEatingSounds

EvtScript EVS_WorldItem_PlayEatingSounds
Initial value:

◆ EVS_WorldItem_ShowUsedItem

EvtScript EVS_WorldItem_ShowUsedItem
Initial value:
= {
Call(SetPlayerAnimation, ANIM_Mario1_UsePower)
Add(LVar1, 45)
Wait(15)
Add(LVar1, 20)
Call(WorldItem_ShowUseSparkles, LVar0, LVar1, LVar2)
}
@ EVT_GROUP_NEVER_PAUSE
Definition evt.h:142
ApiStatus RemoveItemEntity(Evt *script, b32 isInitialCall)
ApiStatus MakeItemEntity(Evt *script, b32 isInitialCall)
ApiStatus GetPlayerPos(Evt *script, b32 isInitialCall)
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:377
#define Add(VAR, INT_VALUE)
Definition macros.h:388
#define LVar2
Definition macros.h:146
#define LVar1
Definition macros.h:145
#define LVarA
Definition macros.h:154
#define SetGroup(GROUP)
Sets the current thread's group. Group value meanings are currently not known.
Definition macros.h:531
#define LVar0
Definition macros.h:144