Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
kpa_04.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(kpa_04)
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)
34 Exec(N(EVS_TexAnim_Fire))
36 Exec(N(EVS_TexAnim_Fire))
38 Exec(N(EVS_TexAnim_Fire))
39 Return
40 End
41};
42
43EvtScript N(EVS_PostBattle) = {
44 Return
45 End
46};
47
48Stage NAMESPACE = {
49 .texture = "kpa_tex",
50 .shape = "kpa_bt04_shape",
51 .hit = "kpa_bt04_hit",
52 .preBattle = &N(EVS_PreBattle),
53 .postBattle = &N(EVS_PostBattle),
54};
#define MODEL_g4
Bytecode EvtScript[]
#define MODEL_o450
#define MODEL_o451
#define MODEL_o454
Definition dgb_01_shape.h:7
@ 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_g3
#define MODEL_hi2
Definition kpa_08_shape.h:9
#define MODEL_hi4
Definition kpa_08_shape.h:7
#define MODEL_kusari
#define MODEL_hi3
Definition kpa_08_shape.h:8
#define MODEL_wa
#define MODEL_hi1
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