Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_metal_sounds_Step_0

(view raw script w/o annotations or w/e)
1
if (irandom(sound_probability) == 1)
2
{
3
    var sound_to_play = choose(322, 323, 324);
4
    while (sound_to_play == sound_last)
5
        sound_to_play = choose(322, 323, 324);
6
    audio_sound_gain(sound_to_play, 0.05, 0);
7
    audio_sound_pitch(sound_to_play, 0.45);
8
    audio_play_sound(sound_to_play, 1, 0);
9
    sound_last = sound_to_play;
10
    sound_probability = 800;
11
}
12
if (sound_probability > 350)
13
    sound_probability--;