Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_jail_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
var dynamic_mus = audio_play_sound(mus_the_wild_east_jail, 1, 1)
9
var dynamic_mus_pos = audio_sound_get_track_position(obj_radio.current_song)
10
audio_sound_set_track_position(dynamic_mus, dynamic_mus_pos)
11
audio_sound_gain(dynamic_mus, 0, 0)
12
audio_sound_gain(dynamic_mus, 1, 300)
13
audio_sound_gain(obj_radio.current_song, 0, 600)