Greetings, I've recently begun modding Skyrim and I'm still a little shaky on the new scripting language. I was just curious how I would now ask the game what the player has equipped in the way of 'armor'? The script I am working on runs after completion of the quest "Fit for a Jarl" and is supposed to exchange the player's "Radiant Raiment Fine Clothes" for the standard version.
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname TIF__000C7B03 Extends TopicInfo Hidden
;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
Game.GetPlayer().AddItem(LvlQuestReward01Small)
If Game.GetPlayer().GetEquipped(ClothesRadiantRaimentFineClothes01)
Game.GetPlayer().RemoveItem (ClothesRadiantRaimentFineClothes01, abSilent = true)
Game.GetPlayer().AddItem(ClothesFineClothes01, abSilent = true)
Game.GetPlayer().EquipItem(ClothesFineClothes01)
Else
Game.GetPlayer().RemoveItem(ClothesRadiantRaimentFineClothes01, abSilent = true)
Game.GetPlayer().AddItem(ClothesFineClothes01, abSilent = true)
EndIf
GetOwningQuest().Setstage(30)
;END CODE
EndFunction
;END FRAGMENT
;END FRAGMENT CODE - Do not edit anything between this and the begin comment
LeveledItem Property LvlQuestReward01Small Auto
Armor Property ClothesRadiantRaimentFineClothes01 Auto
Armor Property ClothesFineClothes01 Auto
MiscObject Property Gold001 Auto
However, the GetEquipped condition is apparently incorrect. What would be the correct way to state this then?