Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_el_bailador

(view raw script w/o annotations or w/e)
1
function scr_enemy_timer_attacks_el_bailador
scr_enemy_timer_attacks_el_bailador

function scr_enemy_timer_attacks_el_bailador() //gml_Script_scr_enemy_timer_attacks_el_bailador { var enemy_attack = global.enemy_attack var charts = [[3.2, 4, 4.8], [1, 1, 1], [3.2, 4, 4.8], [1, 2, 1], [3.2, 3.6, 4.4, 4.8], [1, 2, 1, 0], [3.2, 3.6, 4, 4.8, 5.6, 6.4, 6.8, 7.2, 8], [1, 2, 0, 2, 1, 2, 2, 2, 1], [1.54, 1.94, 2.32, 2.7, 3.09, 3.87, 4.25, 5.03, 5.41, 5.81, 6.19, 6.96, 7.35, 7.74], [1, 2, 0, 1, 2, 1, 2, 1, 2, 0, 1, 0, 2, 1], [1.5, 1.87, 2.25, 2.62, 3, 3.37, 4.12, 4.5, 4.87, 5.62, 6.37, 6.75, 7.12, 7.5], [1, 2, 0, 2, 1, 2, 2, 0, 2, 0, 2, 2, 0, 1], [1.45, 1.81, 2.36, 2.9, 3.18, 3.45, 4, 4.36, 5.09, 5.36, 5.63, 6.72, 7, 7.27], [0, 2, 1, 2, 1, 2, 0, 1, 1, 0, 1, 2, 1, 0], [1.76, 2.82, 3.17, 3.52, 3.7, 3.88, 4.23, 4.58, 5.11, 5.29, 6, 6.35, 6.52, 7.05, 7.76, 8.11, 8.47], [2, 1, 0, 2, 1, 2, 1, 0, 1, 2, 1, 1, 1, 0, 0, 1, 0], [1.37, 1.88, 2.05, 2.57, 2.74, 3.25, 3.42, 3.77, 4.11, 4.45, 4.8, 5.14, 5.48, 6.34, 6.6, 6.85], [1, 0, 1, 2, 1, 1, 0, 2, 1, 1, 0, 1, 0, 1, 1, 0], [1.45, 1.62, 1.94, 2.43, 2.59, 2.91, 3.24, 3.89, 4.21, 4.54, 5.02, 5.18, 5.51, 5.83, 6.64, 6.89, 7.13, 7.94, 8.18, 8.43, 8.75, 9.08], [0, 1, 1, 1, 0, 0, 1, 0, 1, 2, 2, 1, 0, 1, 1, 0, 1, 1, 2, 1, 0, 1], [1.26, 1.73, 2.21, 2.52, 2.76, 3, 3.15, 3.47, 3.78, 4.42, 5.05, 5.21, 5.68, 6, 6.31, 6.47, 6.78, 6.94, 7.57, 7.73, 8.05, 8.21, 8.84, 9.47, 9.94, 10.1], [1, 0, 2, 2, 1, 0, 1, 1, 0, 0, 1, 0, 1, 2, 1, 2, 1, 2, 1, 1, 0, 1, 0, 0, 0, 0], [2.3, 2.7, 3.2, 3.7, 4.2, 4.7, 5.7, 7.2], [1, 1, 1, 1, 0, 2, 0, 0], [3, 4, 5, 6, 7], [2, 1, 0, 1, 2], [4, 5.5, 8], [0, 1, 2]] if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true) { if (enemy_attack == "El Bailador Song" && (!instance_exists(obj_sme_yellow_rhythm_generator))) { if (global.route != 3) instance_create(obj_el_bailador_neutral.x, obj_el_bailador_neutral.y, obj_battle_enemy_attack_el_bailador_dance) else if (global.turns_passed >= 5) obj_el_bailador_neutral.neutral_sprite = 1450 else instance_create(obj_el_bailador_neutral.x, obj_el_bailador_neutral.y, obj_battle_enemy_attack_el_bailador_dance) instance_create(0, 0, obj_sme_yellow_rhythm_generator) with (obj_sme_yellow_rhythm_generator) { damage_name_1 = "el bailador" damage_name_2 = "void" damage_name_3 = "void" end_script = gml_Script_scr_sme_yellow_rhythm_out_gen_end_script_el_bailador alarm_0_script = gml_Script_scr_sme_yellow_rhythm_out_gen_alarm_0_script_el_bailador audio_restore = 512 if (global.turns_passed > 10) global.turns_passed = 0 var turns_passed = global.turns_passed switch turns_passed { case 0: scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_01_yellow, charts[0], charts[1]) obj_battle_el_bailador_controller.battle_el_bail_event_tutorial = true break case 1: scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_02_yellow, charts[2], charts[3]) break case 2: scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_03_yellow, charts[4], charts[5]) obj_battle_el_bailador_controller.battle_el_bail_event_tutorial = false break case 3: scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_04_yellow, charts[6], charts[7], 1.8) break case 4: scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_05_yellow, charts[8], charts[9], 1.5) break case 5: if (global.route != 3) scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_06_yellow, charts[10], charts[11], 1.4) else scr_sme_yellow_rhythm_song_data_danza(mus_null, charts[22], charts[23]) break case 6: if (global.route != 3) scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_07_yellow, charts[12], charts[13], 1.4) else scr_sme_yellow_rhythm_song_data_danza(mus_null, charts[24], charts[25], 2.5) break case 7: if (global.route != 3) scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_08_yellow, charts[14], charts[15], 1.4) else scr_sme_yellow_rhythm_song_data_danza(mus_null, charts[26], charts[27], 3.5) break case 8: scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_09_yellow, charts[16], charts[17], 1.3) break case 9: scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_10_yellow, charts[18], charts[19], 1.3) break case 10: audio_restore = 0 scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_finale_01_yellow, charts[20], charts[21], 1.2) break default: scr_sme_yellow_rhythm_song_data_danza(mus_danza_attack_inst_01_yellow, charts[0], charts[1]) } switch turns_passed { case 0: case 1: case 2: case 3: with (obj_background_el_bailador_test_yellow) { m_sign_modifier = 1 m_time_elapsed = -1 time_max = time_max_default m_sign_modifier_v = 1 m_time_elapsed_v = -1 time_max_v = time_max_v_default max_rise_v = max_rise_v_default turns_passed = global.turns_passed switch turns_passed { case 0: interlaced_x = false interlaced_y = false osc_horizontal = true osc_vertical = false break ...
() //gml_Script_scr_enemy_timer_attacks_el_bailador
2
{
3
    var enemy_attack = global.enemy_attack
4
    var charts = [[3.2, 4, 4.8], [1, 1, 1], [3.2, 4, 4.8], [1, 2, 1], [3.2, 3.6, 4.4, 4.8], [1, 2, 1, 0], [3.2, 3.6, 4, 4.8, 5.6, 6.4, 6.8, 7.2, 8], [1, 2, 0, 2, 1, 2, 2, 2, 1], [1.54, 1.94, 2.32, 2.7, 3.09, 3.87, 4.25, 5.03, 5.41, 5.81, 6.19, 6.96, 7.35, 7.74], [1, 2, 0, 1, 2, 1, 2, 1, 2, 0, 1, 0, 2, 1], [1.5, 1.87, 2.25, 2.62, 3, 3.37, 4.12, 4.5, 4.87, 5.62, 6.37, 6.75, 7.12, 7.5], [1, 2, 0, 2, 1, 2, 2, 0, 2, 0, 2, 2, 0, 1], [1.45, 1.81, 2.36, 2.9, 3.18, 3.45, 4, 4.36, 5.09, 5.36, 5.63, 6.72, 7, 7.27], [0, 2, 1, 2, 1, 2, 0, 1, 1, 0, 1, 2, 1, 0], [1.76, 2.82, 3.17, 3.52, 3.7, 3.88, 4.23, 4.58, 5.11, 5.29, 6, 6.35, 6.52, 7.05, 7.76, 8.11, 8.47], [2, 1, 0, 2, 1, 2, 1, 0, 1, 2, 1, 1, 1, 0, 0, 1, 0], [1.37, 1.88, 2.05, 2.57, 2.74, 3.25, 3.42, 3.77, 4.11, 4.45, 4.8, 5.14, 5.48, 6.34, 6.6, 6.85], [1, 0, 1, 2, 1, 1, 0, 2, 1, 1, 0, 1, 0, 1, 1, 0], [1.45, 1.62, 1.94, 2.43, 2.59, 2.91, 3.24, 3.89, 4.21, 4.54, 5.02, 5.18, 5.51, 5.83, 6.64, 6.89, 7.13, 7.94, 8.18, 8.43, 8.75, 9.08], [0, 1, 1, 1, 0, 0, 1, 0, 1, 2, 2, 1, 0, 1, 1, 0, 1, 1, 2, 1, 0, 1], [1.26, 1.73, 2.21, 2.52, 2.76, 3, 3.15, 3.47, 3.78, 4.42, 5.05, 5.21, 5.68, 6, 6.31, 6.47, 6.78, 6.94, 7.57, 7.73, 8.05, 8.21, 8.84, 9.47, 9.94, 10.1], [1, 0, 2, 2, 1, 0, 1, 1, 0, 0, 1, 0, 1, 2, 1, 2, 1, 2, 1, 1, 0, 1, 0, 0, 0, 0], [2.3, 2.7, 3.2, 3.7, 4.2, 4.7, 5.7, 7.2], [1, 1, 1, 1, 0, 2, 0, 0], [3, 4, 5, 6, 7], [2, 1, 0, 1, 2], [4, 5.5, 8], [0, 1, 2]]
5
    if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
6
    {
7
        if (enemy_attack == "El Bailador Song" && (!instance_exists(obj_sme_yellow_rhythm_generator)))
8
        {
9
            if (global.route != 3)
10
                instance_create(obj_el_bailador_neutral.x, obj_el_bailador_neutral.y, obj_battle_enemy_attack_el_bailador_dance)
11
            else if (global.turns_passed >= 5)
12
                obj_el_bailador_neutral.neutral_sprite = 1450
13
            else
14
                instance_create(obj_el_bailador_neutral.x, obj_el_bailador_neutral.y, obj_battle_enemy_attack_el_bailador_dance)
15
            instance_create(0, 0, obj_sme_yellow_rhythm_generator)
16
            with (obj_sme_yellow_rhythm_generator)
17
            {
18
                damage_name_1 = "el bailador"
19
                damage_name_2 = "void"
20
                damage_name_3 = "void"
21
                end_script = gml_Script_scr_sme_yellow_rhythm_out_gen_end_script_el_bailador
22
                alarm_0_script = gml_Script_scr_sme_yellow_rhythm_out_gen_alarm_0_script_el_bailador
23
                audio_restore = 512
24
                if (global.turns_passed > 10)
25
                    global.turns_passed = 0
26
                var turns_passed = global.turns_passed
27
                switch turns_passed
28
                {
29
                    case 0:
30
                        scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_01_yellow, charts[0], charts[1])
31
                        obj_battle_el_bailador_controller.battle_el_bail_event_tutorial = true
32
                        break
33
                    case 1:
34
                        scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_02_yellow, charts[2], charts[3])
35
                        break
36
                    case 2:
37
                        scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_03_yellow, charts[4], charts[5])
38
                        obj_battle_el_bailador_controller.battle_el_bail_event_tutorial = false
39
                        break
40
                    case 3:
41
                        scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_04_yellow, charts[6], charts[7], 1.8)
42
                        break
43
                    case 4:
44
                        scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_05_yellow, charts[8], charts[9], 1.5)
45
                        break
46
                    case 5:
47
                        if (global.route != 3)
48
                            scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_06_yellow, charts[10], charts[11], 1.4)
49
                        else
50
                            scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_null, charts[22], charts[23])
51
                        break
52
                    case 6:
53
                        if (global.route != 3)
54
                            scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_07_yellow, charts[12], charts[13], 1.4)
55
                        else
56
                            scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_null, charts[24], charts[25], 2.5)
57
                        break
58
                    case 7:
59
                        if (global.route != 3)
60
                            scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_08_yellow, charts[14], charts[15], 1.4)
61
                        else
62
                            scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_null, charts[26], charts[27], 3.5)
63
                        break
64
                    case 8:
65
                        scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_09_yellow, charts[16], charts[17], 1.3)
66
                        break
67
                    case 9:
68
                        scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_10_yellow, charts[18], charts[19], 1.3)
69
                        break
70
                    case 10:
71
                        audio_restore = 0
72
                        scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_finale_01_yellow, charts[20], charts[21], 1.2)
73
                        break
74
                    default:
75
                        scr_sme_yellow_rhythm_song_data_danza
scr_sme_yellow_rhythm_song_data_danza

function scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza { if (argument0 == undefined) argument0 = mus_danza_attack_inst_01_yellow if (argument1 == undefined) argument1 = false if (argument2 == undefined) argument2 = false if (argument3 == undefined) argument3 = 2 if (argument4 == undefined) argument4 = [520, 517, 514] can_end_script = true var sound = array_create(array_length(argument1), 0) for (var i = 0; i < array_length(sound); i++) sound[i] = argument4[argument2[i]] scr_audio_stop_sound(1) audio_play = argument0 audio_sound_gain(audio_play, 1, 0) audio_sound_pitch(audio_play, 1) audio_play_sound(audio_play, 20, false) note_1second = 30 note_speed_denominator = 30 * argument3 note_speed = note_speed_numerator / note_speed_denominator note_current = 0 note_time = 0 note_add = 0 note_total = array_length(argument1) note_final = false if (song_play_ct == 0) timeline = timeline_add() else if (!timeline_exists(timeline)) timeline = timeline_add() else timeline_clear(timeline) note_time = argument1[0] * note_1second - note_speed_denominator note_sarray[0] = sound[0] note_parray[0] = argument2[0] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) for (i = 1; i < array_length(argument1); i++) { note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second note_time += note_add note_sarray[i] = sound[i] note_parray[i] = argument2[i] timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) } timeline_index = timeline timeline_loop = false timeline_speed = 1 timeline_position = 0 timeline_running = true song_play_ct += 1 }
(mus_danza_attack_inst_01_yellow, charts[0], charts[1])
76
                }
77
78
                switch turns_passed
79
                {
80
                    case 0:
81
                    case 1:
82
                    case 2:
83
                    case 3:
84
                        with (obj_background_el_bailador_test_yellow)
85
                        {
86
                            m_sign_modifier = 1
87
                            m_time_elapsed = -1
88
                            time_max = time_max_default
89
                            m_sign_modifier_v = 1
90
                            m_time_elapsed_v = -1
91
                            time_max_v = time_max_v_default
92
                            max_rise_v = max_rise_v_default
93
                            turns_passed = global.turns_passed
94
                            switch turns_passed
95
                            {
96
                                case 0:
97
                                    interlaced_x = false
98
                                    interlaced_y = false
99
                                    osc_horizontal = true
100
                                    osc_vertical = false
101
                                    break
102
                                case 1:
103
                                    interlaced_x = false
104
                                    interlaced_y = false
105
                                    osc_horizontal = false
106
                                    osc_vertical = true
107
                                    break
108
                                case 2:
109
                                    interlaced_x = false
110
                                    interlaced_y = true
111
                                    osc_horizontal = false
112
                                    osc_vertical = true
113
                                    max_rise_v -= 1
114
                                    break
115
                                case 3:
116
                                    interlaced_x = false
117
                                    interlaced_y = false
118
                                    osc_horizontal = true
119
                                    osc_vertical = true
120
                                    break
121
                                default:
122
123
                            }
124
125
                        }
126
                        with (obj_battle_enemy_attack_el_bailador_dance)
127
                        {
128
                            sign_modifier = 1
129
                            time_elapsed = 0
130
                            time_max = time_max_default
131
                        }
132
                        break
133
                    case 4:
134
                    case 5:
135
                    case 6:
136
                        with (obj_background_el_bailador_test_yellow)
137
                        {
138
                            m_sign_modifier = 1
139
                            m_time_elapsed = -1
140
                            time_max = floor(time_max_default * 0.75)
141
                            m_sign_modifier_v = 1
142
                            m_time_elapsed_v = -1
143
                            time_max_v = floor(time_max_default * 0.75)
144
                            max_rise_v = max_rise_v_default
145
                            turns_passed = global.turns_passed
146
                            switch turns_passed
147
                            {
148
                                case 4:
149
                                    interlaced_x = false
150
                                    interlaced_y = false
151
                                    osc_horizontal = true
152
                                    osc_vertical = false
153
                                    break
154
                                case 5:
155
                                    interlaced_x = false
156
                                    interlaced_y = false
157
                                    osc_horizontal = false
158
                                    osc_vertical = true
159
                                    break
160
                                case 6:
161
                                    interlaced_x = false
162
                                    interlaced_y = true
163
                                    osc_horizontal = true
164
                                    osc_vertical = true
165
                                    max_rise_v -= 1
166
                                    break
167
                                default:
168
169
                            }
170
171
                        }
172
                        with (obj_battle_enemy_attack_el_bailador_dance)
173
                        {
174
                            sign_modifier = 1
175
                            time_elapsed = 0
176
                            time_max = floor(time_max_default * 0.75)
177
                        }
178
                        break
179
                    case 7:
180
                    case 8:
181
                    case 9:
182
                    case 10:
183
                        with (obj_background_el_bailador_test_yellow)
184
                        {
185
                            m_sign_modifier = 1
186
                            m_time_elapsed = -1
187
                            time_max = floor(time_max_default * 0.5)
188
                            m_sign_modifier_v = 1
189
                            m_time_elapsed_v = -1
190
                            time_max_v = floor(time_max_default * 0.5)
191
                            max_rise_v = max_rise_v_default
192
                            turns_passed = global.turns_passed
193
                            switch turns_passed
194
                            {
195
                                case 7:
196
                                    interlaced_x = false
197
                                    interlaced_y = false
198
                                    osc_horizontal = true
199
                                    osc_vertical = false
200
                                    break
201
                                case 8:
202
                                    interlaced_x = false
203
                                    interlaced_y = false
204
                                    osc_horizontal = false
205
                                    osc_vertical = true
206
                                    break
207
                                case 9:
208
                                    interlaced_x = false
209
                                    interlaced_y = false
210
                                    osc_horizontal = true
211
                                    osc_vertical = true
212
                                    break
213
                                case 10:
214
                                    interlaced_x = false
215
                                    interlaced_y = true
216
                                    osc_horizontal = true
217
                                    osc_vertical = true
218
                                    max_rise_v -= 1
219
                                    break
220
                                default:
221
222
                            }
223
224
                        }
225
                        with (obj_battle_enemy_attack_el_bailador_dance)
226
                        {
227
                            sign_modifier = 1
228
                            time_elapsed = 0
229
                            time_max = floor(time_max_default * 0.5)
230
                        }
231
                        break
232
                    default:
233
234
                }
235
236
            }
237
        }
238
        else if (enemy_attack == "Bailador No Attack")
239
        {
240
            with (obj_dialogue_box_battle_transformation_any)
241
                event_user(0)
242
        }
243
    }
244
}