Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_if_in_battle_box

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

function scr_determine_if_in_battle_box() //gml_Script_scr_determine_if_in_battle_box { if (bbox_top > (obj_dialogue_box_battle_transformation_any.bbox_top + 5) && bbox_bottom < (obj_dialogue_box_battle_transformation_any.bbox_bottom - 5) && bbox_left > (obj_dialogue_box_battle_transformation_any.bbox_left + 5) && bbox_right < (obj_dialogue_box_battle_transformation_any.bbox_right + 5)) return true; else return false; }
() //gml_Script_scr_determine_if_in_battle_box
2
{
3
    if (bbox_top > (obj_dialogue_box_battle_transformation_any.bbox_top + 5) && bbox_bottom < (obj_dialogue_box_battle_transformation_any.bbox_bottom - 5) && bbox_left > (obj_dialogue_box_battle_transformation_any.bbox_left + 5) && bbox_right < (obj_dialogue_box_battle_transformation_any.bbox_right + 5))
4
        return true;
5
    else
6
        return false;
7
}