12#define NAMESPACE action_command_unused_flee
26#define METER_FILL_TICK 600
30API_CALLABLE(N(
init)) {
46 acs->meterFillWidth = 0;
74API_CALLABLE(N(start)) {
101 switch (
acs->state) {
129 if (
acs->hudPosX > 50) {
140 if (
acs->prepareTime != 0) {
148 acs->flee.drainDelay = 0;
150 acs->stateTimer =
acs->duration;
160 if (
acs->flee.drainDelay == 0) {
168 acs->flee.drainDelay = 3;
172 if (
acs->flee.drainDelay != 0) {
173 acs->flee.drainDelay--;
174 if (
acs->flee.drainDelay == 0) {
175 acs->meterFillLevel = 0;
182 if (
acs->stateTimer != 0) {
191 if (
acs->stateTimer != 0) {
BSS s32 PopupMenu_SelectedIndex
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 difficultyLevel)
#define SCALE_BY_PCT(x, pct)
HudScript HES_MashAButton
@ ACTION_COMMAND_UNUSED_FLEE
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)
void hud_element_free(s32 id)
@ HUD_ELEMENT_FLAG_DISABLED
void btl_message_unlock_box_pos(void)
BattleStatus gBattleStatus
void N init(Npc *bombette)