Undertale script viewer

← back to main script listing

gml_Object_obj_torieltrigger4_Step_0

(view raw script w/o annotations or w/e)
1
if (conversation == 3 && instance_exists(obj_toroverworld4))
2
{
3
    if (obj_toroverworld4.path_position == 1)
4
    {
5
        global.currentsong = caster_load("music/toriel.ogg");
6
        caster_loop(global.currentsong, 0.7, 0.86);
7
        with (tor)
8
            path_end();
9
        with (tor)
10
            direction = 180;
11
        with (tor)
12
            facing = 3;
13
        with (tor)
14
            sprite_index = spr_toriel_lt;
15
        global.msc = 220;
16
        global.typer = 4;
17
        global.facechoice = 1;
18
        instance_create(0, 0, obj_dialoguer);
19
        conversation = 4;
20
        global.phone[0] = 201;
21
        global.phone[1] = 203;
22
        global.phone[2] = 204;
23
        global.phone[3] = 205;
24
        global.menuchoice[2] = 1;
25
        instance_create(160, 100, obj_stalkerflowey);
26
    }
27
}
28
if (conversation == 4 && instance_exists(obj_dialoguer) == 0)
29
{
30
    instance_create(0, 0, obj_tordogcall);
31
    with (tor)
32
        path_start(path_walkright, 3, path_action_stop, 0);
33
    script_execute(scr_tempsave);
34
    global.interact = 0;
35
    instance_destroy();
36
}