Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_el_bailador_finale_Step_0

(view raw script w/o annotations or w/e)
1
script_execute(gml_Script_scr_controls_text)
2
if key_revert_pressed
3
{
4
    characters = message_length
5
    message_draw = string_copy(message[message_current], 0, characters)
6
}
7
if (characters < message_length)
8
{
9
    if (counter == 0)
10
    {
11
        script_execute(gml_Script_scr_text_increase)
12
        script_execute(gml_Script_scr_talking_enemy)
13
    }
14
    else
15
        can_talk = false
16
}
17
else
18
{
19
    can_talk = false
20
    if key_select_pressed
21
    {
22
        if (message_current < message_end)
23
        {
24
            message_current += 1
25
            message_length = string_length(message[message_current])
26
            characters = 0
27
            message_draw = ""
28
        }
29
        else
30
        {
31
            with (obj_heart_battle_fighting_parent)
32
                moveable = true
33
            with (obj_sme_yellow_rhythm_generator)
34
            {
35
                instance_create(obj_el_bailador_neutral.x, obj_el_bailador_neutral.y, obj_battle_enemy_attack_el_bailador_dance)
36
                audio_restore = 0
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_finale_02_yellow, other.finale_chart[0], other.finale_chart[1], 1.2, [521, 518, 515])
38
                note_sarray[(array_length(note_sarray) - 1)] = 523
39
                with (obj_background_el_bailador_test_yellow)
40
                {
41
                    m_sign_modifier = 1
42
                    m_time_elapsed = -1
43
                    time_max = floor(time_max_default * 0.5)
44
                    m_sign_modifier_v = 1
45
                    m_time_elapsed_v = -1
46
                    time_max_v = floor(time_max_default * 0.5)
47
                    max_rise_v = max_rise_v_default - 1
48
                    interlaced_x = false
49
                    interlaced_y = true
50
                    osc_horizontal = true
51
                    osc_vertical = true
52
                }
53
                with (obj_battle_enemy_attack_el_bailador_dance)
54
                {
55
                    sign_modifier = 1
56
                    time_elapsed = 0
57
                    time_max = floor(time_max_default * 0.5)
58
                }
59
            }
60
            with (obj_quote_bubble_battle)
61
                instance_destroy()
62
            instance_destroy()
63
        }
64
    }
65
}
66
script_execute(gml_Script_scr_text_counter)