Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_hitbox_parent_Collision_obj_battle_enemy_attack_blue_parent

(view raw script w/o annotations or w/e)
1
if (obj_heart_battle_fighting_parent.vulnerable == true && (obj_heart_battle_fighting_parent.hsp != 0 || obj_heart_battle_fighting_parent.vsp != 0))
2
{
3
    collide_id = other.id
4
    with (obj_heart_battle_fighting_parent)
5
    {
6
        collide_id = obj_heart_hitbox_parent.collide_id
7
        damage_number = collide_id.damage_number
8
    }
9
    if ((!instance_exists(obj_dialogue_box_battle_transformation_any)) || other.depth < obj_dialogue_box_battle_transformation_any.depth)
10
        hit = true
11
    else
12
        hit = false
13
}
14
else
15
    hit = false
16
event_user(1)