| 1 | 
        function scr_generate_battle_dalvscr_generate_battle_dalvfunction  scr_generate_battle_dalv()
{
    if (live_call())
        return global.live_result;
    global.battle_enemy_name_1 = "dalv";
    global.battle_menu_number = 1;
    global.speed_self = 4;
    global.invulnerability_self = global.player_invulnerability;
    global.attacking_damage_cap = -1;
    global.hit_self = false;
    global.hurt_self = false;
    global.current_hp_enemy = 240;
    global.max_hp_enemy = 240;
    global.last_hp_enemy = global.current_hp_enemy;
    global.current_hp_enemy_draw = global.current_hp_enemy;
    global.enemy_low_hp = false;
    global.enemy_hit = false;
    global.enemy_hurt = false;
    global.enemy_attack_stat = 6;
    global.enemy_defense_stat = 4;
    global.enemy_vulnerable = true;
    global.enemy_attacking = false;
    global.enemy_sparing = false;
    global.enemy_dead = false;
    global.enemy_spared = false;
    global.enemy_betrayed = false;
    global.enemy_fleeable = false;
    global.enemy_special_text = 0;
    global.enemy_exp = 120;
    global.enemy_gold = 15;
    global.enemy_count = 1;
    global.turns_passed = 0;
    global.last_action_selected = "Nothing";
    global.action_1_important = false;
    global.action_2_important = false;
    global.action_1_color = 16777215;
    global.action_2_color = 65535;
    global.action_amount = 2;
    global.item_use = "Nothing";
    global.item_used = "Nothing";
    global.item_gift = "Nothing";
    global.item_gifted = "Nothing";
    global.image_alpha_enemy_attacking = 1;
    global.important_cutscene = false;
    global.can_attack = true;
    global.action_1_selected_count = 0;
    global.action_2_selected_count = 0;
    global.spare_selected_count = 0;
    global.hit_count = 0;
    global.miss_count = 0;
    global.no_hit_count = 0;
    global.hurt_self_count = 0;
    global.hurt_self_turn_count = 0;
    global.item_use_count = 0;
    global.item_gift_count = 0;
    if (global.route == 3 &&  global.flag[15 Decibat fate] != 1)
    {
        global.enemy_mode = 2;
        global.enemy_mode_previous = 2;
    }
    else if (global.route == 3 &&  global.flag[15 Decibat fate] == 1)
    {
        global.enemy_mode = 1;
        global.enemy_mode_previous = 1;
        global.route = 1;
        global.geno_complete[1] = false;
        global.kill_number[1] = 1;
    }
    else
    {
        global.enemy_mode = 0;
        global.enemy_mode_previous = 0;
    }
    global.enemy_mode_gen = 0;
    global.enemy_mode_gen_previous = 0;
    if (global.sound_carry_overworld == false)
    {
         scr_audio_stop_sound(0);
        audio_sound_gain(mus_dalvopening_yellow, 0.8, 0);
        audio_sound_pitch(mus_dalvopening_yellow, 1);
        audio_play_sound(mus_dalvopening_yellow, 20, false);
        audio_initial_music = 138;
        audio_extend_music = 136;
        audio_extend = true;
    }
    else
    {
        audio_extend = false;
    }
    global.sound_carry_battle = false;
    global.mettaton_voice_count = 1;
    instance_create(318, 238, obj_dalv_body);
    instance_create(320, 90, obj_dalv_head);
    global.enemy_target_x = obj_dalv_body.x;
    global.enemy_target_y = obj_dalv_body.y - 100;
    instance_create(0, 0, obj_battle_fade_in_screen);
    instance_create(275, 400, obj_battle_hp_current_self);
    instance_create(275, 400, obj_battle_hp_max_self);
    instance_create(275, 400, obj_battle_hp_cover_self);
    instance_create(0, 0, obj_text_battle_stat_name);
    instance_create(0, 0, obj_text_battle_stat_lv);
...  ()  | 
    
    
    
        | 2 | 
        { | 
    
    
    
        | 3 | 
            if (live_call())  | 
    
    
    
        | 4 | 
                return global.live_result;  | 
    
    
    
        | 5 | 
            global.battle_enemy_name_1 = "dalv";  | 
    
    
    
        | 6 | 
            global.battle_menu_number = 1;  | 
    
    
    
        | 7 | 
            global.speed_self = 4;  | 
    
    
    
        | 8 | 
            global.invulnerability_self = global.player_invulnerability;  | 
    
    
    
        | 9 | 
            global.attacking_damage_cap = -1;  | 
    
    
    
        | 10 | 
            global.hit_self = false;  | 
    
    
    
        | 11 | 
            global.hurt_self = false;  | 
    
    
    
        | 12 | 
            global.current_hp_enemy = 240;  | 
    
    
    
        | 13 | 
            global.max_hp_enemy = 240;  | 
    
    
    
        | 14 | 
            global.last_hp_enemy = global.current_hp_enemy;  | 
    
    
    
        | 15 | 
            global.current_hp_enemy_draw = global.current_hp_enemy;  | 
    
    
    
        | 16 | 
            global.enemy_low_hp = false;  | 
    
    
    
        | 17 | 
            global.enemy_hit = false;  | 
    
    
    
        | 18 | 
            global.enemy_hurt = false;  | 
    
    
    
        | 19 | 
            global.enemy_attack_stat = 6;  | 
    
    
    
        | 20 | 
            global.enemy_defense_stat = 4;  | 
    
    
    
        | 21 | 
            global.enemy_vulnerable = true;  | 
    
    
    
        | 22 | 
            global.enemy_attacking = false;  | 
    
    
    
        | 23 | 
            global.enemy_sparing = false;  | 
    
    
    
        | 24 | 
            global.enemy_dead = false;  | 
    
    
    
        | 25 | 
            global.enemy_spared = false;  | 
    
    
    
        | 26 | 
            global.enemy_betrayed = false;  | 
    
    
    
        | 27 | 
            global.enemy_fleeable = false;  | 
    
    
    
        | 28 | 
            global.enemy_special_text = 0;  | 
    
    
    
        | 29 | 
            global.enemy_exp = 120;  | 
    
    
    
        | 30 | 
            global.enemy_gold = 15;  | 
    
    
    
        | 31 | 
            global.enemy_count = 1;  | 
    
    
    
        | 32 | 
            global.turns_passed = 0;  | 
    
    
    
        | 33 | 
            global.last_action_selected = "Nothing";  | 
    
    
    
        | 34 | 
            global.action_1_important = false;  | 
    
    
    
        | 35 | 
            global.action_2_important = false;  | 
    
    
    
        | 36 | 
            global.action_1_color = 16777215;  | 
    
    
    
        | 37 | 
            global.action_2_color = 65535;  | 
    
    
    
        | 38 | 
            global.action_amount = 2;  | 
    
    
    
        | 39 | 
            global.item_use = "Nothing";  | 
    
    
    
        | 40 | 
            global.item_used = "Nothing";  | 
    
    
    
        | 41 | 
            global.item_gift = "Nothing";  | 
    
    
    
        | 42 | 
            global.item_gifted = "Nothing";  | 
    
    
    
        | 43 | 
            global.image_alpha_enemy_attacking = 1;  | 
    
    
    
        | 44 | 
            global.important_cutscene = false;  | 
    
    
    
        | 45 | 
            global.can_attack = true;  | 
    
    
    
        | 46 | 
            global.action_1_selected_count = 0;  | 
    
    
    
        | 47 | 
            global.action_2_selected_count = 0;  | 
    
    
    
        | 48 | 
            global.spare_selected_count = 0;  | 
    
    
    
        | 49 | 
            global.hit_count = 0;  | 
    
    
    
        | 50 | 
            global.miss_count = 0;  | 
    
    
    
        | 51 | 
            global.no_hit_count = 0;  | 
    
    
    
        | 52 | 
            global.hurt_self_count = 0;  | 
    
    
    
        | 53 | 
            global.hurt_self_turn_count = 0;  | 
    
    
    
        | 54 | 
            global.item_use_count = 0;  | 
    
    
    
        | 55 | 
            global.item_gift_count = 0;  | 
    
    
    
        | 56 | 
            if (global.route == 3 && global.flag[15 Decibat fate] != 1)  | 
    
    
    
        | 57 | 
            { | 
    
    
    
        | 58 | 
                global.enemy_mode = 2;  | 
    
    
    
        | 59 | 
                global.enemy_mode_previous = 2;  | 
    
    
    
        | 60 | 
            }  | 
    
    
    
        | 61 | 
            else if (global.route == 3 && global.flag[15 Decibat fate] == 1)  | 
    
    
    
        | 62 | 
            { | 
    
    
    
        | 63 | 
                global.enemy_mode = 1;  | 
    
    
    
        | 64 | 
                global.enemy_mode_previous = 1;  | 
    
    
    
        | 65 | 
                global.route = 1;  | 
    
    
    
        | 66 | 
                global.geno_complete[1] = false;  | 
    
    
    
        | 67 | 
                global.kill_number[1] = 1;  | 
    
    
    
        | 68 | 
            }  | 
    
    
    
        | 69 | 
            else  | 
    
    
    
        | 70 | 
            { | 
    
    
    
        | 71 | 
                global.enemy_mode = 0;  | 
    
    
    
        | 72 | 
                global.enemy_mode_previous = 0;  | 
    
    
    
        | 73 | 
            }  | 
    
    
    
        | 74 | 
            global.enemy_mode_gen = 0;  | 
    
    
    
        | 75 | 
            global.enemy_mode_gen_previous = 0;  | 
    
    
    
        | 76 | 
            if (global.sound_carry_overworld == false)  | 
    
    
    
        | 77 | 
            { | 
    
    
    
        | 78 | 
                scr_audio_stop_soundscr_audio_stop_soundfunction  scr_audio_stop_sound(arg0)
{
    audio_array_val = 0;
    sound_y[audio_array_val] = 153;
    audio_array_val += 1;
    sound_y[audio_array_val] = 136;
    audio_array_val += 1;
    sound_y[audio_array_val] = 138;
    audio_array_val += 1;
    sound_y[audio_array_val] = 136;
    audio_array_val += 1;
    sound_y[audio_array_val] = 140;
    audio_array_val += 1;
    sound_y[audio_array_val] = 138;
    audio_array_val += 1;
    sound_y[audio_array_val] = 486;
    audio_array_val += 1;
    sound_y[audio_array_val] = 487;
    audio_array_val += 1;
    sound_y[audio_array_val] = 488;
    audio_array_val += 1;
    sound_y[audio_array_val] = 489;
    audio_array_val += 1;
    sound_y[audio_array_val] = 490;
    audio_array_val += 1;
    sound_y[audio_array_val] = 491;
    audio_array_val += 1;
    sound_y[audio_array_val] = 492;
    audio_array_val += 1;
    sound_y[audio_array_val] = 493;
    audio_array_val += 1;
    sound_y[audio_array_val] = 494;
    audio_array_val += 1;
    sound_y[audio_array_val] = 495;
    audio_array_val += 1;
    sound_y[audio_array_val] = 498;
    audio_array_val += 1;
    sound_y[audio_array_val] = 512;
    audio_array_val += 1;
    sound_y[audio_array_val] = 117;
    audio_array_val += 1;
    sound_y[audio_array_val] = 141;
    audio_array_val += 1;
    sound_y[audio_array_val] = 119;
    audio_array_val += 1;
    sound_y[audio_array_val] = 154;
    audio_array_val += 1;
    sound_y[audio_array_val] = 155;
    audio_array_val += 1;
    sound_y[audio_array_val] = 122;
    audio_array_val += 1;
    sound_y[audio_array_val] = 156;
    audio_array_val += 1;
    sound_y[audio_array_val] = 124;
    audio_array_val += 1;
    sound_y[audio_array_val] = 125;
    audio_array_val += 1;
    sound_y[audio_array_val] = 162;
    audio_array_val += 1;
    sound_y[audio_array_val] = 206;
    audio_array_val += 1;
    sound_y[audio_array_val] = 513;
    audio_array_val += 1;
    sound_y[audio_array_val] = 208;
    for (i = 0; i < array_length_1d(sound_y); i += 1)
    {
        var audio_gain = audio_sound_get_gain(sound_y[i]);
        if (audio_gain <= arg0)
            audio_stop_sound(sound_y[i]);
    }
}  (0);  | 
    
    
    
        | 79 | 
                audio_sound_gain(mus_dalvopening_yellow, 0.8, 0);  | 
    
    
    
        | 80 | 
                audio_sound_pitch(mus_dalvopening_yellow, 1);  | 
    
    
    
        | 81 | 
                audio_play_sound(mus_dalvopening_yellow, 20, false);  | 
    
    
    
        | 82 | 
                audio_initial_music = 138;  | 
    
    
    
        | 83 | 
                audio_extend_music = 136;  | 
    
    
    
        | 84 | 
                audio_extend = true;  | 
    
    
    
        | 85 | 
            }  | 
    
    
    
        | 86 | 
            else  | 
    
    
    
        | 87 | 
            { | 
    
    
    
        | 88 | 
                audio_extend = false;  | 
    
    
    
        | 89 | 
            }  | 
    
    
    
        | 90 | 
            global.sound_carry_battle = false;  | 
    
    
    
        | 91 | 
            global.mettaton_voice_count = 1;  | 
    
    
    
        | 92 | 
            instance_create(318, 238, obj_dalv_body);  | 
    
    
    
        | 93 | 
            instance_create(320, 90, obj_dalv_head);  | 
    
    
    
        | 94 | 
            global.enemy_target_x = obj_dalv_body.x;  | 
    
    
    
        | 95 | 
            global.enemy_target_y = obj_dalv_body.y - 100;  | 
    
    
    
        | 96 | 
            instance_create(0, 0, obj_battle_fade_in_screen);  | 
    
    
    
        | 97 | 
            instance_create(275, 400, obj_battle_hp_current_self);  | 
    
    
    
        | 98 | 
            instance_create(275, 400, obj_battle_hp_max_self);  | 
    
    
    
        | 99 | 
            instance_create(275, 400, obj_battle_hp_cover_self);  | 
    
    
    
        | 100 | 
            instance_create(0, 0, obj_text_battle_stat_name);  | 
    
    
    
        | 101 | 
            instance_create(0, 0, obj_text_battle_stat_lv);  | 
    
    
    
        | 102 | 
            instance_create(244, 405, obj_text_hp);  | 
    
    
    
        | 103 | 
            instance_create(0, 0, obj_text_hp_stat);  | 
    
    
    
        | 104 | 
            instance_create(0, 0, obj_background_boss_battle_1_yellow);  | 
    
    
    
        | 105 | 
            instance_create(32, 250, obj_dialogue_box_battle);  | 
    
    
    
        | 106 | 
            instance_create(31, 431, obj_fight);  | 
    
    
    
        | 107 | 
            instance_create(184, 431, obj_act);  | 
    
    
    
        | 108 | 
            instance_create(344, 431, obj_item);  | 
    
    
    
        | 109 | 
            instance_create(499, 431, obj_mercy);  | 
    
    
    
        | 110 | 
            global.last_text_move_select = 0;  | 
    
    
    
        | 111 | 
            global.soul_mode = "Red";  | 
    
    
    
        | 112 | 
            instance_create(obj_fight.x + 17, obj_fight.y + 23, obj_heart_battle_menu);  | 
    
    
    
        | 113 | 
            instance_create(0, 0, obj_dialogue_battle_move_select_intro);  | 
    
    
    
        | 114 | 
            global.boss_mini = false;  | 
    
    
    
        | 115 | 
            global.enemy_attack = "Dalv Start";  | 
    
    
    
        | 116 | 
        }  |