Issue #29846: Morokei does not attack (with fixes)
This is a re-post of an issue from ~2012. However, unlike the post back then this one does include a potential solution. I'm in no way an expert with Papyrus & AI packages, so these changes would have to be reviewed. But if the USSEP team has any time to do so I will say that I tested extensively (probably died to the boss over a hundred times) and have had decent results.
Not sure if the linked issue thing works but the originally reported issue is here: 1451
In the Staff of Magnus quest, Morokei may sometimes do the following unexpectedly (I believe in both vanilla and modded environments):
Change the above fragment to the following:
Alias_Morokei.getActorReference().EnableAI(FALSE) Alias_MagicBarrier.getReference().playAnimation(barrierDownAnim) Alias_MagicBarrier.getReference().disable() Alias_Morokei.getActorReference().setGhost(FALSE) Alias_Morokei.getActorReference().setActorValue("aggression",3) Alias_Morokei.getActorReference().removeSpell(ghostAbility) Alias_Morokei.getActorReference().setNoFavorAllowed(FALSE) Alias_Morokei.getActorReference().setAlpha(1.0) Alias_Morokei.getActorReference().EnableAI(TRUE) Alias_Morokei.getActorReference().equipItem(MG07StaffofMagnus, FALSE, TRUE) Alias_Morokei.getActorReference().EvaluatePackage() Alias_Morokei.getActorReference().SetLookAt(Game.GetPlayer(), TRUE) Alias_Morokei.getActorReference().startCombat(game.getPlayer()) Alias_MagicBarrier.getReference().delete()
And finally disable "No Combat Alert" in the above package
What this does NOT fix
Without stealth modifying mods (like RAID), a high-sneak toon attacking from certain corners of the arena can probably take down the boss before he performs any attacks or completes detection. This is just a flaw in the base game that has been endlessly discussed. This boss fight - like many others - is better with stealth modifying mods because they make this scenario impossible without a huge perk investment.
If the player stands near the boss while the barrier is present, and strikes one of the thralls, the boss will squirm a bit and try to get out (to no avail, unless pathing really glitches out). I'm fairly sure this is a vanilla behavior and is unaffected by these changes.
In vanilla, dragon priest combat styles weigh heavily towards use of staves. Morokei has one, and it's not very good (low damage throughput). In vanilla he is likely going to be a trivialized boss in many play-throughs for this reason.
So this boss fight has a ton of issues; I don't think there's any one change that totally fixes the fight. To be clear, I have no idea what's going on under the hood when Morokei does the "I'm going to pretend I'm in combat, but not attack you" routine that was originally reported in '12. But just glancing at the fragment script and the associated package, I can venture some guesses below.
The unmodified script does a few things that seem to be screwed up:
So ignoring combat seems to be rooted in the script and the associated quest package. Specifically, the script does not refresh the actor's AI and sleeps at minimum 5 real-time seconds. The quest package also does not use the normal detection routines, which destroys the call to initiate combat if the player is far away or otherwise undetectable.
His use of 100% Staff of Magnus drain is just due to the equip call forcing it to remain equipped.
What is optional in the fix; Only one thing from my testing. I set the boss to frenzy-level aggression because it seemed more apt & loreful to me (the ghosts, while enthralled, are still his enemy). It also makes the fight more organic if the player decides to interrupt the ghosts, possibly from a distance. The boss will engage with them before going for the player.
Otherwise, it seems like to get the best results all the changes are needed. Hope this is of use to USSEP because this fight was a major disappointment before I made these tweaks I'm running with Skyrim Revamped and Know Your Enemy, so this boss is actually a total monstrosity when he aggros quickly, stays in combat and uses his full repertoire of spells. Apologies if the category is wrong, let me know if it should be under Skyrim SE instead of USSEP.
Screenshot 2021-03-21 004044_Morokei_Combat_Alert_Flag.png
Screenshot 2021-03-21 004319_quest_dunLabryinthian.png
Related Issues: 1451