Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
omo_06.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(omo_06)
5
6EvtScript N(EVS_UpdateMovingPlatforms) = {
7 Set(LVarA, LVar0) // modelID
10 Label(0)
12 Loop(0)
15 Wait(1)
16 IfEq(LVar1, 0)
18 EndIf
21 Loop(0)
24 Wait(1)
25 IfEq(LVar1, 0)
27 EndIf
29 Goto(0)
30 Return
31 End
32};
33
34EvtScript N(EVS_PreBattle) = {
35 Call(SetSpriteShading, SHADING_NONE)
37 Thread
39 Set(LVar1, -50)
40 Set(LVar2, 120)
41 Exec(N(EVS_UpdateMovingPlatforms))
42 Wait(10)
44 Set(LVar1, -80)
45 Set(LVar2, 150)
46 Exec(N(EVS_UpdateMovingPlatforms))
48 Return
49 End
50};
51
52EvtScript N(EVS_PostBattle) = {
53 Return
54 End
55};
56
57s32 N(ForegroundModels)[] = {
61};
62
63Stage NAMESPACE = {
64 .texture = "omo_tex",
65 .shape = "omo_bt06_shape",
66 .hit = "omo_bt06_hit",
67 .bg = "omo_bg",
68 .preBattle = &N(EVS_PreBattle),
69 .postBattle = &N(EVS_PostBattle),
70 .foregroundModelList = N(ForegroundModels),
71};
Bytecode EvtScript[]
@ EASING_COS_IN_OUT
Definition enums.h:520
@ CAM_BATTLE
Definition enums.h:1801
#define MODEL_hosi
#define MODEL_kuruma
#define MODEL_ere1
#define MODEL_ere2
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
ApiStatus UpdateLerp(Evt *script, b32 isInitialCall)
ApiStatus SetCamBGColor(Evt *script, b32 isInitialCall)
ApiStatus TranslateGroup(Evt *script, b32 isInitialCall)
Translates the given group's position.
ApiStatus MakeLerp(Evt *script, b32 isInitialCall)
#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 EndLoop
Marks the end of a loop.
Definition macros.h:248
#define Goto(LABEL_ID)
Moves execution to the given label.
Definition macros.h:232
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
Definition macros.h:227
#define EndIf
Marks the end of an if statement or an else block.
Definition macros.h:298
#define BreakLoop
Breaks out of the innermost loop.
Definition macros.h:251
#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 LVar8
Definition macros.h:156
#define LVar2
Definition macros.h:150
#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 LVar9
Definition macros.h:157
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
Definition macros.h:269
#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