Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_miner_snake_backtrack_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (interact)
3
{
4
    is_talking = 1;
5
    scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
6
    switch (npc_flag)
7
    {
8
        case 0:
9
            with (msg)
10
            {
11
                portrait = false;
12
                sndfnt = 99;
13
                message[0] = "* I'm famished.\t";
14
                message[1] = "* 'Boutta yomp on some rocks!";
15
            }
16
            npc_flag++;
17
            break;
18
        case 1:
19
            with (msg)
20
                message[0] = "* I hope they don't dock pay for#  eating the workplace...";
21
            break;
22
    }
23
}
24
if (is_talking == 1)
25
    sprite_index = spr_miner_snake_talk;
26
else
27
    sprite_index = spr_miner_snake;