Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_dunebud_duo

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

function scr_enemy_timer_attacks_dunebud_duo() //gml_Script_scr_enemy_timer_attacks_dunebud_duo { var enemy_attack = global.enemy_attack if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true) { if (enemy_attack == "Dunebud Chase Tumbleweeds" && (!instance_exists(obj_battle_enemy_attack_dunebud_chase_tumbleweeds_controller))) instance_create(0, 0, obj_battle_enemy_attack_dunebud_chase_tumbleweeds_controller) else if (enemy_attack == "Dunebud Double Chase" && (!instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_bucket)) && (!instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_sandcastle))) { var script_tgt = obj_dialogue_box_battle_transformation_any scr_create_attack_boundary((script_tgt.bbox_left + 5), (script_tgt.bbox_top + 5), (script_tgt.sprite_width - 10), (script_tgt.sprite_height - 10), 20, 0) instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_top - 20), obj_battle_enemy_attack_dunebud_sandcastle_bucket) } else if (enemy_attack == "Dunebud Chase" || enemy_attack == "Dunebud Sandcastle" || enemy_attack == "Dunebud Tumbleweeds") script_execute(gml_Script_scr_enemy_timer_attacks_dunebud_solo) } }
() //gml_Script_scr_enemy_timer_attacks_dunebud_duo
2
{
3
    var enemy_attack = global.enemy_attack
4
    if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
5
    {
6
        if (enemy_attack == "Dunebud Chase Tumbleweeds" && (!instance_exists(obj_battle_enemy_attack_dunebud_chase_tumbleweeds_controller)))
7
            instance_create(0, 0, obj_battle_enemy_attack_dunebud_chase_tumbleweeds_controller)
8
        else if (enemy_attack == "Dunebud Double Chase" && (!instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_bucket)) && (!instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_sandcastle)))
9
        {
10
            var script_tgt = obj_dialogue_box_battle_transformation_any
11
            scr_create_attack_boundary
scr_create_attack_boundary

function scr_create_attack_boundary(argument0, argument1, argument2, argument3, argument4, argument5) //gml_Script_scr_create_attack_boundary { instance_create(0, 0, obj_attack_boundary_creator) obj_attack_boundary_creator.create_x = argument0 obj_attack_boundary_creator.create_y = argument1 obj_attack_boundary_creator.width = argument2 obj_attack_boundary_creator.height = argument3 obj_attack_boundary_creator.thickness = argument4 obj_attack_boundary_creator.unique_id = argument5 with (obj_attack_boundary_creator) event_user(0) }
((script_tgt.bbox_left + 5), (script_tgt.bbox_top + 5), (script_tgt.sprite_width - 10), (script_tgt.sprite_height - 10), 20, 0)
12
            instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_top - 20), obj_battle_enemy_attack_dunebud_sandcastle_bucket)
13
        }
14
        else if (enemy_attack == "Dunebud Chase" || enemy_attack == "Dunebud Sandcastle" || enemy_attack == "Dunebud Tumbleweeds")
15
            script_execute(gml_Script_scr_enemy_timer_attacks_dunebud_solo)
16
    }
17
}