4#define NAMESPACE action_command_07
12API_CALLABLE(N(
init)) {
24 actionCommandStatus->
state = 0;
27 actionCommandStatus->
hudPosX = -48;
30 actionCommandStatus->
hudPosY = 80;
40 hudElement = hudElementTemp;
52 battleStatus->
flags1 &= ~BS_FLAGS1_FREE_ACTION_COMMAND;
57API_CALLABLE(N(start)) {
60 s32* args = script->ptrReadPos;
73 battleStatus->
flags1 &= ~BS_FLAGS1_FREE_ACTION_COMMAND;
75 actionCommandStatus->
state = 10;
85 switch (actionCommandStatus->
state) {
90 if (actionCommandStatus->
showHud) {
97 if (actionCommandStatus->
showHud) {
103 if (actionCommandStatus->
showHud) {
107 actionCommandStatus->
state = 1;
112 actionCommandStatus->
hudPosX += 20;
113 if (actionCommandStatus->
hudPosX > 50) {
114 actionCommandStatus->
hudPosX = 50;
132 actionCommandStatus->
unk_5D = 0;
133 actionCommandStatus->
state = 11;
142 if (actionCommandStatus->
unk_5D == 0) {
149 actionCommandStatus->
unk_5D = 3;
152 if (actionCommandStatus->
unk_5D != 0) {
153 actionCommandStatus->
unk_5D--;
154 if (actionCommandStatus->
unk_5D == 0) {
168 actionCommandStatus->
state = 12;
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)
HudScript HES_MashAButton
void btl_message_unlock_box_pos(void)
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
s32 * actionCmdDifficultyTable
BattleStatus gBattleStatus
void N init(Npc *bombette)