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

Go to the source code of this file.

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_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[]
#define Ref(sym)
Address/pointer constant.
Definition macros.h:60

Definition at line 187 of file LetterDelivery.inc.c.

187#define EVT_LETTER_PROMPT(npcName, npcID, animTalk, animIdle, msg1, msg2, ms3, msg4, itemID, itemList) \
188 EvtScript N(EVS_LetterPrompt_##npcName) = { \
189 Call(N(LetterDelivery_Init), \
190 npcID, animTalk, animIdle, \
191 itemID, ITEM_NONE, \
192 msg1, msg2, ms3, msg4, \
193 Ref(itemList)) \
194 ExecWait(N(EVS_DoLetterDelivery)) \
195 Return \
196 End \
197 }

◆ EVT_LETTER_REWARD

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

Definition at line 199 of file LetterDelivery.inc.c.

199#define EVT_LETTER_REWARD(npcName) \
200 EvtScript N(EVS_LetterReward_##npcName) = { \
201 IfEq(LVarC, DELIVERY_ACCEPTED) \
202 EVT_GIVE_STAR_PIECE() \
203 EndIf \
204 Return \
205 End \
206 }

◆ 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:475

Definition at line 208 of file LetterDelivery.inc.c.

208#define EVT_LETTER_CHECK(npcName) \
209 ExecWait(N(EVS_LetterPrompt_##npcName)) \
210 ExecWait(N(EVS_LetterReward_##npcName))

Enumeration Type Documentation

◆ DeliveryResult

Enumerator
DELIVERY_NOT_POSSIBLE 
DELIVERY_REJECTED 
DELIVERY_ACCEPTED 

Definition at line 7 of file LetterDelivery.inc.c.

7 {
11};
@ DELIVERY_NOT_POSSIBLE
@ DELIVERY_REJECTED