About this mod
OBSE framework for dynamically distributing items, spells, factions, and AI packages on the fly during runtime.
- Requirements
- Permissions and credits
- Changelogs
- Donations
Inspired by Spell Perk Item Distributor by po3 for Skyrim, this mod was built upon my other po3 port (Base Object Swapper), and uses similar syntax. Using SFID you can distribute Items, Leveled Items, Spells, Leveled Spells, Factions, and AI Packages to any NPC dynamically at runtime without the need for .esp patches or record conflicts.
Source
With this mod, you could...
- assign items to NPCs without an .esp
- distribute mod added spells or items to increase enemy variety
- Add factions to NPCs to function similar to Skyrim's Keywords
- Add factions to NPCs to include or exclude dialogue topics
- Add AI Packages to NPC to increase schedule immersion
How to Use
Similar to BOS, SFID loads config files from Data/SpellFactionItemDistributor that are in a familiar format:
[FormType|PatternToLookFor]
NPCToAddTo|FormToAdd|amount(x)
Here are some explanations:
- FormType - The type of form you want to add. Currently SFID supports
- Items - any non-equippable item (supports Leveled Lists)
- Equippables - any item that can be equipped (supports Leveled Lists)
- Spells - any kind of spell (supports Leveled Lists)
- Factions - Any faction
- Packages - any AI package
- PatternToLookFor - A word or part of a word to compare against when deciding what NPCs to distribute to. SFID currently checks an NPC's formID (both base and reference), editorID, current cell name, and the NPC's race. Future plans include more pattern matching support like Factions. A hyphen/minus sign will do the opposite and apply to every NPC except those that match the pattern.
- NPCToAddTo - Either a specific NPC's formID (both baseID and refID work), or the word ALL. ALL will distrubte to any and all NPCs that match the pattern.
- FormToAdd - the formID of the object you want to distribute that matches the FormType.
- Amount - only used for items; how many of the item you want to add
NOTE: when using formIDs, the first two digits (the load order prefix) is not needed. You can cut these out and simply put 0x + the last 6 digits + ~TheModFilenameHere.esp. See examples below.
Examples
Adds 500 gold to any NPC who matches the ICTalosPlaza pattern, distributing to all NPCs in that district
[Items|ICTalosPlaza]
ALL|0xF~Oblivion.esm|amount(500)
Adds a Daedric Longsword to any Dremora NPC
[Items|Dremora]
ALL|0x35E76~Oblivion.esm|amount(1)
Puts Glarthir (by reference) into the Mages' Guild faction.
[Factions]
0x294C8~Oblivion.esm|0x22296~Oblivion.esm
Adds an item from the ArenaBlueArmor Leveled List to every NPC except those already in the Arena faction.
[Equippables|-ArenaCombatants]
ALL|0x2ACD5|amount(1)
I hope these examples give you some idea of the possible uses for this mod and I looked forward to seeing what you guys can come up with!
SFIDCache.txt
Because Oblivion stores inventory and item changes, when SFID distributes any item to an NPC the NPCs referenceID is written to a file called SFIDCache.txt in the root Oblivion folder (next to Oblivion.exe). This prevents the same NPC from receiving duplicate items every time the game is launched. If an NPC is listed in this file, IT WILL NOT BE GIVEN ITEMS AGAIN! In the event you want to undo this, simply open the file in Notepad and remove the NPC's id. Or just delete the entire file to reset it.
Keep an eye out for my SFID Integrations, similar to my BOS Integrations!
Credits
llde and the xOBSE team
powerofThree for Spell Perk Item Distributor
Bethesda for Oblivion, which often gets neglected in favor of Skyrim or Morrowind. I hope that by continuing to put out mods for my favorite game, others can enjoy and do the same.