Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
sam_02b.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_02b)
6
8
9EvtScript N(EVS_PreBattle) = {
10 Call(SetSpriteShading, SHADING_NONE)
13 Exec(N(EVS_SpawnSnowfall))
14 Return
15 End
16};
17
18EvtScript N(EVS_PostBattle) = {
19 Return
20 End
21};
22
23s32 N(ForegroundModels)[] = {
24 -1,
27};
28
29Stage NAMESPACE = {
30 .texture = "sam_tex",
31 .shape = "sam_bt02_shape",
32 .hit = "sam_bt02_hit",
33 .bg = "yki_bg",
34 .preBattle = &N(EVS_PreBattle),
35 .postBattle = &N(EVS_PostBattle),
36 .foregroundModelList = N(ForegroundModels),
37};
Bytecode EvtScript[]
@ MODEL_GROUP_HIDDEN
Definition enums.h:4376
#define MODEL_p1
#define MODEL_yuki
#define MODEL_kouri1
ApiStatus SetGroupVisibility(Evt *script, b32 isInitialCall)
Enables or disables the given group.
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
#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 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