3#include "sprite/player.h"
5#define NAMESPACE battle_move_hammer_charge_1
13API_CALLABLE(func_802A10C8_759678) {
21 fx_stat_change(1, var1, var2, var3, 1.0f, 60);
36 battleStatus->
flags1 &= ~BS_FLAGS1_JUMP_CHARGED;
43API_CALLABLE(func_802A12FC_7598AC) {
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)
232 Call(func_802A12FC_7598AC)
233 Call(ShowVariableMessageBox,
LVar0, 60, 2)
264 Call(MoveBattleCamOver, 5)
265 Call(N(IsHammerMaxCharged))
277 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_MarioB3_Hammer2_Charged, ANIM_MarioB3_Hammer2_Charged, ANIM_MarioB3_Hammer2_Charged)
279 Call(PlayerHopToGoal, 20, 0, 0)
284 Call(func_802A12FC_7598AC)
285 Call(ShowVariableMessageBox,
LVar0, 60, 2)
316 Call(MoveBattleCamOver, 5)
317 Call(N(IsHammerMaxCharged))
329 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_MarioB3_Hammer3_Charged, ANIM_MarioB3_Hammer3_Charged, ANIM_MarioB3_Hammer3_Charged)
331 Call(PlayerHopToGoal, 20, 0, 0)
336 Call(func_802A12FC_7598AC)
337 Call(ShowVariableMessageBox,
LVar0, 60, 2)
@ 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