Difference between revisions of "CopyNthEffectItem"
Jump to navigation
Jump to search
imported>Haama (Notes on breaking display limitations, magic items) |
imported>DragoonWraith (note on hostility, See Also SetSpellHostile) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | |||
'''Syntax:''' | |||
(index:short) CopyNthEffectItem fromObjectID:ref toObjectID:ref whichEffect:short | |||
Copies the specified effect item from one magic item to another. | |||
==Notes== | ==Notes== | ||
Line 9: | Line 13: | ||
*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== | ||
* [[CopyAllEffectItems]] | * [[CopyAllEffectItems]] | ||
* [[SetSpellHostile]] | |||
[[Category:Functions]] | [[Category:Functions]] | ||
Line 17: | Line 23: | ||
[[Category:Magic Functions]] | [[Category:Magic Functions]] | ||
[[Category:Magic Functions (OBSE)]] | [[Category:Magic Functions (OBSE)]] | ||
[[Category:Magic Functions - Effect Item (OBSE)]] |
Latest revision as of 10:44, 27 May 2008
A command for Oblivion Script Extender
Syntax:
(index:short) CopyNthEffectItem fromObjectID:ref toObjectID:ref whichEffect:short
Copies the specified effect item 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
- Effects will be added to copied-to magic item, even if that effect is 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).
- 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.