Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_05_acid_ending_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
        scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
7
        with (msg)
8
        {
9
            message[0] = "* (Are you sure you want to#  drink the acid?)";
10
            ch_msg = 0;
11
            ch[1] = "Yes";
12
            if (outcome == 1)
13
                other.scene++;
14
            ch[2] = "No";
15
            if (outcome == 2)
16
            {
17
                instance_destroy(other);
18
                global.dialogue_open = false;
19
                global.cutscene = false;
20
            }
21
        }
22
        break;
23
    case 1:
24
        audio_stop_all();
25
        global.sworks_flag[45] = 1;
26
        global.heart_battle_fighting_x = 320;
27
        global.heart_battle_fighting_y = 240;
28
        global.battle_enemy_name = "Nothing";
29
        obj_pl.image_alpha = 0;
30
        room_goto(rm_death_screen Death screen);
31
        break;
32
}