Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_late_audio_enemy_encounter

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

function scr_late_audio_enemy_encounter() //gml_Script_scr_late_audio_enemy_encounter { var game_mode = global.game_mode var battle_enemy_name = global.battle_enemy_name if (game_mode == "customs") { } else if (game_mode == "yellow") { if (battle_enemy_name == "martlet pacifist") { if (global.sound_carry_overworld == false) { scr_audio_stop_sound(0) audio_sound_gain(mus_martletbattle_yellow, 1, 0) audio_sound_pitch(mus_martletbattle_yellow, 1) audio_play_sound(mus_martletbattle_yellow, 20, true) } audio_extend = false } } }
() //gml_Script_scr_late_audio_enemy_encounter
2
{
3
    var game_mode = global.game_mode
4
    var battle_enemy_name = global.battle_enemy_name
5
    if (game_mode == "customs")
6
    {
7
    }
8
    else if (game_mode == "yellow")
9
    {
10
        if (battle_enemy_name == "martlet pacifist")
11
        {
12
            if (global.sound_carry_overworld == false)
13
            {
14
                scr_audio_stop_sound
scr_audio_stop_sound

function scr_audio_stop_sound(argument0) //gml_Script_scr_audio_stop_sound { audio_array_val = 0 sound_y[audio_array_val] = mus_apprehension_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_dalvbattle_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_dalvopening_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_dalvbattle_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_decibat_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_dalvopening_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_01_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_02_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_03_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_04_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_05_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_06_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_07_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_08_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_09_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_10_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_attack_finale_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_danza_battle_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_floweynew_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_funsized_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_genobattle_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_mart_geno_wind_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_martletbattle_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_nobodycame_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_occupied_turf_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_prebattle1_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_prebattle2_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_battle_snowdin audio_array_val += 1 sound_y[audio_array_val] = mus_trial_by_fury audio_array_val += 1 sound_y[audio_array_val] = mus_prebattle3_yellow audio_array_val += 1 sound_y[audio_array_val] = mus_heatwave_approaching for (i = 0; i < array_length_1d(sound_y); i += 1) { var audio_gain = audio_sound_get_gain(sound_y[i]) if (audio_gain <= argument0) audio_stop_sound(sound_y[i]) } }
(0)
15
                audio_sound_gain(mus_martletbattle_yellow, 1, 0)
16
                audio_sound_pitch(mus_martletbattle_yellow, 1)
17
                audio_play_sound(mus_martletbattle_yellow, 20, true)
18
            }
19
            audio_extend = false
20
        }
21
    }
22
}