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

Macros

#define EVT_LETTER_PROMPT(npcName, npcID, animTalk, animIdle, msg1, msg2, ms3, msg4, itemID, itemList)
 
#define EVT_LETTER_REWARD(npcName)
 
#define EVT_LETTER_CHECK(npcName)
 

Enumerations

enum  DeliveryResult { DELIVERY_NOT_POSSIBLE = 0 , DELIVERY_REJECTED = 1 , DELIVERY_ACCEPTED = 2 }
 

Macro Definition Documentation

◆ EVT_LETTER_CHECK

#define EVT_LETTER_CHECK ( npcName)
Value:
ExecWait(N(EVS_LetterPrompt_##npcName)) \
ExecWait(N(EVS_LetterReward_##npcName))
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
Definition macros.h:487

◆ EVT_LETTER_PROMPT

#define EVT_LETTER_PROMPT ( npcName,
npcID,
animTalk,
animIdle,
msg1,
msg2,
ms3,
msg4,
itemID,
itemList )
Value:
EvtScript N(EVS_LetterPrompt_##npcName) = { \
Call(N(LetterDelivery_Init), \
npcID, animTalk, animIdle, \
itemID, ITEM_NONE, \
msg1, msg2, ms3, msg4, \
Ref(itemList)) \
ExecWait(N(EVS_DoLetterDelivery)) \
Return \
End \
}
Bytecode EvtScript[]
Definition common_structs.h:14
#define Ref(sym)
Address/pointer constant.
Definition macros.h:56

◆ EVT_LETTER_REWARD

#define EVT_LETTER_REWARD ( npcName)
Value:
EvtScript N(EVS_LetterReward_##npcName) = { \
EVT_GIVE_STAR_PIECE() \
EndIf \
Return \
End \
}
@ DELIVERY_ACCEPTED
Definition LetterDelivery.inc.c:10
#define LVarC
Definition macros.h:156

Enumeration Type Documentation

◆ DeliveryResult

Enumerator
DELIVERY_NOT_POSSIBLE 
DELIVERY_REJECTED 
DELIVERY_ACCEPTED