Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
repel_gel.c
Go to the documentation of this file.
1#include "common.h"
2#include "script_api/battle.h"
3#include "effects.h"
4#include "sprite/player.h"
5
6#define NAMESPACE battle_item_repel_gel
7
9
10API_CALLABLE(N(func_802A123C_72DDAC)) {
12 Actor* player = battleStatus->playerActor;
13 ActorPart* part = player->partsTable;
14
15 inflict_status(player, STATUS_KEY_TRANSPARENT, script->varTable[0]);
16 player->statusAfflicted = 0;
18
19 return ApiStatus_DONE2;
20}
21
23
29 Wait(45)
32 Add(LVar1, 20)
37 Wait(20)
41 Return
42 End
43};
44
BSS s32 PopupMenu_SelectedIndex
struct ActorPart * partsTable
Bytecode EvtScript[]
s8 statusAfflicted
@ BTL_MSG_PLAYER_TRANSPARENT
Definition enums.h:3717
@ STATUS_KEY_TRANSPARENT
Definition enums.h:2815
@ SOUND_REPEL_GEL_VANISH
Definition enums.h:1193
@ SOUND_REPEL_GEL_APPLY
Definition enums.h:1192
@ ACTOR_PLAYER
Definition enums.h:2118
@ ACTOR_PART_FLAG_TRANSPARENT
Definition enums.h:3391
#define ApiStatus_DONE2
Definition evt.h:119
s32 inflict_status(Actor *, s32, s32)
Definition 190B20.c:1816
ApiStatus GetItemPower(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:214
#define Add(VAR, INT_VALUE)
Definition macros.h:377
#define Float(DOUBLE)
Definition macros.h:52
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
Definition macros.h:476
#define LVar2
Definition macros.h:151
#define LVar1
Definition macros.h:150
#define LVarA
Definition macros.h:159
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:255
#define PlayEffect(args...)
Definition macros.h:811
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:577
#define LVar0
Definition macros.h:149
#define SetConst(VAR, CONST)
Sets the given variable to a given value, skipping the evt_get_variable call.
Definition macros.h:371
#define Return
Kills the current EVT thread.
Definition macros.h:218
BattleStatus gBattleStatus
Definition battle.cpp:14