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

Go to the source code of this file.

Variables

EvtScript EVS_800936C0
 
EvtScript EVS_NpcHitRecoil
 
EvtScript D_800939A4
 
EvtScript D_800939B4
 

Variable Documentation

◆ EVS_800936C0

EvtScript EVS_800936C0
Initial value:
= {
Call(func_8005DB00)
}
#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 7 of file 38F00.c.

7 {
8 Call(func_8005DB00)
10 End
11};

◆ EVS_NpcHitRecoil

EvtScript EVS_NpcHitRecoil

Definition at line 13 of file 38F00.c.

13 {
17 Add(LVar1, 1)
19 Wait(1)
21 Add(LVar1, 4)
23 Wait(1)
25 Add(LVar1, 16)
27 Wait(1)
29 Add(LVar1, 8)
31 Wait(1)
33 Add(LVar1, 20)
35 Wait(1)
37 Add(LVar1, 8)
39 Wait(1)
41 Add(LVar1, 12)
43 Wait(1)
45 Add(LVar1, 6)
47 Wait(1)
49 Add(LVar1, 0)
51 Wait(1)
52 Return
53 End
54};
@ NPC_SELF
Definition enums.h:2526
ApiStatus GetNpcPos(Evt *script, b32 isInitialCall)
ApiStatus SetNpcAnimation(Evt *script, b32 isInitialCall)
ApiStatus SetNpcPos(Evt *script, b32 isInitialCall)
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365
#define Add(VAR, INT_VALUE)
Definition macros.h:376
#define LVar2
Definition macros.h:150
#define LVar1
Definition macros.h:149
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:254
#define LVar3
Definition macros.h:151
#define LVar0
Definition macros.h:148

◆ D_800939A4

EvtScript D_800939A4
Initial value:
= {
}

Definition at line 56 of file 38F00.c.

56 {
57 Return
58 End
59};

◆ D_800939B4

EvtScript D_800939B4
Initial value:
= {
IfEq(LVar0, 0)
Set(LVar0, 0)
Loop(30)
Call(func_8005DD54)
Add(LVar0, 30)
Wait(1)
Call(func_8005DDF0)
}
EvtScript D_800939A4
Definition 38F00.c:56
@ IMGFX_SET_COLOR
Definition enums.h:5123
@ NPC_FLAG_FLYING
Definition enums.h:3001
@ NPC_FLAG_JUMPING
Definition enums.h:3009
@ NPC_FLAG_GRAVITY
Definition enums.h:3007
@ NPC_FLAG_IGNORE_CAMERA_FOR_YAW
Definition enums.h:3016
ApiStatus SetNpcImgFXParams(Evt *script, b32 isInitialCall)
ApiStatus BindNpcAI(Evt *script, b32 isInitialCall)
ApiStatus SetNpcRotation(Evt *script, b32 isInitialCall)
ApiStatus SetSelfVar(Evt *script, b32 isInitialCall)
ApiStatus SetNpcFlagBits(Evt *script, b32 isInitialCall)
ApiStatus GetSelfVar(Evt *script, b32 isInitialCall)
#define Ref(sym)
Address/pointer constant.
Definition macros.h:60
#define EndLoop
Marks the end of a loop.
Definition macros.h:248
#define EndIf
Marks the end of an if statement or an else block.
Definition macros.h:298
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
Definition macros.h:269
#define Loop(TIMES)
Marks the beginning of a loop.
Definition macros.h:245

Definition at line 61 of file 38F00.c.