Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_fesityhouse_dynamic_music_Create_0

(view raw script w/o annotations or w/e)
1
if (global.route == 3 || (global.dunes_flag[20] == 9 && (global.dunes_flag[24] == 0 || global.dunes_flag[24] == 2)))
2
{
3
    instance_destroy()
4
    return;
5
}
6
if instance_exists(obj_audio_fade_helper)
7
    instance_destroy(obj_audio_fade_helper)
8
if (global.dunes_flag[20] != 5)
9
    var dynamic_mus = audio_play_sound(mus_the_wild_east_house, 1, 1)
10
else
11
    dynamic_mus = audio_play_sound(mus_the_wild_east_sleepy, 1, 1)
12
var dynamic_mus_pos = audio_sound_get_track_position(obj_radio.current_song)
13
audio_sound_set_track_position(dynamic_mus, dynamic_mus_pos)
14
audio_sound_gain(dynamic_mus, 0, 0)
15
audio_sound_gain(dynamic_mus, 1, 300)
16
audio_sound_gain(obj_radio.current_song, 0, 600)