Undertale script viewer

← back to main script listing

gml_Object_obj_redswitch_1_Alarm_0

(view raw script w/o annotations or w/e)
1
if (room == room_ruins15B || room == room_ruins15D)
2
{
3
    global.interact = 4;
4
    global.phasing = 1;
5
    if (room == room_ruins15B)
6
        global.flag[51 wrong_switches_pressed] += 1;
7
    alarm[1] = 30;
gml_Object_obj_redswitch_1_Alarm_1.gml

if (global.phasing == 1) { global.facing += 1; obj_solidparent.solid = 0; obj_readablesolid.solid = 0; obj_mainchara.vspeed = 5; obj_mainchara.image_alpha = 0.5; if (global.facing > 3) global.facing = 0; alarm[1] = 4; }
8
    alarm[2] = 30;
gml_Object_obj_redswitch_1_Alarm_2.gml

snd_play(snd_fall2); global.interact = 3; instance_create(0, 0, obj_unfader); alarm[3] = 20;
9
    snd_play(snd_noise);
10
    instance_create(obj_mainchara.x, obj_mainchara.y + 20, obj_cosmetichole);
11
}
12
else
13
{
14
    myinteract = 3;
15
    if (room == room_ruins15A)
16
        global.msc = 519;
17
    if (room == room_ruins15C)
18
        global.msc = 521;
19
    global.typer = 5;
20
    global.facechoice = 0;
21
    global.faceemotion = 0;
22
    mydialoguer = instance_create(0, 0, obj_dialoguer);
23
}