Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
kpa_01.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(kpa_01)
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)
26 Thread
28 Exec(N(EVS_TexAnim_Fire))
29 Wait(5)
31 Exec(N(EVS_TexAnim_Fire))
33 Return
34 End
35};
36
37EvtScript N(EVS_PostBattle) = {
38 Return
39 End
40};
41
42s32 N(ForegroundModels)[] = {
47};
48
49Stage NAMESPACE = {
50 .texture = "kpa_tex",
51 .shape = "kpa_bt01_shape",
52 .hit = "kpa_bt01_hit",
53 .preBattle = &N(EVS_PreBattle),
54 .postBattle = &N(EVS_PostBattle),
55 .foregroundModelList = N(ForegroundModels),
56};
#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_switch
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 Thread
Marks the start of a thread block.
Definition macros.h:544
#define EndThread
Marks the end of a thread block.
Definition macros.h:547
#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