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

Macros

#define NAMESPACE   world_goombario
 
#define USE_STATE   functionTemp[0]
 
#define VAR_MSG   varTable[0]
 
#define VAR_SKIP   varTable[1]
 

Functions

s32 N get_trigger_tattle (s32 tattleColliderID)
 
void N init (Npc *goombario)
 
void N try_cancel_tweester (Npc *goombario)
 
s32 N can_open_menus (Npc *goombario)
 
void N pre_battle (Npc *goombario)
 

Variables

SpeechBubbleDataSpeechBubblePtr
 
BSS s32 WorldTattleInteractionID
 
EvtScript EVS_WorldGoombario_TakeOut
 
EvtScript EVS_WorldGoombario_Update
 
EvtScript EVS_WorldGoombario_UseAbility
 
EvtScript EVS_WorldGoombario_PutAway
 

Macro Definition Documentation

◆ NAMESPACE

#define NAMESPACE   world_goombario

◆ USE_STATE

#define USE_STATE   functionTemp[0]

◆ VAR_MSG

#define VAR_MSG   varTable[0]

◆ VAR_SKIP

#define VAR_SKIP   varTable[1]

Function Documentation

◆ can_open_menus()

s32 N can_open_menus ( Npc * goombario)

◆ get_trigger_tattle()

s32 N get_trigger_tattle ( s32 tattleColliderID)

◆ init()

void N init ( Npc * goombario)

◆ pre_battle()

void N pre_battle ( Npc * goombario)

◆ try_cancel_tweester()

void N try_cancel_tweester ( Npc * goombario)

Variable Documentation

◆ EVS_WorldGoombario_PutAway

EvtScript EVS_WorldGoombario_PutAway
Initial value:
= {
Call(N(PutAway))
}
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:225
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:588
#define Return
Kills the current EVT thread.
Definition macros.h:229

◆ EVS_WorldGoombario_TakeOut

EvtScript EVS_WorldGoombario_TakeOut
Initial value:
= {
Call(N(TakeOut))
}

◆ EVS_WorldGoombario_Update

EvtScript EVS_WorldGoombario_Update
Initial value:
= {
Call(N(Update))
}

◆ EVS_WorldGoombario_UseAbility

EvtScript EVS_WorldGoombario_UseAbility
Initial value:
= {
Call(N(SelectTattleMsg))
IfEq(LVar0, -1)
IfEq(LVar0, MSG_NONE)
Call(N(TattleEnd))
IfEq(LVar1, FALSE)
Call(SpeakToPlayer, NPC_PARTNER, ANIM_WorldGoombario_Talk, ANIM_WorldGoombario_Idle, 0, LVar0)
Wait(1)
Call(N(TattleEnd))
}
@ NPC_PARTNER
Definition enums.h:2529
#define SpeakToPlayer(ARGS...)
Definition msg_api.h:6
#define EndIf
Marks the end of an if statement or an else block.
Definition macros.h:310
#define LVar1
Definition macros.h:145
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:266
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
Definition macros.h:281
#define LVar0
Definition macros.h:144

◆ SpeechBubblePtr

◆ WorldTattleInteractionID

BSS s32 WorldTattleInteractionID

Referenced by check_input_use_partner().