function ADVR.onLoad() achievement.psvrID = 3 achievement.hideDescription = false achievement.unlocksItem = relics.WINGED_SHOE achievement.predecessors = {achievements.DEEP_CUT} achievement.priority = 0 That_was_close_start = false achievement.category = "combat" end function ADVR.onRoomEntered(room) if room.type == roomTypes.BOSS then if player.RealHealth == 1 then That_was_close_start = true end end end function ADVR.onEntityDeath(living, source) if living.IsBoss() then if player.RealHealth > 1 then That_was_close_start = false end if That_was_close_start then achievement.Unlock() end end end