Undertale script viewer

← back to main script listing

gml_Object_obj_torieltrigger3_Step_0

(view raw script w/o annotations or w/e)
1
if (conversation == 1 && instance_exists(obj_toroverworld4))
2
{
3
    tor.facing = 0;
4
    global.msc = 211;
5
    global.typer = 4;
6
    global.facechoice = 1;
7
    instance_create(0, 0, obj_dialoguer);
8
    conversation = 1.5;
9
}
10
if (conversation == 1.5 && instance_exists(obj_dialoguer) == 0)
11
{
12
    with (tor)
13
        path_start(path_torielwalk4, 4, path_action_stop, 0);
14
    global.interact = 0;
15
    conversation = 2;
16
}
17
if (conversation == 2 && instance_exists(obj_toroverworld4))
18
{
19
    if (obj_toroverworld4.path_position == 1)
20
    {
21
        tor2 = instance_create(tor.x, tor.y, obj_torinteractable4);
22
        with (tor2)
23
            direction = 270;
24
        with (obj_toroverworld4)
25
            instance_destroy();
26
        global.plot = 5.5;
27
        conversation = 3;
28
    }
29
}
30
if (global.plot == 6 && conversation == 3)
31
{
32
    if (global.flag[10 spared_last] == 1 || global.flag[11 escaped_last] == 1 || global.flag[12 killed_last] == 1 || global.flag[13 bored_last] == 1)
33
    {
34
        global.interact = 1;
35
        alarm[7] = 15;
gml_Object_obj_torieltrigger3_Alarm_7.gml

tor3 = instance_create(obj_torinteractable4.x, obj_torinteractable4.y, obj_toroverworld4); with (obj_torinteractable4) instance_destroy(); with (tor3) direction = 270; global.msc = 212; global.typer = 4; global.facechoice = 1; global.interact = 1; instance_create(0, 0, obj_dialoguer); conversation = 6;
36
        conversation = 4;
37
    }
38
}
39
if (conversation == 4)
40
    global.interact = 1;
41
if (conversation == 6 && instance_exists(obj_dialoguer) == 0)
42
{
43
    with (tor3)
44
        path_start(path_torielwalk4_2, 3, path_action_stop, 0);
45
    global.plot = 7;
46
    conversation = 8;
47
    global.interact = 0;
48
    instance_destroy();
49
}