Undertale script viewer

← back to main script listing

gml_Object_obj_paptrash_Step_0

(view raw script w/o annotations or w/e)
1
if (myinteract == 1)
2
{
3
    if (obj_kitchenchecker.level == 0)
4
    {
5
        global.interact = 1;
6
        alarm[0] = 1;
gml_Object_obj_paptrash_Alarm_0.gml

myinteract = 3; global.msc = 0; global.typer = 5; global.facechoice = 0; global.faceemotion = 0; global.msg[0] =
* (You visited the trash
can.)Wait for inputClose MessageClose Message
scr_gettext("obj_paptrash_68")
; if (instance_exists(obj_papyrusparent)) { scr_papface(0, 0); global.msg[1] =
THAT'S THE TRASH
CAN.Wait for input
scr_gettext("obj_paptrash_72")
; global.msg[2] =
FEEL FREE TO VISIT
IT ANY TIME.Wait for inputClose MessageClose Message
scr_gettext("obj_paptrash_73")
; } mydialoguer = instance_create(0, 0, obj_dialoguer); talkedto += 1;
7
        myinteract = 2;
8
    }
9
    else
10
    {
11
        myinteract = 0;
12
    }
13
}
14
if (myinteract == 3)
15
{
16
    if (instance_exists(mydialoguer) == 0)
17
    {
18
        global.interact = 0;
19
        myinteract = 0;
20
    }
21
}
22
if (obj_kitchenchecker.level == 0)
23
    scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
();
24
if (obj_kitchenchecker.level > 0)
25
    depth = 100005;