3#include "sprite/player.h"
5#define NAMESPACE battle_move_hammer_charge_2
13API_CALLABLE(func_802A10C8_75E698) {
21 fx_stat_change(2, var1, var2, var3, 1.0f, 60);
36 battleStatus->
flags1 &= ~BS_FLAGS1_JUMP_CHARGED;
43API_CALLABLE(func_802A12FC_75E8CC) {
45 script->varTable[0] = 4;
47 script->varTable[0] = 5;
133 ExecWait(N(EVS_HammerSupport_ReturnHome_Miss))
167 ExecWait(N(EVS_HammerSupport_ReturnHome_Success))
171 ExecWait(N(EVS_HammerSupport_ReturnHome_Miss))
212 Call(MoveBattleCamOver, 5)
213 Call(N(IsHammerMaxCharged))
225 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_MarioB3_Hammer1_Charged, ANIM_MarioB3_Hammer1_Charged, ANIM_MarioB3_Hammer1_Charged)
227 Call(PlayerHopToGoal, 20, 0, 0)
231 Call(func_802A12FC_75E8CC)
232 Call(ShowVariableMessageBox,
LVar0, 60, 3)
262 Call(MoveBattleCamOver, 5)
263 Call(N(IsHammerMaxCharged))
275 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_MarioB3_Hammer2_Charged, ANIM_MarioB3_Hammer2_Charged, ANIM_MarioB3_Hammer2_Charged)
277 Call(PlayerHopToGoal, 20, 0, 0)
281 Call(func_802A12FC_75E8CC)
282 Call(ShowVariableMessageBox,
LVar0, 60, 3)
312 Call(MoveBattleCamOver, 5)
313 Call(N(IsHammerMaxCharged))
325 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_MarioB3_Hammer3_Charged, ANIM_MarioB3_Hammer3_Charged, ANIM_MarioB3_Hammer3_Charged)
327 Call(PlayerHopToGoal, 20, 0, 0)
331 Call(func_802A12FC_75E8CC)
332 Call(ShowVariableMessageBox,
LVar0, 60, 3)
@ BS_FLAGS1_TRIGGER_EVENTS
@ BS_FLAGS1_HAMMER_CHARGED
@ BS_FLAGS1_INCLUDE_POWER_UPS
@ HIT_RESULT_NICE_NO_DAMAGE
@ BTL_CAM_PLAYER_HAMMER_STRIKE
@ BTL_CAM_PLAYER_CHARGE_UP
#define SUPPRESS_EVENTS_HAMMER
@ BTL_RUMBLE_PLAYER_HEAVY
@ BTL_RUMBLE_PLAYER_LIGHT
s32 evt_get_variable(Evt *script, Bytecode var)
ApiStatus ShakeCam(Evt *script, b32 isInitialCall)
#define Else
Marks the end of an if statement and the start of the else block.
#define Switch(LVAR)
Marks the start of a switch statement.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define CaseEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR. It also marks the end of any pre...
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Add(VAR, INT_VALUE)
#define EndCaseGroup
Marks the end of a switch case group (CaseOrEq and/or CaseAndEq), stopping fallthrough.
#define Goto(LABEL_ID)
Moves execution to the given label.
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
#define CaseOrEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR.
#define EndIf
Marks the end of an if statement or an else block.
#define CaseDefault
Marks the start of a switch case that executes unconditionally. It also marks the end of any previous...
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#define Thread
Marks the start of a thread block.
#define EndThread
Marks the end of a thread block.
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
#define EndSwitch
Marks the end of a switch statement and any case.
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define CaseGt(RVAR)
Marks the start of a switch case that executes only if LVAR <= RVAR. It also marks the end of any pre...
#define Return
Kills the current EVT thread.
BattleStatus gBattleStatus