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

Go to the source code of this file.

Functions

void N init (Npc *twink)
 

Variables

EvtScript EVS_WorldTwink_TakeOut
 
EvtScript EVS_WorldTwink_Update
 
EvtScript EVS_WorldTwink_UseAbility
 
EvtScript EVS_WorldTwink_PutAway
 

Function Documentation

◆ init()

void N init ( Npc * twink)

Definition at line 7 of file twink.c.

7 {
8 twink->collisionHeight = 20;
9 twink->collisionDiameter = 20;
10}
s16 collisionDiameter
s16 collisionHeight

Variable Documentation

◆ EVS_WorldTwink_TakeOut

EvtScript EVS_WorldTwink_TakeOut
Initial value:
= {
Call(N(TakeOut))
}
#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

Definition at line 59 of file twink.c.

59 {
60 Call(N(TakeOut))
61 Return
62 End
63};

◆ EVS_WorldTwink_Update

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

Definition at line 65 of file twink.c.

65 {
66 Call(N(Update))
67 Return
68 End
69};

◆ EVS_WorldTwink_UseAbility

EvtScript EVS_WorldTwink_UseAbility
Initial value:
= {
Call(N(UseAbility))
}

Definition at line 71 of file twink.c.

71 {
72 Call(N(UseAbility))
73 Return
74 End
75};

◆ EVS_WorldTwink_PutAway

EvtScript EVS_WorldTwink_PutAway
Initial value:
= {
Call(N(PutAway))
}

Definition at line 77 of file twink.c.

77 {
78 Call(N(PutAway))
79 Return
80 End
81};