Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
kpa_04b.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(kpa_04b)
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)
33 Exec(N(EVS_TexAnim_Fire))
35 Exec(N(EVS_TexAnim_Fire))
37 Exec(N(EVS_TexAnim_Fire))
38 Return
39 End
40};
41
42EvtScript N(EVS_PostBattle) = {
43 Return
44 End
45};
46
47Stage NAMESPACE = {
48 .texture = "kpa_tex",
49 .shape = "kpa_bt04_shape",
50 .hit = "kpa_bt04_hit",
51 .preBattle = &N(EVS_PreBattle),
52 .postBattle = &N(EVS_PostBattle),
53};
#define MODEL_g2
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_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