5#define NAMESPACE action_command_air_lift
13API_CALLABLE(N(
init)) {
14 s32 *args = script->ptrReadPos;
25 actionCommandStatus->
showHud = TRUE;
26 actionCommandStatus->
state = 0;
34 actionCommandStatus->
hudPosX = -48;
36 actionCommandStatus->
hudPosY = 80;
59API_CALLABLE(N(start)) {
78 actionCommandStatus->
unk_5C = 0;
80 battleStatus->
flags1 &= ~BS_FLAGS1_FREE_ACTION_COMMAND;
81 actionCommandStatus->
state = 10;
82 battleStatus->
unk_82 = mashMeterCutoff;
94 switch (actionCommandStatus->
state) {
100 if (actionCommandStatus->
showHud) {
106 if (actionCommandStatus->
showHud) {
110 actionCommandStatus->
state = 1;
120 actionCommandStatus->
hudPosX += 20;
121 if (actionCommandStatus->
hudPosX > 50) {
122 actionCommandStatus->
hudPosX = 50;
140 actionCommandStatus->
state = 11;
145 if (actionCommandStatus->
unk_5A != 0) {
161 if (actionCommandStatus->
unk_5A != 0) {
163 s32 b = actionCommandStatus->
unk_5A * 820;
194 if (actionCommandStatus->
unk_5A == 0) {
213 actionCommandStatus->
state = 12;
216 if (actionCommandStatus->
unk_5A == 0) {
void draw_mash_meter_blink_with_divisor(s32 posX, s32 posY, s32 fillValue, s32 divisor)
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
void draw_mash_meter_multicolor_with_divisor(s32 posX, s32 posY, s32 fillValue, s32 divisor)
s32 adjust_action_command_difficulty(s32 arg0)
void action_command_init_status(void)
HudScript HES_MashAButton
@ ACTION_COMMAND_MODE_NOT_LEARNED
s32 actionCmdTableAirLift[]
@ ACTION_COMMAND_AIR_LIFT
void btl_set_popup_duration(s32 duration)
s32 evt_get_variable(Evt *script, Bytecode var)
void hud_element_get_render_pos(s32 id, s32 *x, s32 *y)
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.
void hud_element_draw_clipped(s32 id)
@ 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 * actionCmdDifficultyTable
BattleStatus gBattleStatus
void N init(Npc *bombette)