Difference between revisions of "Talk:SetEnchantment"

815 bytes added ,  00:18, 29 September 2011
no edit summary
imported>Jaquet.p
imported>Lanceor
Line 52: Line 52:


end
end
==Tests on usage of this function==
I've been (trying to) use this function extensively and noticed that there seems to be some limitations that may cause grief for modders.
*If an item is already equipped when its enchantment is changed, the new enchantment will only affect the actor after the item is unequipped and then re-equipped (according to the magic effects page in the journal).
*Changes to enchantments are not saved. Any items modified with this function will revert to their default enchantment on loading a saved game
The workaround seems to be a clunky un-equip and re-equip whenever the enchantment is changed. An object or quest script may be needed to check for a "wrong" enchantment on reloading a saved game and then force a re-equip.
[[User:Lanceor|Lanceor]] 01:18, 29 September 2011 (EDT)
Anonymous user