226 {
230 s32 i;
233
234 switch (
acs->state) {
240 }
246 }
251 }
256 }
261 }
266 }
271 }
276 }
281 }
283 break;
286 if (
acs->hudPrepareTime != 0) {
287 acs->hudPrepareTime--;
288 return;
289 }
291 if (
acs->hudPosX > 50) {
293 }
299
301 switch (
acs->variation) {
304 break;
307 break;
310 break;
311 }
312
316 break;
319 if (
acs->prepareTime != 0) {
321 return;
322 }
323
324 acs->stateTimer =
acs->duration - 60;
325 if (
acs->stateTimer < 42) {
326 acs->stateTimer = 42;
327 }
329
330
333
334
335 if (
acs->stateTimer == 42) {
338 }
339 if (
acs->stateTimer == 22) {
342 }
343
344
345 if (
acs->stateTimer == 2) {
349 }
350
352
353
354 if (
acs->stateTimer == 0) {
355 acs->stateTimer = 20;
356 acs->threeChances.time = 0;
358 acs->threeChances.hadCorrectTiming =
FALSE;
360 }
361 break;
364
365
366
367
368 if (!(
acs->wrongButtonPressed ||
acs->threeChances.hadCorrectTiming)
369 &&
acs->threeChances.time >= -5
370 ) {
377 }
380 }
381
385 }
386
388 acs->wrongButtonPressed =
TRUE;
389 }
390
392 acs->threeChances.hadCorrectTiming =
TRUE;
394 break;
395 }
396 }
397 }
398
399
400 if ((
acs->threeChances.time > -5)
401 && (
acs->wrongButtonPressed ||
acs->threeChances.hadCorrectTiming)
402 ) {
404 if (
acs->threeChances.hadCorrectTiming) {
406 } else {
408 }
411 }
412
413
414 if (
acs->threeChances.time == -5) {
416 if (
acs->threeChances.hadCorrectTiming) {
418 } else {
420 }
424 }
425
426 acs->threeChances.time--;
427
428
429 if (
acs->stateTimer == 2) {
433 }
434
436
437 if (
acs->stateTimer == 0) {
438 acs->stateTimer = 20;
439 acs->threeChances.time = 0;
441 acs->threeChances.hadCorrectTiming =
FALSE;
443 }
444 break;
447
448
449
450
451 if (!(
acs->wrongButtonPressed ||
acs->threeChances.hadCorrectTiming)
452 &&
acs->threeChances.time >= -5
453 ) {
458 }
463 }
466 }
467
471 }
472
475 acs->wrongButtonPressed =
TRUE;
476 }
477 }
478
480 acs->threeChances.hadCorrectTiming =
TRUE;
482 break;
483 }
484 }
485 }
486
487
488 if ((
acs->threeChances.time > -5)
489 && (
acs->wrongButtonPressed ||
acs->threeChances.hadCorrectTiming)
490 ) {
492 if (
acs->threeChances.hadCorrectTiming) {
494 } else {
496 }
499 }
500
501
502 if (
acs->threeChances.time == -5) {
504 if (
acs->threeChances.hadCorrectTiming) {
506 } else {
508 }
512 }
513
514 acs->threeChances.time--;
515
516
517 if (
acs->stateTimer == 2) {
521 }
522
524
525 if (
acs->stateTimer == 0) {
526 acs->stateTimer = 20;
527 acs->threeChances.time = 0;
529 acs->threeChances.hadCorrectTiming =
FALSE;
531 }
532 break;
535
536
537
538
539 if (!(
acs->wrongButtonPressed ||
acs->threeChances.hadCorrectTiming)
540 &&
acs->threeChances.time >= -5
541 ) {
546 }
551 }
554 }
555
559 }
560
563 acs->wrongButtonPressed =
TRUE;
564 }
565 }
566
569 acs->threeChances.hadCorrectTiming =
TRUE;
571 break;
572 }
573 }
574 }
575
576
577 if ((
acs->threeChances.time > -5)
578 && (
acs->wrongButtonPressed ||
acs->threeChances.hadCorrectTiming)
579 ) {
581 if (
acs->threeChances.hadCorrectTiming) {
583 } else {
585 }
588 }
589
590
591 if (
acs->threeChances.time == -5) {
593 if (
acs->threeChances.hadCorrectTiming) {
595 } else {
597 }
602 return;
603 }
604
605 acs->threeChances.time--;
606 break;
610 } else {
612 }
616 }
620 break;
622 if (
acs->stateTimer != 0) {
624 return;
625 }
627 break;
628 }
629}
BSS s32 PopupMenu_SelectedIndex
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
void increment_action_command_success_count(void)
HudScript HES_TimingCharge3
#define AC_QUALITY_FAILED
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.
@ HUD_ELEMENT_FLAG_DISABLED
void sfx_play_sound(s32 soundID)
@ ACV_THREE_CHANCES_CLOUD_NINE
@ ACV_THREE_CHANCES_TURBO_CHARGE
@ ACV_THREE_CHANCES_WATER_BLOCK
BattleStatus gBattleStatus