Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
UnkEffect6FFunc.inc.c
Go to the documentation of this file.
1#include "battle/battle.h"
2#include "effects.h"
3
4API_CALLABLE(N(UnkEffect6FFunc)) {
5 Bytecode* args = script->ptrReadPos;
6 EffectInstance* effect;
7 s32 unusedType = evt_get_variable(script, *args++);
8 s32 posX = evt_get_variable(script, *args++);
9 s32 posY = evt_get_variable(script, *args++);
10 s32 posZ = evt_get_variable(script, *args++);
11 f32 scale = evt_get_float_variable(script, *args++);
12 s32 duration = evt_get_variable(script, *args++);
13 s32 r = evt_get_variable(script, *args++);
14 s32 g = evt_get_variable(script, *args++);
15 s32 b = evt_get_variable(script, *args++);
16
17 effect = fx_cold_breath(1, posX, posY, posZ, scale, duration);
18 effect->data.coldBreath->primCol.r = r;
19 effect->data.coldBreath->primCol.g = g;
20 effect->data.coldBreath->primCol.b = b;
21 effect->data.coldBreath->envCol.r = 255;
22 effect->data.coldBreath->envCol.g = 255;
23 effect->data.coldBreath->envCol.b = 255;
24
25 return ApiStatus_DONE2;
26}
struct ColdBreathFXData * coldBreath
Definition effects.h:2575
Color4i primCol
Definition effects.h:1990
EffectData data
Definition effects.h:2605
#define ApiStatus_DONE2
Definition evt.h:118
s32 Bytecode
Definition evt.h:7
s32 evt_get_variable(Evt *script, Bytecode var)
Definition evt.c:1690
f32 evt_get_float_variable(Evt *script, Bytecode var)
Definition evt.c:1930