Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
kmr_06.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3
4#define NAMESPACE A(kmr_06)
5
7
8API_CALLABLE(N(SetupFog)) {
9 set_world_fog_dist(980, 1000);
10 set_world_fog_color(15, 5, 55, 255);
12 return ApiStatus_DONE2;
13}
14
15EvtScript N(EVS_PreBattle) = {
16 Call(SetSpriteShading, SHADING_NONE)
17 Call(N(SetupFog))
19 Set(LVar2, 0)
20 Exec(N(EVS_AnimateCloud))
22 Set(LVar2, 70)
23 Exec(N(EVS_AnimateCloud))
24 Return
25 End
26};
27
28EvtScript N(EVS_PostBattle) = {
29 Return
30 End
31};
32
33s32 N(ForegroundModels)[] = {
38};
39
40Stage NAMESPACE = {
41 .texture = "kmr_tex",
42 .shape = "kmr_bt06_shape",
43 .hit = "kmr_bt06_hit",
44 .bg = "kmr_bg",
45 .preBattle = &N(EVS_PreBattle),
46 .postBattle = &N(EVS_PostBattle),
47 .foregroundModelList = N(ForegroundModels),
48};
Bytecode EvtScript[]
#define MODEL_g59
#define MODEL_g60
#define ApiStatus_DONE2
Definition evt.h:118
#define MODEL_o303
void set_world_fog_color(s32 r, s32 g, s32 b, s32 a)
Definition model.c:3789
void enable_world_fog(void)
Definition model.c:3776
void set_world_fog_dist(s32 start, s32 end)
Definition model.c:3784
#define MODEL_ha3
#define MODEL_n2
ApiStatus SetSpriteShading(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 LVar2
Definition macros.h:150
#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 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