Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
arn_02.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(arn_02)
5
6EvtScript N(EVS_RotateWindmill) = {
8 Set(LVar0, 0)
9 Label(0)
10 Add(LVar0, 1)
11 IfGt(LVar0, 359)
12 Sub(LVar0, 360)
13 EndIf
14 Call(RotateModel, LVarA, LVar0, 0, 0, 1)
15 Wait(1)
16 Goto(0)
17 Return
18 End
19};
20
21EvtScript N(EVS_PreBattle) = {
22 Call(SetSpriteShading, SHADING_NONE)
24 ExecWait(N(EVS_RotateWindmill))
25 Return
26 End
27};
28
29EvtScript N(EVS_PostBattle) = {
30 Return
31 End
32};
33
34s32 N(ForegroundModels)[] = {
35 -1,
38};
39
40Stage NAMESPACE = {
41 .texture = "arn_tex",
42 .shape = "arn_bt02_shape",
43 .hit = "arn_bt02_hit",
44 .bg = "arn_bg",
45 .preBattle = &N(EVS_PreBattle),
46 .postBattle = &N(EVS_PostBattle),
47 .foregroundModelList = N(ForegroundModels),
48};
#define MODEL_iwa4
#define MODEL_o332
Bytecode EvtScript[]
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
ApiStatus RotateModel(Evt *script, b32 isInitialCall)
Rotates the model the given amount on the selected axis.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
Definition macros.h:365
#define Sub(VAR, INT_VALUE)
Definition macros.h:377
#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 Goto(LABEL_ID)
Moves execution to the given label.
Definition macros.h:232
#define IfGt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR <= RVAR.
Definition macros.h:278
#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 ExecWait(EVT_SOURCE)
Launches a new child thread.
Definition macros.h:475
#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 LVar0
Definition macros.h:148
#define Return
Kills the current EVT thread.
Definition macros.h:217
#define STAGE_MODEL_LIST_END
Definition battle.h:8