About this mod
A SKSE plugin that can be used to add spells/leveled spells/perks/items/leveled items/shouts to every NPC in the game, using config files.
- Requirements
- Permissions and credits
- Changelogs
Requirements
SKSE
Visual C++ Redistributable for Visual Studio 2019
Changelog
- 1.0 - backported SE version.
Description
A SKSE utility plugin that allows modders to add spells/perks/items/shouts/packages to every NPC actorbase in the game, at startup.
How To Use
Note: konkeranto has graciously made xEdit scripts that automate all of this, check it out here :
Spell Perk Item Distributor xEdit Scripts
Distributed records should be written to an ini file containing the suffix "_DISTR", in the Data folder (for example, MyMod_DISTR.ini).
They should follow this format:
Spell= FormID - esp/esm | string | filter formIDs | min/max actorLevel , skill(min/max) | gender | NONE | chance
Perk = FormID - esp/esm | string | filter formIDs | min/max actorLevel , skill(min/max) | gender | NONE | chance
Item = FormID - esp/esm | string | filter formIDs | min/max actorLevel , skill(min/max) | gender | itemCount | chance
Shout= FormID - esp/esm | string | filter formIDs | min/max actorLevel , skill(min/max) | gender | NONE | chance
LevSpell = FormID - esp/esm | string | filter formIDs | min/max actorLevel , skill(min/max) | gender | NONE | chance
- FormID is the FormID of the spell/perk/item with the first two load order digits removed (eg. 0x00012345)
- esp/esm is the name of the mod or base game esm containing the record (eg. Skyrim.esm or MyMod.esp)
Filtering
Filtering is done using keyword/name strings, faction/classes/combat styles/race formIDs, actor level and gender. FormIDs will override keywords. Filters that you're not using can be marked as NONE or left blank.
- String are either keyword strings (eg. ActorTypeNPC , ActorTypeCreature ), or actorbase names (Imperial Soldier, Delphine) . Multiple strings should be separated using a comma. All keyword strings and names (vanilla and modded) are supported.
- Filter formIDs are formIDs of factions/classes/combat styles/races/outfits (eg. 0x01012345). Load order digits must be present (ie. it'll work out of the box for vanilla records but modded ones should be specific to the user's own load order. Multiple entries should be separated using a comma.
- Actor Level is minimum/maximum actor level. Records will be distributed to NPCs with levels within this range.
- Skill Level (OneHanded, Lockpicking, ect) range from 0 - 17, followed by the min and max Skill Level required. Eg. for Destruction skill level 50 - 100, it's 14(50/100)
List of Skills
TwoHanded = 1
Marksman = 2
Block = 3
Smithing = 4
HeavyArmor = 5
LightArmor = 6
Pickpocket = 7
Lockpicking = 8
Sneak = 9
Alchemy = 10
Specchcraft = 11
Alteration = 12
Conjuration = 13
Destruction = 14
Illusion = 15
Restoration = 16
Enchanting = 17
- Gender - M/F or 0/1
- Chance - only works on non-unique actors. Value is from 0-100, default chance is 100 if left blank or NONE. Caution - NPCs may not have the same records they last did when starting a new play session!
Items
You can add almost any item, including but not limited to weapons, misc objects, armor, ingredients, potions, soul gems, actors....
NPCs that already have the same item (in the esp) will not be affected.
Leveled Items are included under Item.
- itemCount is the amount of items that should be added.
Examples
;this will add Flames to all female NPCs between actor levels 25 and 50
Spell = 0x00012FCD - Skyrim.esm | NONE | NONE | 25/50 | F
;this will add Flames to all male NPCs who have a minimum Destruction skill of 10
Spell = 0x00012FCD - Skyrim.esm | NONE | NONE | 14(10) | M
;this will add Unrelenting Force to all NPCs
Shout = 0x00013E07 - Skyrim.esm| ActorTypeNPC
Notes
Check po3_SpellPerkItemDistributor.log file in My Games/Skyrim/SKSE, for more information about the process, including how many NPCs the spells/perks/items were added to.
Installation
- Install as normal with a mod manager.
Credits
- himika for libSkyrim
- SimpleINI for INI code and directory access