Undertale script viewer

← back to main script listing

gml_Object_obj_torieltrigger1_Step_0

(view raw script w/o annotations or w/e)
1
if (conversation == 1 && instance_exists(OBJ_WRITER) == 0)
2
{
3
    global.interact = 1;
4
    conversation = 2;
5
    with (obj_toroverworld3)
6
        path_start(path_torielwalk2, 3, path_action_stop, 1);
7
}
8
if (instance_exists(obj_toroverworld3))
9
{
10
    if (conversation == 2 && obj_toroverworld3.path_position == 1)
11
    {
12
        conversation = 2.5;
13
        with (obj_wallswitchcut1)
14
            on = 1;
15
        with (obj_toroverworld3)
16
            path_end();
17
        obj_toroverworld3.direction = 90;
18
        alarm[4] = 20;
gml_Object_obj_torieltrigger1_Alarm_4.gml

with (obj_toroverworld3) path_start(path_torielwalk2_2, 3, path_action_stop, 1); alarm[5] = 40;
19
    }
20
}
21
if (conversation == 3 && instance_exists(OBJ_WRITER) == 0)
22
{
23
    conversation = 4;
24
    global.interact = 0;
25
    global.plot = 3;
26
}
27
if (instance_exists(obj_toroverworld3))
28
{
29
    if (conversation == 4 && obj_toroverworld3.path_position == 1 && abs(obj_mainchara.y - obj_toroverworld3.y) < 50)
30
    {
31
        conversation = 5;
32
        with (obj_toroverworld3)
33
            path_start(path_walkup, 3, path_action_stop, 0);
34
    }
35
}