Difference between revisions of "Talk:SetEnchantment"

Jump to navigation Jump to search
1,361 bytes added ,  12:11, 29 September 2011
imported>Lanceor
imported>DragoonWraith
Line 61: Line 61:
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.
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)
[[User:Lanceor|Lanceor]] 01:18, 29 September 2011 (EDT)
:On the first, thanks, that's good (frustrating) to know. A fair few things work that way, but I didn't realize this was one. Do weapons update immediately? Seem like they would (which helps because you can't un/re-equip weapons as easily due to sheathing/unsheathing issues).
:On the second, that's actually because of how this function works. It changes the base object, rather than an individual instance. A lot of OBSE functions do that. The thing is, vanilla Oblivion functions never did that, and so Bethesda doesn't have Oblivion save those things. However, if a form is a part of the savefile ''anyway'' (a so-called dynamic form, such as player-made potions and enchantments, or more usefully, things made with [[CloneForm]]), then the changes ''do'' save. So the answer to the second issue is to use CloneForm before making those changes (which is usually a good idea anyway, to avoid changing every instance of the object).
:That issue is known, but it's a difficult thing to teach people on the Wiki because it applies to so many functions; it's hard to say where that info should go...
:[[User:DragoonWraith|<span style="font-family: Oblivion; size=2;">D</span>ragoon <span style="font-family: Oblivion; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion; size=2;">TALK</span>]] 13:11, 29 September 2011 (EDT)

Navigation menu