Deltarune script viewer

← back to main script listing

gml_Object_obj_doorw_musfade_Alarm_2

(view raw script w/o annotations or w/e)
1
global.entrance = 23;
2
instance_create(0, 0, obj_persistentfadein);
3
event_user(7);
4
if (room == room_town_mid)
5
{
6
    if (x > 1000 && x < 1140)
7
    {
8
        global.entrance = 22;
9
        room_goto(room_lw_conbini );
10
    }
11
}
12
if (room == room_lw_conbini)
13
{
14
    global.entrance = 22;
15
    room_goto(room_town_mid );
16
}
17
if (room == room_dw_city_traffic_3)
18
{
19
    global.entrance = 24;
20
    if (global.flag[917 ch2_egg_room] == 0 && scr_sideb_get_phase
scr_sideb_get_phase

function scr_sideb_get_phase() { var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; }
() == 0)
21
    {
22
        room_goto(room_dw_city_dog_traffic );
23
    }
24
    else
25
    {
26
        var man_room = scr_sideb_get_phase
scr_sideb_get_phase

function scr_sideb_get_phase() { var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; }
() == 0 && global.flag[917 ch2_egg_room] < 2 && global.flag[918 got_ch2_egg] == 0 && ceil(random(50)) == 50;
27
        if (man_room)
28
            room_goto(room_dw_city_man );
29
        else
30
            room_goto(room_dw_city_moss );
31
    }
32
}
33
if (room == room_dw_city_traffic_4)
34
{
35
    global.entrance = 23;
36
    room_goto(room_dw_city_spamton_alley );
37
}
38
if (room == room_dw_city_man)
39
{
40
    global.entrance = 24;
41
    room_goto(room_dw_city_traffic_3 );
42
}
43
if (room == room_dw_mansion_entrance)
44
{
45
    global.entrance = 22;
46
    room_goto(room_shop_ch2_swatch );
47
}
48
if (room == room_lw_police)
49
{
50
    global.entrance = 22;
51
    room_goto(room_town_south );
52
}
53
if (room == room_dw_mansion_b_entrance)
54
{
55
    global.entrance = 20;
56
    room_goto(room_dw_mansion_east_1f_secret );
57
}
58
if (room == room_dw_mansion_east_1f_secret)
59
{
60
    global.entrance = 20;
61
    room_goto(room_dw_mansion_b_entrance );
62
}
63
if (room == room_dw_city_spamton_shop_exterior)
64
    room_goto(room_shop_ch2_spamton );
65
if (room == room_castle_tutorial)
66
    room_goto(room_shop_ch2_music );