Simulating unleveled random encounters vs. NPC leveled lists

Post » Thu Jun 19, 2014 4:13 am

What's the best way to script unleveled random encounters that draw from NPC leveled lists? For example, when wandering a Nord tomb interior cell, I'd like to create a random draugr encounter that doesn't require changes to the cell (no markers added, etc., everything is spawn on player). That's easy to do from the existing draugr leveled lists, but what if I want to have an unleveled encounter, where a low level character might run into a high level draugr, or a high level character might run into a mob of low level draugr?

Ideally, I'd like to create a range offset from the player's level. So if the player is, say, level 15, I'd like to randomly adjust that level between say -10 and +10, and send that adjusted level to the leveled list logic to get an NPC to spawn. Failing that, I'll take whatever the leveled list gives me and adjust after the fact, if that's possible. I suppose adjusting health, stamina, magicka up or down is always possible, but ideally I'd rather not have a Draugr Death Overlord appear that only has 10% of the player's health and magicka. That would be silly.

Does the iLevelMod parameter of PlaceActorAtMe help in any way? If I take whatever the leveled list provides and select a random modifier from 0 to 4, does that help? Is that even possible?

I want to avoid making changes to cells or leveled lists if possible. Just scripts that use what is already available and randomize the default leveling.

User avatar
mishionary
 
Posts: 3414
Joined: Tue Feb 20, 2007 6:19 am

Return to V - Skyrim