Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
sam_02.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
2#include "script_api/battle.h"
4
5#define NAMESPACE A(sam_02)
6
8
9EvtScript N(EVS_PreBattle) = {
10 Call(SetSpriteShading, SHADING_NONE)
13 Thread
15 Set(LVar1, 0)
16 Exec(N(EVS_AnimateHangingSnowflake_RandomSpin))
17 Wait(5)
19 Set(LVar1, 0)
20 Exec(N(EVS_AnimateHangingSnowflake_RandomSpin))
21 Wait(5)
23 Set(LVar1, 0)
24 Exec(N(EVS_AnimateHangingSnowflake_RandomSpin))
25 Wait(5)
27 Set(LVar1, 0)
28 Exec(N(EVS_AnimateHangingSnowflake_RandomSpin))
30 Exec(N(EVS_SpawnSnowfall))
31 Return
32 End
33};
34
35EvtScript N(EVS_PostBattle) = {
36 Return
37 End
38};
39
40s32 N(ForegroundModels)[] = {
41 -1,
44};
45
46Stage NAMESPACE = {
47 .texture = "sam_tex",
48 .shape = "sam_bt02_shape",
49 .hit = "sam_bt02_hit",
50 .bg = "yki_bg",
51 .preBattle = &N(EVS_PreBattle),
52 .postBattle = &N(EVS_PostBattle),
53 .foregroundModelList = N(ForegroundModels),
54};
Bytecode EvtScript[]
#define MODEL_o285
#define MODEL_o284
#define MODEL_o283
@ MODEL_GROUP_HIDDEN
Definition enums.h:4376
#define MODEL_o253
#define MODEL_p3
#define MODEL_p2
#define MODEL_kouri1
ApiStatus SetGroupVisibility(Evt *script, b32 isInitialCall)
Enables or disables the given group.
ApiStatus SetSpriteShading(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 End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Thread
Marks the start of a thread block.
Definition macros.h:544
#define EndThread
Marks the end of a thread block.
Definition macros.h:547
#define LVar1
Definition macros.h:149
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:254
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define LVar0
Definition macros.h:148
#define Exec(EVT_SOURCE)
Launches a new thread.
Definition macros.h:455
#define Return
Kills the current EVT thread.
Definition macros.h:217
#define STAGE_MODEL_LIST_END
Definition battle.h:8