4#include "sprite/player.h"
6#define NAMESPACE battle_move_jump_attack
10API_CALLABLE(N(GetJumpDamage)) {
11 script->varTable[15] = 1;
15 script->varTable[15] = 1;
18 script->varTable[15] = 2;
21 script->varTable[15] = 3;
34 Call(ShowActionHud, TRUE)
54 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
88 ExecWait(N(EVS_JumpSupport_NoFollowUp))
103 Call(CloseActionCommandInfo)
105 Call(action_command_jump_init)
106 Call(ShowActionHud, FALSE)
107 Call(action_command_jump_start, 24, 3)
109 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_Mario1_SpinFall)
115 ExecWait(N(EVS_JumpSupport_Rebound))
121 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
140 ExecWait(N(EVS_JumpSupport_NoFollowUp))
154 Call(CloseActionCommandInfo)
156 Call(action_command_jump_init)
157 Call(ShowActionHud, FALSE)
158 Call(action_command_jump_start, 37, 3)
161 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Sit, ANIM_Mario1_SpinJump)
170 ExecWait(N(EVS_JumpSupport_Rebound))
176 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
195 ExecWait(N(EVS_JumpSupport_NoFollowUp))
209 Call(CloseActionCommandInfo)
211 Call(action_command_jump_init)
212 Call(ShowActionHud, FALSE)
213 Call(action_command_jump_start, 25, 3)
216 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Jump, ANIM_Mario1_SpinFall)
223 ExecWait(N(EVS_JumpSupport_Rebound))
228extern
EvtScript N(EVS_FirstStrike_Normal);
229extern
EvtScript N(EVS_FirstStrike_Super);
230extern
EvtScript N(EVS_FirstStrike_Ultra);
233 Call(ShowActionHud, TRUE)
266 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_MarioB1_Stomp)
268 Call(N(GetJumpDamage))
271 ExecWait(N(EVS_JumpSupport_Rebound))
283 ExecWait(N(EVS_JumpSupport_CalcJumpTime_Alt1))
286 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Sit, ANIM_Mario1_SpinJump)
294 ExecWait(N(EVS_JumpSupport_Rebound))
306 ExecWait(N(EVS_JumpSupport_CalcJumpTime_Alt2))
309 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Jump, ANIM_MarioB1_Stomp)
315 ExecWait(N(EVS_JumpSupport_Rebound))
320extern
EvtScript N(EVS_UseBerserker_Normal);
321extern
EvtScript N(EVS_UseBerserker_Super);
322extern
EvtScript N(EVS_UseBerserker_Ultra);
325 Call(ShowActionHud, TRUE)
329 ExecWait(N(EVS_UseBerserker_Normal))
340 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
359 ExecWait(N(EVS_JumpSupport_NoFollowUp))
373 Call(CloseActionCommandInfo)
375 Call(action_command_jump_init)
376 Call(ShowActionHud, FALSE)
377 Call(action_command_jump_start, 24, 3)
379 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_Mario1_SpinFall)
385 ExecWait(N(EVS_JumpSupport_Rebound))
391 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
410 ExecWait(N(EVS_JumpSupport_NoFollowUp))
424 Call(CloseActionCommandInfo)
426 Call(action_command_jump_init)
427 Call(ShowActionHud, FALSE)
428 Call(action_command_jump_start, 37, 3)
431 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Sit, ANIM_Mario1_SpinJump)
440 ExecWait(N(EVS_JumpSupport_Rebound))
446 Call(InitTargetIterator)
448 ExecWait(N(EVS_JumpSupport_ApproachAndJump))
467 ExecWait(N(EVS_JumpSupport_NoFollowUp))
481 Call(CloseActionCommandInfo)
483 Call(action_command_jump_init)
484 Call(ShowActionHud, FALSE)
485 Call(action_command_jump_start, 25, 3)
488 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Jump, ANIM_Mario1_SpinFall)
495 ExecWait(N(EVS_JumpSupport_Rebound))
502 Call(action_command_jump_init)
503 ExecWait(N(EVS_JumpSupport_Approach))
504 ExecWait(N(EVS_JumpSupport_CalcJumpTime))
505 Call(action_command_jump_start,
LVarA, 3)
509 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_MarioB1_Stomp)
513 Call(SetActionCommandMode, 3)
543 ExecWait(N(EVS_JumpSupport_NoFollowUp))
557 Call(CloseActionCommandInfo)
559 Call(action_command_jump_init)
560 Call(ShowActionHud, FALSE)
561 Call(action_command_jump_start, 24, 3)
563 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_Mario1_SpinFall)
569 ExecWait(N(EVS_JumpSupport_Rebound))
@ ACTION_COMMAND_MODE_TUTORIAL_WAIT_INPUT
@ ACTION_COMMAND_MODE_TUTORIAL
@ ACTION_COMMAND_MODE_NOT_LEARNED
@ BS_FLAGS1_TRIGGER_EVENTS
@ BS_FLAGS1_INCLUDE_POWER_UPS
@ BS_FLAGS2_DOING_JUMP_TUTORIAL
@ HIT_RESULT_NICE_NO_DAMAGE
@ BTL_CAM_PLAYER_PRE_ULTRA_JUMP_FINISH
@ BTL_CAM_PLAYER_PRE_JUMP_FINISH
@ BTL_CAM_PLAYER_SUPER_JUMP_MIDAIR
@ BTL_CAM_PLAYER_JUMP_FINISH
@ BTL_CAM_PLAYER_JUMP_MIDAIR
@ BTL_CAM_PLAYER_ULTRA_JUMP_MIDAIR
#define Switch(LVAR)
Marks the start of a switch statement.
#define DivF(VAR, FLOAT_VALUE)
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define AddF(VAR, FLOAT_VALUE)
#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 EndChildThread
Marks the end of a child thread block.
#define Sub(VAR, INT_VALUE)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define EndLoop
Marks the end of a loop.
#define EndCaseGroup
Marks the end of a switch case group (CaseOrEq and/or CaseAndEq), stopping fallthrough.
#define IfGt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR <= RVAR.
#define IfLt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR < RVAR.
#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 BreakLoop
Breaks out of the innermost loop.
#define IfFlag(LVAR, RVAR)
Marks the beginning of an if statement that only executes if the RVAR flag is set on LVAR,...
#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 ChildThread
Marks the start of a child thread block.
#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 Loop(TIMES)
Marks the beginning of a loop.
#define Return
Kills the current EVT thread.