Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_doorX_musfade_Alarm_2

(view raw script w/o annotations or w/e)
1
global.entrance = 24;
2
instance_create(0, 0, obj_persistentfadein);
3
event_user(7);
4
if (room == room_castle_tutorial)
5
    room_goto(room_dw_castle_town);
6
if (room == room_town_krisyard)
7
    room_goto(room_torhouse );
8
if (room == room_torhouse)
9
{
10
    if (global.chapter == 4 && global.plot == 15)
11
        room_goto(room_lw_church_entrance);
12
    else
13
        room_goto(room_town_krisyard );
14
}
15
if (room == room_town_school)
16
    room_goto(room_schoollobby );
17
if (room == room_schoollobby)
18
    room_goto(room_town_school );
19
if (global.chapter >= 2)
20
{
21
    if (room == room_dw_castle_town)
22
        room_goto(room_shop1 );
23
    if (room == room_dw_castle_town && global.flag[1661] > 0 && y >= 1500)
24
        room_goto(room_dw_castle_area_1 );
25
}