0 of 0

File information

Last updated

Original upload

Created by

osirisofinternet

Uploaded by

osirisofinternet

Virus scan

Safe to use

About this mod

(Somehow still necessary on Patch 8) If playing with Honor Mode Ruleset, killing the Owlbear Mother before the Mate will cause the Cub to remain in combat. This ensures that the appropriate flag is tripped in that scenario, allowing you to progress with the Cub's storyline. Safe to remove at any point.

Requirements
Permissions and credits
Changelogs
What this mod does:
Ext.Osiris.RegisterListener("LevelGameplayStarted", 2, "after", function(_, _)
    local mom = "e903a41f-8ef7-46dc-a847-7d0ec2804d08"
    -- Extra safeguards just in case
    if Osi.Exists(mom) == 1 and Osi.IsDead(mom) == 0 then
        -- When the Owlbear Mom leaves combat
        Ext.Entity.Get(mom):OnDestroy("IsInCombat", function(_)
            -- Ensuring combat didn't end for another reason
            if Osi.IsDead(mom) == 1 then
                for _, combatParticipant in pairs(Osi.DB_Is_InCombat:Get(nil, Osi.CombatGetGuidFor(Osi.GetHostCharacter()))) do
                    combatParticipant = combatParticipant[1]

                    -- The dad gets a randomly generated EntityUUID, so we can't hardcode him like the mom and cub
                    if Osi.GetTemplate(combatParticipant) == "Owlbear_Dad_7a87360f-6a37-4b66-96c8-446390f3c7b3" then
                        -- When the Dad leaves combat
                        Ext.Entity.Get(combatParticipant):OnDestroy("IsInCombat", function(dad)
                            -- Make sure party didn't escape after killing just the mom
                            if Osi.IsDead(dad.Uuid.EntityUuid) == 1 and Osi.IsInCombat("c66b2865-6613-4372-b97a-e330c1d75d09") == 1 then
                                Osi.PROC_FOR_OwlBearCub_LastCubLeaveCombat("c66b2865-6613-4372-b97a-e330c1d75d09")
                            end
                        end)
                    end
                end
            end
        end)
    end
end)

Yup. That's it. Safe to remove at any point.


Requested by @BaldursGoonsack for his excellent collection, Difficulty, Immersion, and Quality - check it out!

My Other Mods
Sensible Ambushing - Stealth Combat Overhaul
The Armory (Auto Transmog Vanity Outfit Manager)
Attunement (And Rarity Limits)
Automatic Inventory Manager (AIM)
Experience Spider - Report Generator
Grit and Glory - Injuries Exhaustion and Madness - MCM