Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
kpa_13.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(kpa_13)
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)
25 Return
26 End
27};
28
29EvtScript N(EVS_PostBattle) = {
30 Return
31 End
32};
33
34Stage NAMESPACE = {
35 .texture = "kpa_tex",
36 .shape = "kpa_bt13_shape",
37 .hit = "kpa_bt13_hit",
38 .preBattle = &N(EVS_PreBattle),
39 .postBattle = &N(EVS_PostBattle),
40};
Bytecode EvtScript[]
@ TEX_PANNER_MAIN
Definition enums.h:4415
@ TEX_PANNER_1
Definition enums.h:4399
@ CAM_BATTLE
Definition enums.h:1801
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 Return
Kills the current EVT thread.
Definition macros.h:217