Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_doorW_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_hospital_lobby)
5
    room_goto(room_town_south );
6
if (room == room_alphysalley)
7
    room_goto(room_town_mid );
8
if (room == room_town_north)
9
    room_goto(room_beach );
10
if (room == room_beach)
11
    room_goto(room_town_north );
12
if (room == room_town_mid)
13
{
14
    if (x > 290 && x < 370)
15
    {
16
        global.entrance = 20;
17
        room_goto(room_lw_icee_pizza );
18
    }
19
    if (x > 1730 && x < 1840)
20
    {
21
        global.entrance = 23;
22
        room_goto(room_alphysalley );
23
    }
24
}
25
if (room == room_lw_icee_pizza)
26
{
27
    global.entrance = 20;
28
    room_goto(room_town_mid );
29
}
30
if (room == room_town_south)
31
{
32
    if (x > 230 && x < 280)
33
    {
34
        global.entrance = 22;
35
        room_goto(room_lw_police );
36
    }
37
    if (x > 580 && x < 660)
38
    {
39
        global.entrance = 23;
40
        room_goto(room_hospital_lobby );
41
    }
42
}
43
if (room == room_lw_police)
44
{
45
    global.entrance = 22;
46
    room_goto(room_town_south );
47
}
48
if (room == room_dw_castle_east_door)
49
    room_goto(room_castle_tutorial );
50
if (room == room_castle_tutorial)
51
    room_goto(room_dw_castle_east_door );
52
if (room == room_dw_ralsei_castle_front)
53
{
54
    global.entrance = 24;
55
    room_goto(room_dw_ralsei_castle_1f );
56
}
57
if (room == room_dw_ralsei_castle_1f)
58
{
59
    if (x > 840 && x < 1000)
60
    {
61
        global.entrance = 23;
62
        room_goto(room_dw_castle_dungeon );
63
    }
64
    if (x > 550 && x < 700)
65
    {
66
        global.entrance = 24;
67
        room_goto(room_dw_ralsei_castle_front );
68
    }
69
}
70
if (room == room_dw_ralsei_castle_2f)
71
{
72
    if (x > 240 && x < 340)
73
    {
74
        global.entrance = 22;
75
        room_goto(room_dw_castle_rooms_kris );
76
    }
77
    if (x > 520 && x < 610)
78
    {
79
        global.entrance = 23;
80
        room_goto(room_dw_castle_rooms_susie );
81
    }
82
    if (x > 780 && x < 860)
83
    {
84
        global.entrance = 24;
85
        room_goto(room_cc_lancer );
86
    }
87
}
88
if (room == room_dw_castle_rooms_kris)
89
{
90
    global.entrance = 22;
91
    room_goto(room_dw_ralsei_castle_2f );
92
}
93
if (room == room_dw_castle_rooms_susie)
94
{
95
    global.entrance = 23;
96
    room_goto(room_dw_ralsei_castle_2f );
97
}
98
if (room == room_cc_lancer)
99
{
100
    global.entrance = 24;
101
    room_goto(room_dw_ralsei_castle_2f );
102
}
103
if (room == room_dw_castle_dungeon)
104
{
105
    global.entrance = 23;
106
    room_goto(room_dw_ralsei_castle_1f );
107
}
108
if (room == room_library)
109
{
110
    if (x > 110 && x < 150)
111
    {
112
        global.entrance = 23;
113
        room_goto(room_lw_computer_lab );
114
    }
115
    if (x > 215 && x < 230)
116
    {
117
        global.entrance = 20;
118
        room_goto(room_lw_library_upstairs );
119
    }
120
}
121
if (room == room_lw_library_upstairs)
122
{
123
    global.entrance = 20;
124
    room_goto(room_library );
125
}
126
if (room == room_lw_computer_lab)
127
{
128
    global.entrance = 23;
129
    room_goto(room_library );
130
}