Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_timer_attacks_penilla_solo

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

function scr_enemy_timer_attacks_penilla_solo() //gml_Script_scr_enemy_timer_attacks_penilla_solo { var enemy_attack = global.enemy_attack if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Penilla Drawing" && obj_heart_battle_fighting_parent.moveable == true && (!instance_exists(obj_battle_enemy_attack_penilla_pencil))) script_execute(gml_Script_scr_enemy_attack_penilla_drawing) else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Penilla Lines" && obj_heart_battle_fighting_parent.moveable == true && (!instance_exists(obj_battle_enemy_attack_penilla_lines_2))) { var warning_distance = 30 instance_create(253, 255, obj_dialogue_box_battle_transformation_any_mask_penilla_lines) 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), ((round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)) - warning_distance), obj_attack_warning_exclamation_mark) 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)) + warning_distance), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_attack_warning_exclamation_mark) 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), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_battle_enemy_attack_penilla_lines) 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), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_battle_enemy_attack_penilla_lines_2) } }
() //gml_Script_scr_enemy_timer_attacks_penilla_solo
2
{
3
    var enemy_attack = global.enemy_attack
4
    if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Penilla Drawing" && obj_heart_battle_fighting_parent.moveable == true && (!instance_exists(obj_battle_enemy_attack_penilla_pencil)))
5
        script_execute(gml_Script_scr_enemy_attack_penilla_drawing)
6
    else if (instance_exists(obj_dialogue_box_battle_transformation_any) && enemy_attack == "Penilla Lines" && obj_heart_battle_fighting_parent.moveable == true && (!instance_exists(obj_battle_enemy_attack_penilla_lines_2)))
7
    {
8
        var warning_distance = 30
9
        instance_create(253, 255, obj_dialogue_box_battle_transformation_any_mask_penilla_lines)
10
        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), ((round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)) - warning_distance), obj_attack_warning_exclamation_mark)
11
        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)) + warning_distance), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_attack_warning_exclamation_mark)
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), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_battle_enemy_attack_penilla_lines)
13
        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), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_battle_enemy_attack_penilla_lines_2)
14
    }
15
}