Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_kill_ceroba_ending_flowey_cutscene_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
switch scene
4
{
5
    case 0:
6
        instance_create_depth(320, 288, -100, obj_ending_flowey)
7
        cutscene_advance()
8
        break
9
    case 1:
10
        cutscene_wait(1)
11
        break
12
    case 2:
13
        if (!instance_exists(obj_dialogue_flowey_ending))
14
            instance_create(x, y, obj_dialogue_flowey_ending)
15
        else if (global.dialogue_open == false)
16
        {
17
            cutscene_advance()
18
            return;
19
        }
20
        else
21
        {
22
            with (obj_dialogue_flowey_ending)
23
            {
24
                sndfnt = 96
25
                talker[0] = 2628
26
                message[0] = "Sigh..."
27
                message[1] = "Can't say I didn't see#that coming."
28
                message[2] = "Still, my hopes were#high."
29
                message[3] = "There's gotta be SOME#way to get what I need."
30
                message[4] = "Clover's competent...#enough, but still..."
31
                message[5] = "Nothing ever works out#when it comes to them."
32
                message[6] = "Hmm..."
33
                message[7] = "I could reset and try#my luck again..."
34
                message[8] = "Or..."
35
                message[9] = "I could accept what#I've been given and#wait."
36
                message[10] = "The King is only one#SOUL away now."
37
                message[11] = "It might be a good idea#to piggyback off the#next human instead."
38
                message[12] = "But..."
39
                message[13] = "Who knows how long that#will take and even#worse,"
40
                message[14] = "If the next human would#be skilled enough to do#what Clover couldn't."
41
                message[15] = "..."
42
                message[16] = "I need some time to#think it over."
43
                message[17] = "This isn't the end."
44
                prt[0] = 1939
45
                prt[1] = 1936
46
                prt[2] = 1934
47
                prt[3] = 1939
48
                prt[4] = 1939
49
                prt[5] = 1938
50
                prt[6] = 1939
51
                prt[7] = 1939
52
                prt[8] = 1939
53
                prt[9] = 1934
54
                prt[10] = 1934
55
                prt[11] = 1936
56
                prt[12] = 1939
57
                prt[13] = 1939
58
                prt[14] = 1938
59
                prt[15] = 1939
60
                prt[16] = 1939
61
                prt[17] = 1934
62
            }
63
        }
64
        break
65
    case 3:
66
        if (obj_ending_flowey.sprite_index != spr_flowey_enter)
67
        {
68
            obj_ending_flowey.sprite_index = spr_flowey_enter
69
            obj_ending_flowey.image_index = obj_ending_flowey.image_number - 1
70
            obj_ending_flowey.image_speed = -0.25
71
        }
72
        if (obj_ending_flowey.image_index <= 0)
73
        {
74
            instance_destroy(obj_ending_flowey)
75
            cutscene_advance()
76
        }
77
        break
78
    case 4:
79
        cutscene_wait(1)
80
        break
81
    case 5:
82
        global.game_finished_pacifist_kill = true
83
        scr_savegame_meta
scr_savegame_meta

function scr_savegame_meta() //gml_Script_scr_savegame_meta { if file_exists("Save02.sav") file_delete("Save02.sav") ini_open("Save02.sav") ini_write_real("00", "00", global.meta_flowey_introduction_count) ini_write_real("00", "01", global.meta_flowey_fight_count) ini_write_real("00", "02", global.game_finished_pacifist) ini_write_real("00", "03", global.game_finished_pacifist_kill) ini_write_real("00", "04", global.game_finished_murder) ini_write_real("Deaths", "00", global.death_count_total) ini_write_real("Deaths", "01", global.death_count[1]) ini_write_real("Deaths", "02", global.death_count[2]) ini_close() }
()
84
        game_end()
85
        break
86
}