Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_seq_pacifist_credits_Events

(view raw script w/o annotations or w/e)
1
function seq_pacifist_credits_Moment_6() //gml_Script_seq_pacifist_credits_Moment_6
2
{
3
    room_goto(rm_credits_paci_intermission Pacifist Route credits scene)
4
}
5
6
function seq_pacifist_credits_Moment_7() //gml_Script_seq_pacifist_credits_Moment_7
7
{
8
    if (global.snowdin_flag[3] >= 2)
9
        global.ending_sequence = layer_sequence_create("sequence_layer_deep", 98, 120, 1)
10
    else
11
        global.ending_sequence = layer_sequence_create("sequence_layer_deep", 104, 120, 26)
12
}
13
14
function seq_pacifist_credits_Moment_8() //gml_Script_seq_pacifist_credits_Moment_8
15
{
16
    if variable_global_exists("ending_sequence")
17
        layer_sequence_destroy(global.ending_sequence)
18
}
19
20
function seq_pacifist_credits_Moment_9() //gml_Script_seq_pacifist_credits_Moment_9
21
{
22
    var sale_number = 0
23
    for (var i = 1; i < array_length(global.extra_flag); i++)
24
    {
25
        if (global.extra_flag[i] == true)
26
            sale_number += 1
27
    }
28
    if (sale_number <= 3)
29
        global.ending_sequence = layer_sequence_create("sequence_layer_deep", 96, 120, 0)
30
    else if (sale_number < 9)
31
        global.ending_sequence = layer_sequence_create("sequence_layer_deep", 96, 120, 13)
32
    else
33
        global.ending_sequence = layer_sequence_create("sequence_layer_deep", 96, 120, 18)
34
}
35
36
function seq_pacifist_credits_Moment_10() //gml_Script_seq_pacifist_credits_Moment_10
37
{
38
    if (global.dunes_flag[7] > 0)
39
        global.ending_sequence = layer_sequence_create("sequence_layer_deep", 160, 120, 27)
40
    else
41
        global.ending_sequence = layer_sequence_create("sequence_layer_deep", 160, 120, 30)
42
}