Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mansion_bedroom_family_photo_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (scene == 0)
3
{
4
    if (interact)
5
    {
6
        drawing_poster = 1;
7
        scene = 1;
8
        audio_play_sound(snd_mainmenu_select, 1, 0);
9
        scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() { global.cutscene = true; obj_pl.state = scr_frozen_state; obj_pl.image_index = 0; obj_pl.image_speed = 0; }
();
10
        exit;
11
    }
12
}
13
else if (scene == 1)
14
{
15
    if (drawing_poster == 1)
16
    {
17
        if (draw_alpha < 1)
18
            draw_alpha += 0.2;
19
        if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1))
20
        {
21
            drawing_poster = 2;
22
            audio_play_sound(snd_fail, 1, 0);
23
            scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() { global.cutscene = false; obj_pl.alarm[0] = 1; }
();
24
        }
25
    }
26
    if (drawing_poster == 2)
27
    {
28
        if (draw_alpha > 0)
29
        {
30
            draw_alpha -= 0.2;
31
        }
32
        else
33
        {
34
            drawing_poster = 0;
35
            scene = 2;
36
        }
37
    }
38
}
39
else if (scene == 2)
40
{
41
    scene = 0;
42
    global.cutscene = false;
43
    if (npc_flag == 0 && global.party_member != -4)
44
    {
45
        scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
46
        with (msg)
47
        {
48
            sndfnt = 102;
49
            message[0] = "* I can't stand looking#  at that...";
50
            message[1] = "* It's...";
51
            message[2] = "* ...Let's just move on.";
52
            prt[0] = 329;
53
            prt[1] = 329;
54
            prt[2] = 317;
55
        }
56
        npc_flag = 1;
57
    }
58
}