Difference between revisions of "SetEnchantment"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
m (Reverted edits by Lowtime (Talk); changed back to last version by DragoonWraith)
imported>Lanceor
Line 7: Line 7:
   
   
==Notes==
==Notes==
*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.
*Changes to enchantments are not saved. Any items modified with this function will revert to their default enchantment on loading a saved game.
*Doesn't work on arrows.
*Doesn't work on arrows.



Revision as of 00:19, 29 September 2011

A command for Oblivion Script Extender

Syntax:

(oldEnchantment:ref) reference.SetEnchantment nuEnchantment:ref objectID:ref

Sets the specific enchantment on the object and returns any previous enchantment.

Notes

  • 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.
  • Changes to enchantments are not saved. Any items modified with this function will revert to their default enchantment on loading a saved game.
  • Doesn't work on arrows.

See Also