Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
goombario.h File Reference

Go to the source code of this file.

Functions

void world_goombario_init (Npc *partner)
 
s32 world_goombario_can_open_menus (Npc *partner)
 
void world_goombario_pre_battle (Npc *partner)
 

Variables

EvtScript EVS_WorldGoombario_TakeOut
 
EvtScript EVS_WorldGoombario_Update
 
EvtScript EVS_WorldGoombario_UseAbility
 
EvtScript EVS_WorldGoombario_PutAway
 

Function Documentation

◆ world_goombario_init()

void world_goombario_init ( Npc * partner)

◆ world_goombario_can_open_menus()

s32 world_goombario_can_open_menus ( Npc * partner)

◆ world_goombario_pre_battle()

void world_goombario_pre_battle ( Npc * partner)

Variable Documentation

◆ EVS_WorldGoombario_TakeOut

EvtScript EVS_WorldGoombario_TakeOut
extern

Definition at line 98 of file goombario.c.

98 {
99 Call(N(TakeOut))
100 Return
101 End
102};
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define Return
Kills the current EVT thread.
Definition macros.h:217

◆ EVS_WorldGoombario_Update

EvtScript EVS_WorldGoombario_Update
extern

Definition at line 198 of file goombario.c.

198 {
199 Call(N(Update))
200 Return
201 End
202};

◆ EVS_WorldGoombario_UseAbility

EvtScript EVS_WorldGoombario_UseAbility
extern

Definition at line 457 of file goombario.c.

457 {
458 Call(N(SelectTattleMsg))
459 // abort without cleanup if failed to init
460 IfEq(LVar0, -1)
461 Return
462 EndIf
463 // abort if no tattle message is available
464 IfEq(LVar0, MSG_NONE)
465 Call(N(TattleEnd))
466 Return
467 EndIf
468 // show message if VAR_SKIP is FALSE
469 IfEq(LVar1, FALSE)
470 Call(SpeakToPlayer, NPC_PARTNER, ANIM_WorldGoombario_Talk, ANIM_WorldGoombario_Idle, 0, LVar0)
471 EndIf
472 Wait(1)
473 // cleanup
474 Call(N(TattleEnd))
475 Return
476 End
477};
@ NPC_PARTNER
Definition enums.h:2528
#define SpeakToPlayer(ARGS...)
Definition msg_api.h:6
#define EndIf
Marks the end of an if statement or an else block.
Definition macros.h:298
#define LVar1
Definition macros.h:149
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:254
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
Definition macros.h:269
#define LVar0
Definition macros.h:148

◆ EVS_WorldGoombario_PutAway

EvtScript EVS_WorldGoombario_PutAway
extern

Definition at line 493 of file goombario.c.

493 {
494 Call(N(PutAway))
495 Return
496 End
497};