Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
GiveReward.inc.c File Reference

Go to the source code of this file.

Macros

#define _COMMON_GIVE_REWARD_H_
 
#define EVT_GIVE_REWARD(itemID)
 
#define EVT_GIVE_STAR_PIECE()
 

Macro Definition Documentation

◆ _COMMON_GIVE_REWARD_H_

#define _COMMON_GIVE_REWARD_H_

Definition at line 2 of file GiveReward.inc.c.

◆ EVT_GIVE_REWARD

#define EVT_GIVE_REWARD ( itemID)
Value:
Set(LVar0, itemID) \
ExecWait(N(GiveItemReward)) \
Call(AddItem, itemID, LVar1)
ApiStatus AddItem(Evt *script, b32 isInitialCall)
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365
#define LVar1
Definition macros.h:149
#define LVar0
Definition macros.h:148

Definition at line 18 of file GiveReward.inc.c.

18#define EVT_GIVE_REWARD(itemID) \
19 Set(LVar0, itemID) \
20 ExecWait(N(GiveItemReward)) \
21 Call(AddItem, itemID, LVar1)

◆ EVT_GIVE_STAR_PIECE

#define EVT_GIVE_STAR_PIECE ( )
Value:
Set(LVar0, ITEM_STAR_PIECE) \
ExecWait(N(GiveItemReward)) \
Call(AddStarPieces, 1)
ApiStatus AddStarPieces(Evt *script, b32 isInitialCall)

Definition at line 23 of file GiveReward.inc.c.

23#define EVT_GIVE_STAR_PIECE() \
24 Set(LVar0, ITEM_STAR_PIECE) \
25 ExecWait(N(GiveItemReward)) \
26 Call(AddStarPieces, 1)