Difference between revisions of "SetNthEffectItemArea"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
(Added obse link)
imported>DragoonWraith
(EI)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
SetNthEffectItemArea - sets the area of the specified effect item


'''Syntax:'''
'''Syntax:'''
Line 7: Line 5:


  (nothing) SetNthEIArea nuArea:long magicItem:ref whichEffect:short
  (nothing) SetNthEIArea nuArea:long magicItem:ref whichEffect:short
Sets the area of the specified effect item.


==Notes==
==Notes==
Line 20: Line 20:
[[Category:Magic Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions - Effect Item (OBSE)]]

Latest revision as of 19:41, 1 March 2008

A command for Oblivion Script Extender

Syntax:

(nothing) SetNthEffectItemArea nuArea:long magicItem:ref whichEffect:short
(nothing) SetNthEIArea nuArea:long magicItem:ref whichEffect:short

Sets the area of the specified effect item.

Notes[edit | edit source]

  • You can set the area of any magic item, even if it normally doesn't have a area and it's grayed out in the CS. This won't do anything or even appear in-game, but you can retrieve it with GetNthEffectItemArea, making it a good way to store integer data.
  • (Unconfirmed, but likely) Using this function on a non-cloned spell (any spells from Oblivion.esm or mods) will change the duration of the spell, but only until the player re-loads their game. The most likely explanation is that Oblivion retrieves the spell's data from the mod/Oblivion.esm when loading, while cloned spells' data come from the save file itself.

See Also[edit | edit source]