Undertale script viewer

← back to main script listing

gml_Object_obj_napstablook1_Step_1

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);
2
if (talkedto == 1 && global.choice == 0 && instance_exists(obj_dialoguer) == 0)
3
{
4
    global.battlegroup = 20;
5
    global.flag[200 kills_area_pointer] = 0;
6
    global.mercy = 1;
7
    instance_create(0, 0, obj_battler);
8
    talkedto = 0;
9
}
10
if (global.plot == 10.3)
11
{
12
    alarm[4] = 2;
gml_Object_obj_napstablook1_Alarm_4.gml

global.interact = 1; myinteract = 3; global.msc = 0; global.typer = 5; global.facechoice = 0; global.faceemotion = 0; global.msg[0] =
* i usually come to the
RUINS because there's
nobody around...Wait for input
scr_gettext("obj_napstablook1_62")
; global.msg[1] =
* but today i met somebody
nice...Wait for input
scr_gettext("obj_napstablook1_63")
; global.msg[2] =
* ...Wait for input
scr_gettext("obj_napstablook1_64")
; global.msg[3] =
* oh,Delay 11 i'm rambling againWait for input
scr_gettext("obj_napstablook1_65")
; global.msg[4] =
* i'll get out of your wayWait for inputClose MessageClose Message
scr_gettext("obj_napstablook1_66")
; mydialoguer = instance_create(0, 0, obj_dialoguer); global.plot = 10.4; global.flag[36 spared_napstablook] = 1;
13
    global.plot = 10.35;
14
}
15
if (global.plot == 10.4 && instance_exists(obj_dialoguer) == 0)
16
{
17
    image_alpha -= 0.05;
18
    if (image_alpha < 0.1)
19
    {
20
        with (obj_mainchara)
21
            uncan = 0;
22
        global.plot = 11;
23
        global.interact = 0;
24
        instance_destroy();
25
    }
26
}
27
if (global.plot == 11)
28
{
29
    with (obj_mainchara)
30
        uncan = 0;
31
    global.border = 0;
32
    global.mercy = 0;
33
    instance_destroy();
34
}