Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
isk_06.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
3#include "effects.h"
4
5#define NAMESPACE A(isk_06)
6
7BSS EffectInstance* N(TorchFlame);
8
9API_CALLABLE(N(CreateTorchFX)) {
10 fx_flame(FX_FLAME_RED, -110.0f, 80.0f, -146.0f, 0.3f, &N(TorchFlame));
11 return ApiStatus_DONE2;
12}
13
14API_CALLABLE(N(DeleteTorchFX)) {
15 remove_effect(N(TorchFlame));
16 return ApiStatus_DONE2;
17}
18
19EvtScript N(EVS_PreBattle) = {
20 Call(SetSpriteShading, SHADING_NONE)
22 Call(N(CreateTorchFX))
23 Return
24 End
25};
26
27EvtScript N(EVS_PostBattle) = {
28 Call(N(DeleteTorchFX))
29 Return
30 End
31};
32
33Stage NAMESPACE = {
34 .texture = "isk_tex",
35 .shape = "isk_bt06_shape",
36 .hit = "isk_bt06_hit",
37 .preBattle = &N(EVS_PreBattle),
38 .postBattle = &N(EVS_PostBattle),
39};
Bytecode EvtScript[]
#define remove_effect
@ FX_FLAME_RED
Definition effects.h:481
@ CAM_BATTLE
Definition enums.h:1801
#define ApiStatus_DONE2
Definition evt.h:118
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
ApiStatus SetCamBGColor(Evt *script, b32 isInitialCall)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define BSS
Definition macros.h:7
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define Return
Kills the current EVT thread.
Definition macros.h:217