Once Collection is defined, it is available for all INI files.
Collections are added from all INI files at the beginning, after Filters, but before other sections.
Collection section syntax:[Collection.UniqueNameForCollection]
Filter=NameForDefinedFilter
FormType=NameForFormType
Keywords=Keyword1,Keyword2,-Keyword3
Exclude=Form1, Form2, etc
ExcludePlugin=Plugin1, Plugin2
Where:
- UniqueNameForCollection- must be unique. The name is used by other sections.
- Filter is name of previously defined Filter. To learn more about the filters, see this article. Optional. Can occur only once.
- FormType is the type of form that will be searched to find those forms that meet the keywords. Can be (case-insensitive): AlchemyItem, Ammo, Armor, Book, Ingredient, Key, Light, MagicEffect, Misc, Perk, Projectile, Scroll, SoulGem, Spell, Weapon. Mandatory. Can occur only once.
- Keywords is FormID~PluginName.esp or EditorID of keyword. Each Keywords group will add forms according to the keyword rules it defines. Combined by conjunction. This means that the form must contain all keywords without the minus sign and none with it. Mandatory. Can occur multiple times.
- Exclude causes the indicated forms to be skipped and not added to the collection. Optional. Can occur multiple times.
- ExcludePlugin causes skipping of forms that were changed by indicated plugin/plugins. It is irrelevant whether the indicated plugin is the last plugin making a change to forms. Optional. Can occur multiple times.
Examples:
[Collection.SimpleCollectionWeaponIron]
FormType=Weapon
Keywords=WeapMaterialIron
[Collection.AllJewelry]
Keywords=VendorItemJewelry
FormType=Armor
[Collection.SimpleCollectionWeaponIronNotSword]
FormType=Weapon
Keywords=WeapMaterialIron,-WeapTypeSword
[Collection.IronSwordVendor]
Filter=SkyrimExists
FormType=Weapon
Keywords=WeapMaterialIron,WeapTypeSword,VendorItemWeapon
[Collection.IronOrSwordOrVendor]
FormType=Weapon
Keywords=WeapMaterialIron
Keywords=WeapTypeSword
Keywords=VendorItemWeapon
[Collection.AllPotion]
Keywords=-VendorItemFood,-VendorItemFoodRaw
FormType=AlchemyItem
[Collection.AllOreIngots]
Keywords=VendorItemOreIngot
FormType=Misc
[Collection.AllGems]
Keywords=VendorItemGem
FormType=Misc
0 comments