245 {
249 s32 i;
250 s32 limit;
251 s32 id;
252
253 switch (actionCommandStatus->
state) {
254 case 0:
257 if (actionCommandStatus->
showHud) {
259 }
263 if (actionCommandStatus->
showHud) {
265 }
268 if (actionCommandStatus->
showHud) {
270 }
273 if (actionCommandStatus->
showHud) {
275 }
278 if (actionCommandStatus->
showHud) {
280 }
283 if (actionCommandStatus->
showHud) {
285 }
288 if (actionCommandStatus->
showHud) {
290 }
293 if (actionCommandStatus->
showHud) {
295 }
298 if (actionCommandStatus->
showHud) {
300 }
301 actionCommandStatus->
state = 1;
302 break;
303 case 1:
307 return;
308 }
309 actionCommandStatus->
hudPosX += 20;
310 if (actionCommandStatus->
hudPosX > 50) {
311 actionCommandStatus->
hudPosX = 50;
312 }
318
321 case 0:
323 break;
324 case 1:
326 break;
327 case 2:
329 break;
330 }
331
335 break;
336 case 10:
340 return;
341 }
342
346 }
347 actionCommandStatus->
state = 11;
348
349 case 11:
354 }
358 }
363 }
367 actionCommandStatus->
unk_5D = 0;
368 actionCommandStatus->
state = 12;
369 actionCommandStatus->
unk_5C = 0;
371 }
372 break;
373 case 12:
378 5;
383 }
384 if (limit == 0) {
385 limit = 1;
386 }
387
388 for (i = 0; i < limit;
pos++, i++) {
391 }
392
395 }
396
399 actionCommandStatus->
unk_5C = 1;
401 break;
402 }
403 }
404 }
405
408 if (actionCommandStatus->
unk_5C != 0) {
410 } else {
412 }
415 }
416
417 if (actionCommandStatus->
unk_5D == -5) {
419 if (actionCommandStatus->
unk_5C != 0) {
421 } else {
423 }
427 }
428 actionCommandStatus->
unk_5D--;
433 }
437 actionCommandStatus->
unk_5D = 0;
438 actionCommandStatus->
state = 13;
439 actionCommandStatus->
unk_5C = 0;
441 }
442 break;
443 case 13:
448 4;
449 if (limit < 6) {
450 limit = 6;
451 }
456 }
457 if (limit == 0) {
458 limit = 1;
459 }
460
461 for (i = 0; i < limit;
pos++, i++) {
464 }
465
466 if (i < 5) {
469 }
470 }
471
474 actionCommandStatus->
unk_5C = 1;
476 break;
477 }
478 }
479 }
480
483 if (actionCommandStatus->
unk_5C != 0) {
485 } else {
487 }
490 }
491 if (actionCommandStatus->
unk_5D == -5) {
493 if (actionCommandStatus->
unk_5C != 0) {
495 } else {
497 }
501 }
502 actionCommandStatus->
unk_5D--;
507 }
511 actionCommandStatus->
unk_5D = 0;
512 actionCommandStatus->
state = 14;
513 actionCommandStatus->
unk_5C = 0;
515 }
516 break;
517 case 14:
522 3;
523 if (limit < 6) {
524 limit = 6;
525 }
530 }
531 if (limit == 0) {
532 limit = 1;
533 }
534
535 for (i = 0; i < limit;
pos++, i++) {
538 }
539
540 if (i < 5) {
543 }
544 }
545
548 actionCommandStatus->
unk_5C = 1;
550 break;
551 }
552 }
553 }
554 if (actionCommandStatus->
unk_5D >= -4) {
557 if (actionCommandStatus->
unk_5C != 0) {
559 } else {
561 }
564 }
565 }
566 if (actionCommandStatus->
unk_5D == -5) {
568 if (actionCommandStatus->
unk_5C != 0) {
570 } else {
572 }
576 actionCommandStatus->
state = 16;
577 return;
578 }
579 actionCommandStatus->
unk_5D--;
580 break;
581 case 16:
584 } else {
586 }
590 }
593 actionCommandStatus->
state = 17;
594 break;
595 case 17:
598 return;
599 }
601 break;
602 }
603}
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
HudScript HES_TimingCharge3
HudScript HES_TimingReady
HudScript HES_AButtonDown
HudScript HES_TimingCharge2
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.
void sfx_play_sound(s32 soundID)
s32 * actionCmdDifficultyTable
BattleStatus gBattleStatus