Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
kpa_01b.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(kpa_01b)
5
6// blue torches
7EvtScript N(EVS_TexAnim_Fire) = {
10 Set(LVar0, 0)
11 Set(LVar1, 0)
12 Loop(0)
14 Add(LVar0, 0x8000)
15 Add(LVar1, 0)
16 Wait(5)
18 Return
19 End
20};
21
22EvtScript N(EVS_PreBattle) = {
23 Call(SetSpriteShading, SHADING_NONE)
27 Exec(N(EVS_TexAnim_Fire))
29 Exec(N(EVS_TexAnim_Fire))
30 Return
31 End
32};
33
34EvtScript N(EVS_PostBattle) = {
35 Return
36 End
37};
38
39s32 N(ForegroundModels)[] = {
44};
45
46Stage NAMESPACE = {
47 .texture = "kpa_tex",
48 .shape = "kpa_bt01_shape",
49 .hit = "kpa_bt01_hit",
50 .preBattle = &N(EVS_PreBattle),
51 .postBattle = &N(EVS_PostBattle),
52 .foregroundModelList = N(ForegroundModels),
53};
#define MODEL_o381
#define MODEL_o383
#define MODEL_o382
Bytecode EvtScript[]
#define MODEL_o418
#define MODEL_o416
@ TEX_PANNER_MAIN
Definition enums.h:4415
@ TEX_PANNER_1
Definition enums.h:4399
@ MODEL_GROUP_HIDDEN
Definition enums.h:4376
@ CAM_BATTLE
Definition enums.h:1801
#define MODEL_hasira
ApiStatus SetGroupVisibility(Evt *script, b32 isInitialCall)
Enables or disables the given group.
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
ApiStatus SetTexPanOffset(Evt *script, b32 isInitialCall)
Sets offsets for texture panners.
ApiStatus SetCamBGColor(Evt *script, b32 isInitialCall)
ApiStatus SetTexPanner(Evt *script, b32 isInitialCall)
Sets a model's pannerID and sets the texture pan flag.
#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 Add(VAR, INT_VALUE)
Definition macros.h:376
#define EndLoop
Marks the end of a loop.
Definition macros.h:248
#define LVar1
Definition macros.h:149
#define LVarA
Definition macros.h:158
#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 Loop(TIMES)
Marks the beginning of a loop.
Definition macros.h:245
#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