Undertale script viewer

← back to main script listing

gml_Object_obj_quicheguilt_Step_0

(view raw script w/o annotations or w/e)
1
if (global.inbattle == 0)
2
{
3
    if (guilt == 1 && global.interact == 0 && global.flag[17 menu_disabled] == 0 && instance_exists(obj_mainchara))
4
        check += 1;
5
    else
6
        check = 0;
7
    if (check >= 80 && guilt == 1)
8
    {
9
        global.msg[0] = "* Somewhere^1, a quiche's worst&  fear becomes reality./%%";
10
        scr_regulartext
scr_regulartext

global.typer = 5; global.facechoice = 0; global.faceemotion = 0; global.msc = 0; instance_create(0, 0, obj_dialoguer);
();
11
        guilt = 2;
12
        global.interact = 1;
13
    }
14
    if (guilt == 2 && instance_exists(OBJ_WRITER) == 0)
15
    {
16
        global.interact = 0;
17
        instance_destroy();
18
    }
19
    if (guilt == 6 && global.interact == 0)
20
    {
21
        global.msg[0] = "* A quiche in another timeline./%%";
22
        scr_regulartext
scr_regulartext

global.typer = 5; global.facechoice = 0; global.faceemotion = 0; global.msc = 0; instance_create(0, 0, obj_dialoguer);
();
23
        guilt = 2;
24
        global.interact = 1;
25
    }
26
}