4#define NAMESPACE action_command_spiny_surge
12API_CALLABLE(N(
init)) {
28 actionCommandStatus->
state = 0;
36 actionCommandStatus->
hudPosX = -48;
37 actionCommandStatus->
hudPosY = 80;
60API_CALLABLE(N(start)) {
81 actionCommandStatus->
state = 10;
82 battleStatus->
flags1 &= ~BS_FLAGS1_FREE_ACTION_COMMAND;
95 switch (actionCommandStatus->
state) {
101 if (actionCommandStatus->
showHud) {
107 if (actionCommandStatus->
showHud) {
111 actionCommandStatus->
state = 1;
121 actionCommandStatus->
hudPosX += 20;
122 if (actionCommandStatus->
hudPosX > 50) {
123 actionCommandStatus->
hudPosX = 50;
129 actionCommandStatus->
hudPosY + 28);
140 actionCommandStatus->
unk_5C = 0;
144 actionCommandStatus->
state = 11;
181 actionCommandStatus->
unk_5C = 1;
184 actionCommandStatus->
unk_5C = -1;
189 actionCommandStatus->
unk_5C == 1)
191 actionCommandStatus->
unk_5C = 2;
224 actionCommandStatus->
state = 12;
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
s32 adjust_action_command_difficulty(s32 arg0)
void action_command_init_status(void)
HudScript HES_StickNeutral
HudScript HES_StickMashLeft
@ ACTION_COMMAND_MODE_NOT_LEARNED
@ ACTION_COMMAND_SPINY_SURGE
void btl_set_popup_duration(s32 duration)
s32 evt_get_variable(Evt *script, Bytecode var)
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_script(s32 id, HudScript *anim)
void hud_element_set_render_depth(s32 id, s32 z)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
s32 hud_element_create(HudScript *anim)
Creates a new HUD element and returns its ID.
void hud_element_set_flags(s32 id, s32 flags)
Turns on the given flags.
void hud_element_clear_flags(s32 id, s32 flags)
Turns off the given flags.
@ HUD_ELEMENT_FLAG_DISABLED
void sfx_stop_sound(s32 soundID)
void sfx_adjust_env_sound_params(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
void sfx_play_sound_with_params(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
s32 actionCmdTableSpinySurge[]
s32 * actionCmdDifficultyTable
BattleStatus gBattleStatus
void N init(Npc *bombette)