Undertale script viewer

← back to main script listing

gml_Object_obj_torielcutscene_Step_0

(view raw script w/o annotations or w/e)
1
if (x < ((room_width / 2) - (sprite_width / 2)))
2
{
3
    if (conversation == 0)
4
    {
5
        global.currentsong = caster_load("music/toriel.ogg");
6
        caster_loop(global.currentsong, 0.7, 0.86);
7
        conversation = 1;
8
        hspeed = 0;
9
        blcon = instance_create((x + sprite_width) - 10, y + 2, obj_blconwdflowey);
10
        global.msc = 674;
11
        conversation = 1;
12
        image_speed = 0.2;
13
        blconwriter = instance_create(obj_blconwdflowey.x + 40, obj_blconwdflowey.y + 10, OBJ_WRITER);
14
    }
15
}
16
alarm[0]
17
if (instance_exists(OBJ_WRITER))
18
{
19
    if (OBJ_WRITER.halt == 0)
20
    {
21
        image_speed = 0.2;
22
    }
23
    else
24
    {
25
        image_speed = 0;
26
        image_index = 0;
27
    }
28
}
29
if (instance_exists(OBJ_WRITER) && conversation == 1)
30
    scr_textskip
scr_textskip

if (instance_exists(OBJ_WRITER)) { if (control_check_pressed(1)) { with (OBJ_WRITER) stringpos = string_length(originalstring); control_clear(1); } }
();
31
if (instance_exists(OBJ_WRITER) == 0)
32
{
33
    if (conversation == 1)
34
    {
35
        with (blcon)
36
            instance_destroy();
37
        instance_create(0, 0, obj_unfader);
38
        alarm[2] = 20;
gml_Object_obj_torielcutscene_Alarm_2.gml

global.border = 0; global.plot = 1; global.interact = 1; global.specialbattle = 1; room_goto(room_area1_2 Ruins - Flowey spot);
39
        conversation = 2;
40
        image_speed = 0;
41
        image_index = 0;
42
        volume = 1;
43
    }
44
}
45
if (global.faceemotion == 1)
46
    sprite_index = spr_torielside1;
47
if (global.faceemotion == 2)
48
    sprite_index = spr_torielcutscene;