Test Function for printing info to log. (Uses another Function I wrote called print which allows me to prefix lines and indent based on the int passed in.)
Function Armor_Addon_Info(Armor _armor_) Int Num = _armor_.GetNumArmorAddons() Int Index = 0 ArmorAddon AA String AAMP_M_FP String AAMP_F_FP String AAMP_M String AAMP_F Race AARace int RNum int Rdex String Races While Index < Num AA = _armor_.GetNthArmorAddon(Index) AAMP_M_FP = AA.GetModelPath(true,false) AAMP_F_FP = AA.GetModelPath(true,true) AAMP_M = AA.GetModelPath(false,false) AAMP_F = AA.GetModelPath(false,true) int AAslotmask = AA.GetSlotMask() RNum = AA.GetNumAdditionalRaces() Rdex = 0 Races = "" While Rdex < RNum Races += "" + AA.GetNthAdditionalRace(Rdex) + ", " Rdex += 1 Endwhile Print("Armor Addon: " + AA, 3) Print("Male First Person: " + AAMP_M_FP, 4) Print("Female First Person: " + AAMP_F_FP, 4) Print("Male: " + AAMP_M, 4) Print("Female: " + AAMP_M, 4) Print("Races: " + Races, 4) Slot_Mask_Info(AAslotmask, 1) Index += 1 EndWhileEndFunction
This is the output for Forsworn Headdress:
[04/24/2014 - 09:59:17PM] [t] (TZ) Item: Forsworn Headdress ID: 888146[Armor < (000D8D52)>]
[04/24/2014 - 09:59:17PM] [t] (TZ) TypeCode: 26--Armor
[04/24/2014 - 09:59:18PM] [t] (TZ) Slots: (42) circlet, (31) hair, [0]
[04/24/2014 - 09:59:18PM] [t] (TZ) AR: 12 Weight Class: Light
[04/24/2014 - 09:59:18PM] [t] (TZ) Model Path (Male:) Clothes\ForswornArmor\ForswornHelmetGO.nif (Female:)
[04/24/2014 - 09:59:18PM] [t] (TZ) Keywords: 4
[04/24/2014 - 09:59:18PM] [t] (TZ) (0) ArmorLight
[04/24/2014 - 09:59:18PM] [t] (TZ) (1) ArmorMaterialForsworn
[04/24/2014 - 09:59:18PM] [t] (TZ) (2) ArmorHelmet
[04/24/2014 - 09:59:18PM] [t] (TZ) (3) VendorItemArmor
[04/24/2014 - 09:59:18PM] [t] (TZ) Armor Addon: [ArmorAddon < (000D8D51)>]
[04/24/2014 - 09:59:18PM] [t] (TZ) Male First Person:
[04/24/2014 - 09:59:18PM] [t] (TZ) Female First Person:
[04/24/2014 - 09:59:18PM] [t] (TZ) Male: Clothes\ForswornArmor\ForswornHelmet_1.nif
[04/24/2014 - 09:59:18PM] [t] (TZ) Female: Clothes\ForswornArmor\ForswornHelmet_1.nif
[04/24/2014 - 09:59:18PM] [t] (TZ) Races: [Race
[04/24/2014 - 09:59:18PM] [t] (TZ) Slots: (43) ears, (41) long hair, (31) hair, [0]
[04/24/2014 - 09:59:18PM] [t] (TZ) Armor Addon: [ArmorAddon < (000F44C3)>]
[04/24/2014 - 09:59:18PM] [t] (TZ) Male First Person:
[04/24/2014 - 09:59:18PM] [t] (TZ) Female First Person:
[04/24/2014 - 09:59:18PM] [t] (TZ) Male: Clothes\ForswornArmor\ForswornHelmet_Khaj_1.nif
[04/24/2014 - 09:59:18PM] [t] (TZ) Female: Clothes\ForswornArmor\ForswornHelmet_Khaj_1.nif
[04/24/2014 - 09:59:18PM] [t] (TZ) Races: [Race
[04/24/2014 - 09:59:18PM] [t] (TZ) Slots: (41) long hair, (31) hair, [0]
[04/24/2014 - 09:59:18PM] [t] (TZ) Armor Addon: [ArmorAddon < (000F44C5)>]
[04/24/2014 - 09:59:18PM] [t] (TZ) Male First Person:
[04/24/2014 - 09:59:18PM] [t] (TZ) Female First Person:
[04/24/2014 - 09:59:18PM] [t] (TZ) Male: Clothes\ForswornArmor\ForswornHelmet_Arg_1.nif
[04/24/2014 - 09:59:18PM] [t] (TZ) Female: Clothes\ForswornArmor\ForswornHelmet_Arg_1.nif
[04/24/2014 - 09:59:18PM] [t] (TZ) Races: [Race
[04/24/2014 - 09:59:18PM] [t] (TZ) Slots: (41) long hair, (31) hair, [0]
The issue stands that we cannot attach Armor Addons with scripting in run time. But these are outlying cases and will not be the norm. I think the easiest solution is to solve for player race. For example, if the player where a Khajiit in the case of the Forsworn Headdress simply make the cloned armor for the Khajiit. I intend for Hallowed Items to have no value and no vendor keywords.