98 {
101 s32 id;
102 s32 phi_a1;
103 s32 cutoff;
104 s32 new_var;
105
106 switch (actionCommandStatus->
state) {
107 case 0:
110 if (actionCommandStatus->
showHud) {
112 }
116 if (actionCommandStatus->
showHud) {
118 }
121 if (actionCommandStatus->
showHud) {
123 }
124 actionCommandStatus->
state = 1;
125 break;
126 case 1:
130 } else {
131 actionCommandStatus->
hudPosX += 20;
132 if (actionCommandStatus->
hudPosX > 50) {
133 actionCommandStatus->
hudPosX = 50;
134 }
142 actionCommandStatus->
hudPosY + 28);
143
145 new_var = 29 - (phi_a1 * 60) / 100;
148 actionCommandStatus->
hudPosX - new_var,
149 actionCommandStatus->
hudPosY + 17);
150 }
151 break;
152 case 10:
156 break;
157 }
160 actionCommandStatus->
unk_5C = 0;
164 actionCommandStatus->
state = 11;
165
166 case 11:
168
175 }
176 } else {
180 }
181 }
182 }
183
186 if (phi_a1 != 0) {
188
189 phi_a1 = (((a * 850) / 100) * phi_a1) / 100;
191 } else {
195 }
196 }
197 }
198
204 id,
205 actionCommandStatus->
hudPosX + 50,
206 actionCommandStatus->
hudPosY + 28);
208 }
209
212
216 phi_a1 = 0;
217 }
218
220 if (phi_a1 == 0) {
224 } else {
226 }
227
231 } else {
233 }
234
237 }
238
242 actionCommandStatus->
state = 12;
243 } else {
245 }
246 break;
247 case 12:
252 }
253 }
256 break;
257 }
259 break;
260 }
261
262
263
264 switch (actionCommandStatus->
state) {
265 case 1:
266 case 10:
267 case 11:
273 }
274 } else {
279 }
280 }
281 }
282}
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
HudScript HES_MashAButton
void btl_set_popup_duration(s32 duration)
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_script(s32 id, HudScript *anim)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
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 * actionCmdDifficultyTable
BattleStatus gBattleStatus