Difference between revisions of "CopyAllEffectItems"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
imported>DragoonWraith
(→‎See Also: RemoveAllEffectItems and SetSpellHostile)
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
Copies all effect items from one magic item to another.
Copies all effect items from one magic item to another.


==Notes==
== Notes ==
* Magic items include Potions, Ingredients, Spells and Enchantments. They do not include Sigil Stones or Soulgems. Also note that the Enchantment refers to the base enchantment. If the enchantment is on two items changing it on one item will change it on the other.
* Magic items include Potions, Ingredients, Spells and Enchantments. They do not include Sigil Stones or Soulgems. Also note that the Enchantment refers to the base enchantment. If the enchantment is on two items changing it on one item will change it on the other.
* Potions will only show up to 8 effects, but all of the effects will still apply when used, and can be accessed with any '''GetNthEffectItem...''' function.
* Potions will only show up to 8 effects, but all of the effects will still apply when used, and can be accessed with any '''GetNthEffectItem...''' function.
** Untested for other magic items
** Untested for other magic items
*The copied effects will be added to the original effects of the copied-to magic item, rather than replacing them.
* The copied effects will be added to the original effects of the copied-to magic item, rather than replacing them.
**This includes effects that are already on the magic item. For instance, if you copy a 'Restore Health' effect onto a magic item that already has a 'Restore Health' effect, the magic item will have both 'Restore Health' effects (with their respective potencies).
** This includes effects that are already on the magic item. For instance, if you copy a 'Restore Health' effect onto a magic item that already has a 'Restore Health' effect, the magic item will have both 'Restore Health' effects (with their respective potencies).
**If you want to replace the effects on the copied-to item, use [[RemoveAllEffectItems]] on the item first.
** If you want to replace the effects on the copied-to item, use [[RemoveAllEffectItems]] on the item first.
*When copying a scripted effect, the script, hostility flag, and school will copy, but not the visuals.
* When copying a scripted effect, the script, hostility flag, and school will copy, but not the visuals.
**Copied scripted effects are completely independent of the original scripted effect. Changing the values on one (script, hostility, etc.) will not affect the other.
** Copied scripted effects are completely independent of the original scripted effect. Changing the values on one (script, hostility, etc.) will not affect the other.
* Adding a hostile effect to a Spell which previously had none will not make the Spell hostile. Use [[SetSpellHostile]] to update the hostility.


==See Also==
==See Also==
* [[CopyNthEffectItem]]
* [[CopyNthEffectItem]]
* [[RemoveAllEffectItems]]
* [[SetSpellHostile]]


[[Category:Functions]]
[[Category:Functions]]
Line 23: Line 26:
[[Category:Magic Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions - Effect Item (OBSE)]]

Latest revision as of 11:40, 27 May 2008

A command for Oblivion Script Extender

Syntax:

(nothing) CopyAllEffectItems fromObjectID:ref toObjectId:ref

Copies all effect items from one magic item to another.

Notes[edit | edit source]

  • Magic items include Potions, Ingredients, Spells and Enchantments. They do not include Sigil Stones or Soulgems. Also note that the Enchantment refers to the base enchantment. If the enchantment is on two items changing it on one item will change it on the other.
  • Potions will only show up to 8 effects, but all of the effects will still apply when used, and can be accessed with any GetNthEffectItem... function.
    • Untested for other magic items
  • The copied effects will be added to the original effects of the copied-to magic item, rather than replacing them.
    • This includes effects that are already on the magic item. For instance, if you copy a 'Restore Health' effect onto a magic item that already has a 'Restore Health' effect, the magic item will have both 'Restore Health' effects (with their respective potencies).
    • If you want to replace the effects on the copied-to item, use RemoveAllEffectItems on the item first.
  • When copying a scripted effect, the script, hostility flag, and school will copy, but not the visuals.
    • Copied scripted effects are completely independent of the original scripted effect. Changing the values on one (script, hostility, etc.) will not affect the other.
  • Adding a hostile effect to a Spell which previously had none will not make the Spell hostile. Use SetSpellHostile to update the hostility.

See Also[edit | edit source]