Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_save_area

(view raw script w/o annotations or w/e)
1
function scr_determine_save_area
scr_determine_save_area

function scr_determine_save_area() //gml_Script_scr_determine_save_area { var current_room = room_get_name(room) switch current_room { case "rm_darkruins_03": current_save_number = 1 global.saveroom = "Dark Ruins - Entrance" break case "rm_darkruins_08": current_save_number = 2 global.saveroom = "Dark Ruins - Atrium" break case "rm_darkruins_10": current_save_number = 3 global.saveroom = "Dark Ruins - Cliff" break case "rm_darkruins_12": current_save_number = 4 global.saveroom = "Dark Ruins - Puzzle" break case "rm_darkruins_16": current_save_number = 5 global.saveroom = "Dark Ruins - Hall" break case "rm_snowdin_03_yellow": current_save_number = 1 global.saveroom = "Snowdin - Delta Rock" break case "rm_snowdin_08_yellow": current_save_number = 2 global.saveroom = "Snowdin - Ruined Shack" break case "rm_snowdin_12_yellow": current_save_number = 3 global.saveroom = "Snowdin - Pathway" break case "rm_snowdin_14_yellow": current_save_number = 4 global.saveroom = "Snowdin - Resort" break case "rm_snowdin_20_yellow": current_save_number = 5 global.saveroom = "Snowdin - Corridor" break case "rm_dunes_02": current_save_number = 1 global.saveroom = "Dunes - Cave" break case "rm_dunes_08": current_save_number = 2 global.saveroom = "Dunes - Tree" break case "rm_dunes_14": current_save_number = 3 global.saveroom = "Mines - Elevator" break case "rm_dunes_20": current_save_number = 4 global.saveroom = "Mines - Minecart" break case "rm_dunes_25": current_save_number = 5 global.saveroom = "Dunes - Mountaintop" break case "rm_dunes_28": current_save_number = 6 global.saveroom = "Dunes - Playground" break case "rm_dunes_34": current_save_number = 7 global.saveroom = "Dunes - Well" break case "rm_dunes_37": current_save_number = 8 global.saveroom = "Wild East - Town" break case "rm_dunes_39": current_save_number = 9 global.saveroom = "Wild East - Outskirts" break case "rm_dunes_41": current_save_number = 10 global.saveroom = "Wild East - Sunnyside" break case "rm_steamworks_05": current_save_number = 11 global.saveroom = "Steamw. - Generator" break case "rm_steamworks_09": current_save_number = 12 global.saveroom = "Steamw. - Raised Path" break case "rm_steamworks_15": current_save_number = 13 global.saveroom = "Steamw. - Lake" break case "rm_steamworks_19": current_save_number = 14 global.saveroom = "Steamw. - Offices" break ...
() //gml_Script_scr_determine_save_area
2
{
3
    var current_room = room_get_name(room)
4
    switch current_room
5
    {
6
        case "rm_darkruins_03":
7
            current_save_number = 1
8
            global.saveroom = "Dark Ruins - Entrance"
9
            break
10
        case "rm_darkruins_08":
11
            current_save_number = 2
12
            global.saveroom = "Dark Ruins - Atrium"
13
            break
14
        case "rm_darkruins_10":
15
            current_save_number = 3
16
            global.saveroom = "Dark Ruins - Cliff"
17
            break
18
        case "rm_darkruins_12":
19
            current_save_number = 4
20
            global.saveroom = "Dark Ruins - Puzzle"
21
            break
22
        case "rm_darkruins_16":
23
            current_save_number = 5
24
            global.saveroom = "Dark Ruins - Hall"
25
            break
26
        case "rm_snowdin_03_yellow":
27
            current_save_number = 1
28
            global.saveroom = "Snowdin - Delta Rock"
29
            break
30
        case "rm_snowdin_08_yellow":
31
            current_save_number = 2
32
            global.saveroom = "Snowdin - Ruined Shack"
33
            break
34
        case "rm_snowdin_12_yellow":
35
            current_save_number = 3
36
            global.saveroom = "Snowdin - Pathway"
37
            break
38
        case "rm_snowdin_14_yellow":
39
            current_save_number = 4
40
            global.saveroom = "Snowdin - Resort"
41
            break
42
        case "rm_snowdin_20_yellow":
43
            current_save_number = 5
44
            global.saveroom = "Snowdin - Corridor"
45
            break
46
        case "rm_dunes_02":
47
            current_save_number = 1
48
            global.saveroom = "Dunes - Cave"
49
            break
50
        case "rm_dunes_08":
51
            current_save_number = 2
52
            global.saveroom = "Dunes - Tree"
53
            break
54
        case "rm_dunes_14":
55
            current_save_number = 3
56
            global.saveroom = "Mines - Elevator"
57
            break
58
        case "rm_dunes_20":
59
            current_save_number = 4
60
            global.saveroom = "Mines - Minecart"
61
            break
62
        case "rm_dunes_25":
63
            current_save_number = 5
64
            global.saveroom = "Dunes - Mountaintop"
65
            break
66
        case "rm_dunes_28":
67
            current_save_number = 6
68
            global.saveroom = "Dunes - Playground"
69
            break
70
        case "rm_dunes_34":
71
            current_save_number = 7
72
            global.saveroom = "Dunes - Well"
73
            break
74
        case "rm_dunes_37":
75
            current_save_number = 8
76
            global.saveroom = "Wild East - Town"
77
            break
78
        case "rm_dunes_39":
79
            current_save_number = 9
80
            global.saveroom = "Wild East - Outskirts"
81
            break
82
        case "rm_dunes_41":
83
            current_save_number = 10
84
            global.saveroom = "Wild East - Sunnyside"
85
            break
86
        case "rm_steamworks_05":
87
            current_save_number = 11
88
            global.saveroom = "Steamw. - Generator"
89
            break
90
        case "rm_steamworks_09":
91
            current_save_number = 12
92
            global.saveroom = "Steamw. - Raised Path"
93
            break
94
        case "rm_steamworks_15":
95
            current_save_number = 13
96
            global.saveroom = "Steamw. - Lake"
97
            break
98
        case "rm_steamworks_19":
99
            current_save_number = 14
100
            global.saveroom = "Steamw. - Offices"
101
            break
102
        case "rm_steamworks_macro_froggit_room":
103
            current_save_number = 14
104
            global.saveroom = "Steamw. - ???"
105
            break
106
        case "rm_steamworks_23":
107
            current_save_number = 15
108
            global.saveroom = "Steamw. - Commons"
109
            break
110
        case "rm_steamworks_29":
111
            current_save_number = 16
112
            global.saveroom = "Greenhouse"
113
            break
114
        case "rm_steamworks_30":
115
            current_save_number = 17
116
            global.saveroom = "Steamw. - Crossroads"
117
            break
118
        case "rm_steamworks_chem_03":
119
            current_save_number = 18
120
            global.saveroom = "Steamw. - Laboratory"
121
            break
122
        case "rm_steamworks_chem_06":
123
            current_save_number = 19
124
            global.saveroom = "Steamw. - Botany Hall"
125
            break
126
        case "rm_steamworks_factory_01":
127
            current_save_number = 20
128
            global.saveroom = "Factory - Lobby"
129
            break
130
        case "rm_steamworks_factory_04":
131
            current_save_number = 21
132
            global.saveroom = "Factory - Offices"
133
            break
134
        case "rm_steamworks_34":
135
            current_save_number = 22
136
            global.saveroom = "The Furnace"
137
            break
138
        case "rm_steamworks_36":
139
            current_save_number = 23
140
            global.saveroom = "A Road Ahead"
141
            break
142
        case "rm_mansion_entrance":
143
            current_save_number = 24
144
            global.saveroom = "Estate"
145
            break
146
        case "rm_hotland_complex_1":
147
            current_save_number = 25
148
            global.saveroom = "Apt. Complex"
149
            break
150
        case "rm_newhome_02":
151
            current_save_number = 26
152
            global.saveroom = "New Home"
153
            break
154
        case "rm_newhome_03":
155
            current_save_number = 27
156
            global.saveroom = "New Home"
157
            break
158
    }
159
160
}