Some script questions.

Post » Tue Dec 04, 2012 11:40 pm

Hi,

Some, hopefully, simple questions:

1. Is it possible to change the keywords of an item in-game from within a script?
2. Is it possible to change the appearance of an item in-game from within a script?
3. Is it possible to duplicate an item in-game from within a script in a way similar to how an item can be duplicated in the Creation Kit?
4. I have this simple script I've made (sorry, indentation is lost somehow). Is it possible to get a reference to the item that this script is attached to directly? Currently I'm using a property for this:

Scriptname ThorhamsCloneArmor extends ObjectReferenceArmor Property clone Autoint Property slotmask AutoArmor itemEvent OnUnEquipped(Actor akActor)If (akActor == Game.GetPlayer())item = akActor.GetWornForm(slotmask) as Armorif (item)akActor.ModActorValue("CarryWeight", -clone.GetWeight())clone.SetArmorRating(item.GetArmorRating())clone.SetWeightClass(item.GetWeightClass())clone.SetWeight(item.GetWeight())clone.SetEnchantment(item.GetEnchantment())clone.SetName("clone "+item.GetName())clone.SetSlotMask(item.GetSlotMask())akActor.ModActorValue("CarryWeight", item.GetWeight())endifendifEndEvent

Any help is much appreciated :thumbsup:
User avatar
naome duncan
 
Posts: 3459
Joined: Tue Feb 06, 2007 12:36 am

Return to V - Skyrim