4#include "sprite/player.h"
9EvtScript N(EVS_HammerSupport_SmashApproach) = {
10 Call(InitTargetIterator)
19 Call(PlayerRunToGoal, 0)
24EvtScript N(EVS_HammerSupport_QuakeApproach) = {
29 Call(PlayerRunToGoal, 0)
36EvtScript N(EVS_HammerSupport_BasicRaiseDelay) = {
69EvtScript N(EVS_HammerSupport_SuperRaiseDelay) = {
102EvtScript N(EVS_HammerSupport_UltraRaiseDelay) = {
135 Call(SetBattleCamOffsetY, 8)
136 Call(InitTargetIterator)
140 Call(action_command_hammer_start, 0, 36, 3)
141 Call(SetActionQuality, 0)
172EvtScript N(EVS_HammerSupport_ReturnHome_Success) = {
173 Call(PlayerYieldTurn)
175 Call(MoveBattleCamOver, 5)
184 Call(PlayerRunToGoal, 0)
191 Call(PlayerYieldTurn)
200 Call(PlayerRunToGoal, 0)
206EvtScript N(EVS_HammerSupport_ReturnHome_Miss) = {
207 Call(PlayerYieldTurn)
217 Call(PlayerRunToGoal, 0)
225 Call(action_command_hammer_init)
226 ExecWait(N(EVS_HammerSupport_SmashApproach))
229 ExecWait(N(EVS_HammerSupport_BasicRaiseDelay))
232 Call(SetBattleCamOffsetY, 8)
233 Call(InitTargetIterator)
237 Call(N(IsBerserkerEquipped))
242 Call(N(ShouldMovesAutoSucceed))
254 Call(action_command_hammer_start, 0,
LVarD, 3)
255 Call(SetActionQuality, 0)
281 Call(action_command_hammer_start, 0,
LVar1, 3)
282 Call(SetActionQuality, 0)
291 Call(SetActionCommandMode, 3)
311 Call(action_command_hammer_init)
312 ExecWait(N(EVS_HammerSupport_SmashApproach))
315 ExecWait(N(EVS_HammerSupport_SuperRaiseDelay))
318 Call(SetBattleCamOffsetY, 8)
319 Call(InitTargetIterator)
323 Call(N(IsBerserkerEquipped))
326 Call(N(ShouldMovesAutoSucceed))
337 Call(action_command_hammer_start, 0,
LVarD, 3)
338 Call(SetActionQuality, 0)
361 Call(action_command_hammer_start, 0,
LVar1, 3)
362 Call(SetActionQuality, 0)
380 Call(action_command_hammer_init)
381 ExecWait(N(EVS_HammerSupport_SmashApproach))
384 ExecWait(N(EVS_HammerSupport_UltraRaiseDelay))
387 Call(SetBattleCamOffsetY, 8)
388 Call(InitTargetIterator)
392 Call(N(IsBerserkerEquipped))
395 Call(N(ShouldMovesAutoSucceed))
406 Call(action_command_hammer_start, 0,
LVarD, 3)
407 Call(SetActionQuality, 0)
430 Call(action_command_hammer_start, 0,
LVar1, 3)
431 Call(SetActionQuality, 0)
450 Call(action_command_hammer_init)
451 ExecWait(N(EVS_HammerSupport_QuakeApproach))
454 ExecWait(N(EVS_HammerSupport_BasicRaiseDelay))
456 Call(AddBattleCamDist, 80)
457 Call(InitTargetIterator)
462 Call(N(ShouldMovesAutoSucceed))
473 Call(action_command_hammer_start, 0,
LVarD, 3)
474 Call(SetActionQuality, 0)
508 Call(action_command_hammer_init)
509 ExecWait(N(EVS_HammerSupport_QuakeApproach))
512 ExecWait(N(EVS_HammerSupport_SuperRaiseDelay))
514 Call(AddBattleCamDist, 80)
515 Call(InitTargetIterator)
520 Call(N(ShouldMovesAutoSucceed))
531 Call(action_command_hammer_start, 0,
LVarD, 3)
557 Call(action_command_hammer_init)
558 ExecWait(N(EVS_HammerSupport_QuakeApproach))
561 ExecWait(N(EVS_HammerSupport_UltraRaiseDelay))
563 Call(AddBattleCamDist, 80)
564 Call(InitTargetIterator)
569 Call(N(ShouldMovesAutoSucceed))
580 Call(action_command_hammer_start, 0,
LVarD, 3)
@ BS_FLAGS1_INCLUDE_POWER_UPS
@ BTL_CAM_PLAYER_AIM_HAMMER
@ BTL_CAM_PLAYER_HAMMER_STRIKE
@ BTL_CAM_PLAYER_ATTACK_APPROACH
#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 Sub(VAR, INT_VALUE)
#define IfNe(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR != RVAR.
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Add(VAR, INT_VALUE)
#define EndLoop
Marks the end of a loop.
#define Goto(LABEL_ID)
Moves execution to the given label.
#define IfLt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR < RVAR.
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
#define EndIf
Marks the end of an if statement or an else block.
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#define BreakLoop
Breaks out of the innermost loop.
#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 CaseLt(RVAR)
Marks the start of a switch case that executes only if LVAR < RVAR. It also marks the end of any prev...
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Loop(TIMES)
Marks the beginning of a loop.
#define Return
Kills the current EVT thread.