Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_sme_yellow_rhythm_song_data_flowey_nosong

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

function scr_sme_yellow_rhythm_song_data_flowey_nosong(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_flowey_nosong { if (argument0 == undefined) argument0 = 499 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]] 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 }
(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_flowey_nosong
2
{
3
    if (argument0 == undefined)
4
        argument0 = 499
5
    if (argument1 == undefined)
6
        argument1 = false
7
    if (argument2 == undefined)
8
        argument2 = false
9
    if (argument3 == undefined)
10
        argument3 = 2
11
    if (argument4 == undefined)
12
        argument4 = [520, 517, 514]
13
    can_end_script = true
14
    var sound = array_create(array_length(argument1), 0)
15
    for (var i = 0; i < array_length(sound); i++)
16
        sound[i] = argument4[argument2[i]]
17
    note_1second = 30
18
    note_speed_denominator = 30 * argument3
19
    note_speed = note_speed_numerator / note_speed_denominator
20
    note_current = 0
21
    note_time = 0
22
    note_add = 0
23
    note_total = array_length(argument1)
24
    note_final = false
25
    if (song_play_ct == 0)
26
        timeline = timeline_add()
27
    else if (!timeline_exists(timeline))
28
        timeline = timeline_add()
29
    else
30
        timeline_clear(timeline)
31
    note_time = argument1[0] * note_1second - note_speed_denominator
32
    note_sarray[0] = sound[0]
33
    note_parray[0] = argument2[0]
34
    timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note)
35
    for (i = 1; i < array_length(argument1); i++)
36
    {
37
        note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second
38
        note_time += note_add
39
        note_sarray[i] = sound[i]
40
        note_parray[i] = argument2[i]
41
        timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note)
42
    }
43
    timeline_index = timeline
44
    timeline_loop = false
45
    timeline_speed = 1
46
    timeline_position = 0
47
    timeline_running = true
48
    song_play_ct += 1
49
}