Requirements
SKSE64
Skyrim SE 1.5.97 / AE 1.6.1170 / AE 1.7.104+
meh's Address Library for SKSE Plugins
powerofthree's Tweaks
Description
SKSE utility plugin that allows modders to swap AnimObjects (the bread in the eating animation, the tankard in the drinking animation, the sword on the grindstone) with others, using config files.
With this mod, you could...
- add random variations for each animation (different loaves of bread, tankards of wine or ale).
- assign different models based on what's in your inventory (display ale tankard if you have ale).
and more!
How To Use
Distributed records should be written to an ini file containing the suffix "_ANIO", in the Data folder (for example, MyMod_ANIO.ini).
They should follow this general format:
[ANIO]
origID|swapID|chance
origID,orig2ID,orig3ID|swapID|chance
origID|swapID,swap2ID,swap3ID|chance
origID,orig2ID,orig3ID|swapID,swap2ID,swap3ID|chance
[ANIO|Conditions|Traits]
origID|swapID|chanceID can be either formID or editorID of the AnimObjectAnimObjectFormID~ModName.esp OR AnimObjectFormID OR AnimObjectEditorIDorig is the base AnimObject you're trying to replace (eg. AnimObjectBread).
swap is the replacement AnimObject you're replacing it with (eg. AnimObjectBaguette).
Multiple swaps
- origID|swapID,swap2ID - one of the swaps is picked at random each time the idle is played.
- origID,orig2ID|swapID - every AnimObject gets the same swap.
- origID,orig2ID|swapID,swap2ID - each AnimObject is paired with a different swap.
- Swap AnimObjects based on who is playing the animation and what they're carrying
- Conditional swaps take precedence over normal swaps
- Same format as SPID/BOS/KID filters, with pattern matching
- Keyword editorIDs
- Actorbase editorIDs (BalgruufTheGreater, Player)
- Cell editorIDs (WhiterunDragonsreach)
- Actor specific filters
List of valid filter types
Spoiler
FactionRace
Location
Spell
Formlist
Formlist filter checks if any of the forms in list matches these filters.
- ObjectEditorIDs
- Nif paths (MyMod\MySteelSword.nif)
Pattern Matching
Spoiler
Requirements [strings, formIDs] - require actor/inventory item to have ALL filters in the group, using + (eg. ActorTypeGhost+ActorTypeAnimal to get animal ghosts). Several groups can be listed with commas - the swap applies if ANY one group fully matches (eg. GuardFaction+SteelSword,BanditFaction+IronSword).Exclusions [strings, formIDs] - exclude actor/inventory items that have keyword/filters, using - (eg. -Serana). Exclusions also work inside groups (NordRace+-GuardFaction) and with wildcards (-*Bandit).
Wildcards [strings] : get all actor/inventory items that have keyword/editorID containing wildcard, using * (eg. *Iron to get Iron Sword/Iron Bow/Iron Cuirass).
Matches [strings, formIDs] - this is default setting. Actor/inventory item has to match with any filter.
These are evaluated in the following order :
1.Traits
2.Requirement groups (at least one must fully match)
3.Exclusions
4.Matches
5.Wildcards
- Gender : M/F
- Child : C
Traits can be negated (eg. -C to get all adult NPCs)
Leave as NONE if you have no traits
Chance
- Percentage chance to swap at all, on top of any random selection between multiple swaps
- chance(0.0 - 100.0)
- Default is 100
- chance(50) - fixed random chance per actor (persists across game sessions; a given actor will always swap this AnimObject or never will)
- chanceL(50) - fixed random chance based on the actor's location/cell (everyone in the same location will swap the same way)
- chanceR(50) - chance is rerolled each time the idle is played
- Optional RNG seed parameter to specifically control swap chance
- chance(0.0-100.0, 1234567)
[ANIO]
;Randomly swaps between Baguette, Bagel, Biscuit each time the idle is played
AnimObjectBread|AnimObjectBaguette,AnimObjectBagel,AnimObjectBiscuit
;50% of actors always use the baguette, the rest never do
;25% of the remaining actors use the bagel
AnimObjectBread|AnimObjectBaguette|chance(50)
AnimObjectBread|AnimObjectBagel|chance(25)
;50% chance, rerolled every time
AnimObjectBread|AnimObjectBiscuit|chanceR(50)
;everyone in the same inn/location gets the same bread
AnimObjectBread|AnimObjectRye|chanceL(50)
;each actor sticks with one of the three, instead of rerolling per idle
AnimObjectTankard|AnimObjectTankardAle,AnimObjectTankardWine,AnimObjectTankardMead|chance(100)Conflicts- Last loaded config wins (similar to BOS)
- Within one config, the first matching entry wins with entries evaluated top to bottom
- Conditional entries are checked before unconditional ones, in the same order
[ANIO]
;AnimObjectBread|AnimObjectBaguette
0x10FD02~Skyrim.esm|0x800~MyBreadMod.esp
OR
;0x10FD02~Skyrim.esm|0x800~MyBreadMod.esp
AnimObjectBread|AnimObjectBaguette;swap AnimObjectBread with AnimObjectDragonBread, just for the player
[ANIO|Player]
AnimObjectBread|AnimObjectDragonBread
;swap AnimObjectIronSword with AnimObjectSteelSword, if the actor has a steel sword OR a weapon with WeapTypeSteel keyword in their inventory
[ANIO|SteelSword,WeapTypeSteel]
AnimObjectIronSword|AnimObjectSteelSword
;swap AnimObjectIronSword with AnimObjectFlowerySteelSword if the actor is female AND has a steel sword in their inventory
[ANIO|SteelSword|F]
AnimObjectIronSword|AnimObjectFlowerySteelSword
;player must have the ebony sword AND an ebony ingot; everyone else just needs the sword
[ANIO|EbonySword+IngotEbony+Player]
AnimObjectIronSword|AnimObjectEbonySword
[ANIO|EbonySword,-Player]
AnimObjectIronSword|AnimObjectEbonySword
;Thalmor with glass weapons, or any Thalmor with elven weapons
[ANIO|ThalmorFaction+WeapMaterialGlass,ThalmorFaction+WeapMaterialElven]
AnimObjectIronSword|AnimObjectGlassSword,AnimObjectElvenSword
;anyone whose editorID doesn't contain Bandit
[ANIO|-*Bandit]
AnimObjectTankard|AnimObjectTankardCleanCheck po3_AnimObjectSwapper.log in My Documents/My Games/Skyrim Special Edition/SKSE, for more information about the processInstallation
- Install as normal with a mod manager.
Source
- Ryan (SniffleMan) for CommonLibSSE
- wSkeever and r/skyrimmods for help with testing





















































