Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_hitbox_parent_Collision_obj_battle_enemy_attack_green_parent

(view raw script w/o annotations or w/e)
1
collide_id = other.id
2
with (obj_heart_battle_fighting_parent)
3
{
4
    collide_id = obj_heart_hitbox_parent.collide_id
5
    damage_number = collide_id.damage_number
6
}
7
if ((!instance_exists(obj_dialogue_box_battle_transformation_any)) || other.depth < obj_dialogue_box_battle_transformation_any.depth)
8
    heal = true
9
else
10
    heal = false
11
event_user(2)