SetEnchantment

Revision as of 01:19, 29 September 2011 by imported>Lanceor (→‎Notes)

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