1 |
if (room == rm_battle || room == rm_battle_flowey_phase_2) |
2 |
{ |
3 |
if (!global.sound_carry_overworld) |
4 |
audio_stop_sound(bgm) |
5 |
return; |
6 |
} |
7 |
switch room |
8 |
{ |
9 |
case rm_death_screen: |
10 |
case 6: |
11 |
case 7: |
12 |
case 13: |
13 |
case 15: |
14 |
case 34: |
15 |
case 35: |
16 |
case 43: |
17 |
case 40: |
18 |
case 41: |
19 |
case 42: |
20 |
case 29: |
21 |
case 93: |
22 |
case 179: |
23 |
case 161: |
24 |
case 172: |
25 |
case 209: |
26 |
case 140: |
27 |
case 136: |
28 |
case 204: |
29 |
case 206: |
30 |
case 207: |
31 |
case 208: |
32 |
case 255: |
33 |
case 273: |
34 |
case 285: |
35 |
bgm = -4 |
36 |
break |
37 |
case 8: |
38 |
case 9: |
39 |
case 10: |
40 |
bgm = mus_ruins_yellow |
41 |
break |
42 |
case 14: |
43 |
case 30: |
44 |
case 25: |
45 |
case 105: |
46 |
case 134: |
47 |
bgm = mus_wind |
48 |
break |
49 |
case 17: |
50 |
case 24: |
51 |
case 31: |
52 |
case 26: |
53 |
case 20: |
54 |
case 21: |
55 |
case 27: |
56 |
bgm = mus_darkruins |
57 |
break |
58 |
case 28: |
59 |
bgm = mus_coolestcave |
60 |
break |
61 |
case 37: |
62 |
case 38: |
63 |
case 39: |
64 |
if (global.flag[17 Dalv fate] == 1 && global.route != 3) |
65 |
bgm = mus_spook |
66 |
else |
67 |
bgm = mus_null |
68 |
break |
69 |
case 44: |
70 |
case 45: |
71 |
case 49: |
72 |
case 51: |
73 |
case 54: |
74 |
case 56: |
75 |
case 57: |
76 |
case 58: |
77 |
case 64: |
78 |
case 70: |
79 |
bgm = mus_snowfall |
80 |
break |
81 |
case 284: |
82 |
bgm = -4 |
83 |
break |
84 |
case 233: |
85 |
bgm = mus_snow |
86 |
break |
87 |
case 53: |
88 |
if (global.snowdin_flag[5] == 0 || global.snowdin_flag[5] == 2 || global.geno_complete[2]) |
89 |
bgm = mus_snowfall |
90 |
else |
91 |
bgm = mus_gimme_ur_cash_yellow |
92 |
break |
93 |
case 59: |
94 |
case 61: |
95 |
case 62: |
96 |
bgm = mus_relaxation |
97 |
if global.geno_complete[2] |
98 |
bgm = mus_mart_geno_wind_yellow |
99 |
break |
100 |
case 63: |
101 |
bgm = mus_funsized_yellow |
102 |
if global.geno_complete[2] |
103 |
bgm = mus_mart_geno_wind_yellow |
104 |
break |
105 |
case 60: |
106 |
if audio_is_playing(mus_honeydew_bark) |
107 |
song = 145 |
108 |
else if audio_is_playing(mus_honeydew_dalv) |
109 |
song = 146 |
110 |
else if audio_is_playing(mus_honeydew_snow) |
111 |
song = 149 |
112 |
else if audio_is_playing(mus_honeydew_ruins) |
113 |
song = 148 |
114 |
else |
115 |
bgm = mus_honeydew_lodge |
116 |
if (global.snowdin_flag[13] != 0) |
117 |
bgm = mus_relaxation |
118 |
if global.geno_complete[2] |
119 |
bgm = mus_mart_geno_wind_yellow |
120 |
break |
121 |
case 71: |
122 |
if (global.snowdin_flag[13] == 1) |
123 |
bgm = mus_birdsofafeather |
124 |
else if ((!global.geno_complete[2]) || global.dunes_flag[0] > 0) |
125 |
bgm = mus_snowfall |
126 |
else |
127 |
bgm = mus_mart_geno_wind_yellow |
128 |
break |
129 |
case 73: |
130 |
if (global.snowdin_flag[13] == 1) |
131 |
bgm = mus_aviation |
132 |
else |
133 |
bgm = mus_quietstray |
134 |
break |
135 |
case 77: |
136 |
case 78: |
137 |
bgm = mus_wind |
138 |
break |
139 |
case 79: |
140 |
case 82: |
141 |
case 81: |
142 |
case 85: |
143 |
case 89: |
144 |
case 110: |
145 |
case 111: |
146 |
case 113: |
147 |
case 114: |
148 |
bgm = mus_vigorous_terrain |
149 |
break |
150 |
case 83: |
151 |
bgm = mus_funsized_yellow |
152 |
break |
153 |
case 121: |
154 |
case 123: |
155 |
case 124: |
156 |
case 126: |
157 |
bgm = mus_vigorous_terrain |
158 |
if (global.dunes_flag[41] == 1) |
159 |
bgm = mus_the_trek |
160 |
break |
161 |
case 251: |
162 |
case 252: |
163 |
bgm = mus_mart_geno_wind_yellow |
164 |
break |
165 |
case 241: |
166 |
case 242: |
167 |
bgm = mus_trapdoor |
168 |
break |
169 |
case 250: |
170 |
bgm = mus_computer_ambience |
171 |
if instance_exists(obj_ceroba_phase_2_overworld_cutscene_2) |
172 |
bgm = -4 |
173 |
break |
174 |
case 98: |
175 |
if (global.route == 3) |
176 |
bgm = mus_mart_geno_wind_yellow |
177 |
else |
178 |
{ |
179 |
if (!audio_is_playing(mus_dunes_cave_outdoors)) |
180 |
{ |
181 |
dynamic_song = audio_play_sound(mus_dunes_cave_outdoors, 1, 1) |
182 |
var dynamic_mus_pos = audio_sound_get_track_position(current_song) |
183 |
audio_sound_set_track_position(dynamic_song, dynamic_mus_pos) |
184 |
audio_sound_gain(dynamic_song, 0, 0) |
185 |
} |
186 |
audio_sound_gain(dynamic_song, 1, 400) |
187 |
audio_sound_gain(current_song, 0, 600) |
188 |
return; |
189 |
} |
190 |
break |
191 |
case 86: |
192 |
if (global.dunes_flag[3] == 0 || global.dunes_flag[3] == 2) |
193 |
bgm = mus_vigorous_terrain |
194 |
else |
195 |
bgm = mus_gimme_ur_cash_yellow |
196 |
break |
197 |
case 90: |
198 |
case 92: |
199 |
case 94: |
200 |
case 96: |
201 |
case 97: |
202 |
case 99: |
203 |
case 101: |
204 |
case 103: |
205 |
case 104: |
206 |
bgm = mus_dunes_cave |
207 |
if (global.route == 3) |
208 |
bgm = mus_mart_geno_wind_yellow |
209 |
break |
210 |
case 106: |
211 |
case 107: |
212 |
case 108: |
213 |
bgm = mus_apex |
214 |
break |
215 |
case 125: |
216 |
if (global.geno_complete[3] == true && global.route == 3) |
217 |
bgm = -4 |
218 |
else |
219 |
bgm = mus_cafe |
220 |
break |
221 |
case 102: |
222 |
bgm = -4 |
223 |
break |
224 |
case 112: |
225 |
bgm = mus_gemstone_fever |
226 |
break |
227 |
case 276: |
228 |
bgm = mus_oasis |
229 |
if (global.dunes_flag[41] == 1) |
230 |
bgm = mus_the_trek |
231 |
if (global.route == 3) |
232 |
bgm = mus_vigorous_terrain |
233 |
if global.geno_complete[3] |
234 |
bgm = mus_mart_geno_wind_yellow |
235 |
break |
236 |
case 127: |
237 |
case 133: |
238 |
if (global.dunes_flag[41] >= 1 && global.dunes_flag[41] <= 2) |
239 |
bgm = mus_the_trek |
240 |
else if (global.dunes_flag[20] == 0 || global.dunes_flag[20] == 8) |
241 |
bgm = -4 |
242 |
else if (global.dunes_flag[20] == 9 && (global.dunes_flag[24] == 0 || global.dunes_flag[24] == 2)) |
243 |
bgm = mus_getting_the_thoughts_out |
244 |
else |
245 |
bgm = mus_the_wild_east |
246 |
if (room == rm_dunes_37 && global.route == 2 && global.sworks_flag[40] == 2 && global.dunes_flag[41] == 0) |
247 |
bgm = -4 |
248 |
break |
249 |
case 135: |
250 |
bgm = -4 |
251 |
break |
252 |
case 137: |
253 |
bgm = mus_sunnyside_ranch |
254 |
break |
255 |
case 128: |
256 |
if (global.route == 3) |
257 |
bgm = -4 |
258 |
else if (global.dunes_flag[20] == 9 && (global.dunes_flag[24] == 0 || global.dunes_flag[24] == 2)) |
259 |
bgm = mus_getting_the_thoughts_out |
260 |
else if (global.route == 1 && global.sworks_flag[0] > 0 && global.dunes_flag[24] == 1 && global.sworks_flag[61] == 0) |
261 |
bgm = mus_after_hours |
262 |
else |
263 |
bgm = mus_happy_hour |
264 |
break |
265 |
case 141: |
266 |
case 142: |
267 |
case 143: |
268 |
bgm = mus_abandoned |
269 |
break |
270 |
case 144: |
271 |
case 146: |
272 |
case 148: |
273 |
case 149: |
274 |
case 150: |
275 |
case 151: |
276 |
case 152: |
277 |
case 153: |
278 |
case 154: |
279 |
case 155: |
280 |
case 169: |
281 |
case 167: |
282 |
case 190: |
283 |
case 188: |
284 |
if (global.sworks_flag[1] < 3) |
285 |
bgm = mus_abandoned |
286 |
else |
287 |
bgm = mus_steamworks_overworld |
288 |
break |
289 |
case 275: |
290 |
bgm = mus_golden_opportunity |
291 |
break |
292 |
case 192: |
293 |
bgm = mus_abandoned |
294 |
break |
295 |
case 237: |
296 |
case 240: |
297 |
bgm = mus_corner_of_a_circle |
298 |
break |
299 |
case 238: |
300 |
bgm = -4 |
301 |
break |
302 |
case 193: |
303 |
bgm = mus_abandoned |
304 |
break |
305 |
case 195: |
306 |
case 196: |
307 |
case 198: |
308 |
case 201: |
309 |
case 199: |
310 |
case 200: |
311 |
if (global.route != 3) |
312 |
bgm = mus_corner_of_a_circle |
313 |
else |
314 |
bgm = mus_treading_lightly |
315 |
break |
316 |
case 197: |
317 |
bgm = mus_greenhouse |
318 |
break |
319 |
case 156: |
320 |
case 157: |
321 |
case 170: |
322 |
case 171: |
323 |
case 202: |
324 |
case 205: |
325 |
bgm = mus_treading_lightly |
326 |
break |
327 |
case 173: |
328 |
if (global.sworks_flag[13] >= 2 || global.route == 3) |
329 |
bgm = mus_treading_lightly |
330 |
else |
331 |
bgm = -4 |
332 |
break |
333 |
case 168: |
334 |
if (global.sworks_flag[10] == 1) |
335 |
bgm = mus_gimme_ur_cash_yellow |
336 |
else |
337 |
bgm = mus_steamworks_overworld |
338 |
break |
339 |
case 160: |
340 |
bgm = mus_detainment |
341 |
break |
342 |
case 162: |
343 |
bgm = -4 |
344 |
if (global.sworks_flag[3] >= 3) |
345 |
bgm = mus_treading_lightly |
346 |
break |
347 |
case 187: |
348 |
case 189: |
349 |
case 191: |
350 |
if (global.sworks_flag[18] == 0) |
351 |
bgm = -4 |
352 |
else |
353 |
bgm = mus_greenhouse |
354 |
break |
355 |
case 163: |
356 |
bgm = mus_steamworks_overworld |
357 |
break |
358 |
case 174: |
359 |
case 175: |
360 |
case 176: |
361 |
case 280: |
362 |
case 177: |
363 |
bgm = mus_abandoned |
364 |
if (global.sworks_flag[14] == 1 || global.route == 1) |
365 |
bgm = mus_corner_of_a_circle |
366 |
break |
367 |
case 210: |
368 |
case 211: |
369 |
if (global.hotland_flag[1] == 1) |
370 |
bgm = mus_flock_together |
371 |
if (global.hotland_flag[9] >= 3) |
372 |
bgm = mus_honest_days_work |
373 |
bgm = mus_medium |
374 |
if (global.route == 3) |
375 |
bgm = mus_UNDERTALE_oogloop |
376 |
break |
377 |
case 212: |
378 |
case 213: |
379 |
case 221: |
380 |
bgm = -4 |
381 |
if (global.hotland_flag[1] == 1) |
382 |
bgm = mus_flock_together |
383 |
if (global.hotland_flag[9] >= 3) |
384 |
bgm = mus_honest_days_work |
385 |
break |
386 |
case 217: |
387 |
bgm = mus_complex |
388 |
if (global.hotland_flag[1] == 1) |
389 |
bgm = mus_flock_together |
390 |
if (global.hotland_flag[9] >= 3) |
391 |
bgm = mus_honest_days_work |
392 |
if (global.route == 3) |
393 |
{ |
394 |
if (global.hotland_flag[9] < 3) |
395 |
bgm = snd_light_loop |
396 |
else |
397 |
bgm = -4 |
398 |
} |
399 |
break |
400 |
case 253: |
401 |
case 254: |
402 |
bgm = mus_flock_together |
403 |
if (global.hotland_flag[9] >= 3) |
404 |
bgm = mus_honest_days_work |
405 |
if (global.hotland_flag[3] == 2) |
406 |
bgm = -4 |
407 |
break |
408 |
case 264: |
409 |
if (global.hotland_flag[9] >= 3) |
410 |
bgm = mus_honest_days_work |
411 |
break |
412 |
case 265: |
413 |
bgm = -4 |
414 |
break |
415 |
case 268: |
416 |
bgm = mus_birdnoise |
417 |
break |
418 |
case 269: |
419 |
bgm = mus_barrier |
420 |
break |
421 |
} |
422 |
|
423 |
if ((!audio_is_playing(bgm)) && bgm != -4) |
424 |
{ |
425 |
audio_stop_sound(current_song) |
426 |
if (!audio_is_playing(bgm)) |
427 |
current_song = audio_play_sound(bgm, 10, 1) |
428 |
audio_sound_gain(current_song, 1, 0) |
429 |
if (music_position != 0) |
430 |
{ |
431 |
audio_sound_set_track_position(current_song, music_position) |
432 |
music_position = 0 |
433 |
} |
434 |
} |
435 |
var world_current = scr_determine_world_value_yellowscr_determine_world_value_yellowfunction scr_determine_world_value_yellow() //gml_Script_scr_determine_world_value_yellow
{
if (room != rm_battle && room != rm_shop && room != rm_mainmenu && room != rm_death_screen)
global.current_room_overworld = room_get_name(room)
var current_room_overworld = global.current_room_overworld
switch current_room_overworld
{
case "rm_ruins_01_yellow":
case "rm_ruins_02_yellow":
case "rm_ruins_03_yellow":
case "rm_ruins_04_yellow":
case "rm_ruins_05_yellow":
case "rm_ruins_06_yellow":
return 0;
case "rm_darkruins_01":
case "rm_darkruins_02":
case "rm_darkruins_03":
case "rm_darkruins_04":
case "rm_darkruins_05":
case "rm_darkruins_06":
case "rm_darkruins_07":
case "rm_darkruins_08":
case "rm_darkruins_08b":
case "rm_darkruins_09":
case "rm_darkruins_09b":
case "rm_darkruins_10":
case "rm_darkruins_11":
case "rm_darkruins_12":
case "rm_darkruins_13":
case "rm_darkruins_14":
case "rm_darkruins_14b":
case "rm_darkruins_15":
case "rm_darkruins_16":
case "rm_darkruins_16b":
case "rm_darkruins_16c":
case "rm_darkruins_17":
case "rm_darkruins_18":
case "rm_dalvhallway":
case "rm_dalvshouse":
case "rm_dalvsroom":
case "rm_dalvroomhall":
case "rm_dalvExit":
return 1;
case "rm_snowdin_01_yellow":
case "rm_snowdin_02_yellow":
case "rm_snowdin_03_yellow":
case "rm_snowdin_03b_yellow":
case "rm_snowdin_04_yellow":
case "rm_snowdin_05_yellow":
case "rm_snowdin_06_yellow":
case "rm_snowdin_07_yellow":
case "rm_snowdin_08_yellow":
case "rm_snowdin_08b_yellow":
case "rm_snowdin_09_yellow":
case "rm_snowdin_10_yellow":
case "rm_snowdin_11_yellow":
case "rm_snowdin_12_yellow":
case "rm_snowdin_13_yellow":
case "rm_snowdin_14_yellow":
case "rm_snowdin_14b_yellow":
case "rm_snowdin_14c_yellow":
case "rm_snowdin_14d_yellow":
case "rm_snowdin_14e_yellow":
case "rm_snowdin_15_yellow":
case "rm_snowdin_16_yellow":
case "rm_snowdin_16b_yellow":
case "rm_snowdin_17_yellow":
case "rm_snowdin_18_yellow":
case "rm_snowdin_19_yellow":
case "rm_snowdin_20_yellow":
case "rm_snowdin_21_yellow":
case "rm_snowdin_22_yellow":
return 2;
case "rm_dunes_01":
case "rm_dunes_02":
case "rm_dunes_03":
case "rm_dunes_04":
case "rm_dunes_05":
case "rm_dunes_06":
case "rm_dunes_07":
case "rm_dunes_08":
case "rm_dunes_08b":
case "rm_dunes_09":
case "rm_dunes_10":
case "rm_dunes_11":
case "rm_dunes_12":
case "rm_dunes_12b":
case "rm_dunes_13":
case "rm_dunes_14":
case "rm_dunes_15":
case "rm_dunes_16":
case "rm_dunes_17":
case "rm_dunes_18":
case "rm_dunes_19":
case "rm_dunes_19B":
case "rm_dunes_20":
case "rm_dunes_21":
case "rm_dunes_22":
case "rm_dunes_23":
case "rm_dunes_24":
case "rm_dunes_25":
... () |
436 |
if global.geno_complete[world_current] |
437 |
{ |
438 |
if ((world_current == 2 || world_current == 3) && bgm == 154) |
439 |
audio_sound_pitch(current_song, 1) |
440 |
else |
441 |
audio_sound_pitch(current_song, 0.25) |
442 |
} |
443 |
else if (global.route == 3) |
444 |
audio_sound_pitch(current_song, 0.5) |
445 |
if (room == rm_waterfall_og || room == rm_castle_throne_room || room == rm_hotland || room == rm_lava_tubes || room == rm_wildeast_cave || bgm == 609) |
446 |
audio_sound_pitch(current_song, 1) |