Undertale script viewer

← back to main script listing

gml_Object_obj_door_ruins13_Alarm_2

(view raw script w/o annotations or w/e)
1
global.entrance = 24;
2
instance_create(0, 0, obj_persistentfader);
3
if (room == room_ruins12)
4
    room_goto(room_ruins13 Ruins - 2 frogs);
5
if (room == room_ruins13)
6
    room_goto(room_ruins12 Ruins - Napstablook);
7
if (room == room_ruins15E)
8
    room_goto(room_ruins15A Ruins - 3 Pillars room 1);
9
if (room == room_ruins16)
10
    room_goto(room_ruins19 Ruins - Home [SAVE]);
11
if (room == room_ruins19)
12
    room_goto(room_ruins16 Ruins - 3-way fork);
13
if (room == room_torhouse1)
14
{
15
    if (global.flag[7 true_pacifist] == 0)
16
        caster_free(global.currentsong2);
17
    room_goto(room_basement1 Toriel's Basement 1);
18
}
19
if (room == room_basement1)
20
    room_goto(room_torhouse1 Toriel's House: Entrance);
21
if (room == room_torhouse2)
22
    room_goto(room_kitchen Toriel's House: Kitchen);
23
if (room == room_kitchen)
24
    room_goto(room_torhouse2 Toriel's House: Reading room);
25
if (room == room_castle_trueexit)
26
    room_goto(room_castle_prebarrier The End [SAVE]);
27
if (room == room_castle_finalshoehorn)
28
    room_goto(room_castle_throneroom Throne Room [SAVE]);
29
if (room == room_castle_throneroom)
30
    room_goto(room_castle_finalshoehorn Throne Entrance [SAVE]);
31
if (room == room_asghouse2)
32
    room_goto(room_kitchen_final New Home - Kitchen);
33
if (room == room_kitchen_final)
34
    room_goto(room_asghouse2 New Home - Reading Room);
35
if (room == room_tundra_town)
36
    room_goto(room_tundra_town2 Snowdin Town: Ice haul wolf);
37
if (room == room_tundra_iceentrance)
38
    room_goto(room_tundra_poffzone Snowdin - Snow poffs (Greater Dog));
39
if (room == room_tundra_poffzone)
40
    room_goto(room_tundra_iceentrance Snowdin - Sliding XO puzzle);
41
if (room == room_water11)
42
    room_goto(room_water12 Waterfall - Split Pathway);
43
if (room == room_water12)
44
    room_goto(room_water11 Waterfall - Sans Telescope);
45
if (room == room_water_bird)
46
    room_goto(room_water_prebird Waterfall - Pre Bird (Unused));
47
if (room == room_water_prebird)
48
    room_goto(room_water_bird Waterfall - Duck);
49
if (room == room_water_friendlyhub)
50
    room_goto(room_water_bird Waterfall - Duck);
51
if (room == room_fire_walkandbranch2)
52
    room_goto(room_fire_savepoint2 Hotland - Spider Entrance [SAVE]);
53
if (room == room_fire_savepoint2)
54
    room_goto(room_fire_walkandbranch2 Hotland - F3 Puzzle Gate);
55
if (room == room_fire_hotelfront_1)
56
    room_goto(room_fire_elevator_r3 Hotland - Elevator R3);
57
if (room == room_fire_elevator_r3)
58
    room_goto(room_fire_hotelfront_1 Hotland - Nice Cream Stand);
59
if (room == room_fire_hotelfront_2)
60
    room_goto(room_shop3 Hotland - Bratty and Catty [Dogchecked]);
61
if (room == room_fire_shootguy_5)
62
    room_goto(room_fire_core_left Hotland - Core West Puzzle Entrance);
63
if (room == room_fire_core_left)
64
    room_goto(room_fire_shootguy_5 Hotland - Core Get Lost);
65
if (room == room_fire_core_branch)
66
    room_goto(room_fire_core_center Hotland - Core End - 4);
67
if (room == room_fire_core_center)
68
    room_goto(room_fire_core_branch Hotland - Core Branch [SAVE]);
69
if (room == room_fire_core_topleft)
70
    room_goto(room_fire_core_treasureleft Hotland - Core West Puzzle);
71
if (room == room_fire_core_topright)
72
    room_goto(room_fire_core_treasureright Hotland - Core Glamburger Trash Can);
73
if (room == room_fire_core_treasureleft)
74
    room_goto(room_fire_core_topleft Hotland - Core West Puzzle Entrance + 1);
75
if (room == room_fire_core_treasureright)
76
    room_goto(room_fire_core_topright Hotland - Core East Money Trash Bin Entrance);
77
if (room == room_fire_core_top)
78
    room_goto(room_fire_core_warrior Hotland - Core 100G Trash Can);
79
if (room == room_fire_core_warrior)
80
    room_goto(room_fire_core_top Hotland - Core West Puzzle Entrance + 2);
81
if (room == room_fire_core_right)
82
    room_goto(room_fire_core_bridge Hotland - Core Battle Bridge);
83
if (room == room_fire_core_bridge)
84
    room_goto(room_fire_core_right Hotland - Core End - 3);
85
if (room == room_water_fakehallway)
86
    room_goto(room_water_savepoint1 Waterfall - Crystal [SAVE]);
87
if (room == room_water11)
88
    room_goto(room_water_savepoint1 Waterfall - Crystal [SAVE]);
89
if (room == room_water_savepoint1)
90
{
91
    gox = 0;
92
    fsx = 0;
93
    if (global.flag[5 fun] == 66)
94
    {
95
        if (ossafe_file_exists("undertale.ini"))
96
        {
97
            ossafe_ini_open("undertale.ini");
98
            fsx = ini_read_real("General", "fun", 0);
99
            var dosave = 0;
100
            if (fsx == 66 && global.flag[5 fun] == 66)
101
            {
102
                gox = 1;
103
                global.flag[5 fun] = 0;
104
                ini_write_real("General", "fun", 0);
105
                dosave = 1;
106
            }
107
            ossafe_ini_close();
108
            ossafe_savedata_save();
109
        }
110
    }
111
    if (gox == 1)
112
        room_goto(room_water_fakehallway Waterfall - Mysteryman hallway [Dogchecked]);
113
    if (gox == 0)
114
        room_goto(room_water11 Waterfall - Sans Telescope);
115
}