Difference between revisions of "SetNthEffectItemRange"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Created)
 
imported>Haama
(Using template instead)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
SetNthEffectItemRange - sets the range of the specified effect item
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
        (nothing) SetNthEffectItemRange nuRange:short magicItem:ref whichEffect:short
 
        (nothing) SetNthEIRange nuRange:short magicItem:ref whichEffect:short
'''Syntax:'''
(nothing) SetNthEffectItemRange nuRange:short magicItem:ref whichEffect:short
 
(nothing) SetNthEIRange nuRange:short magicItem:ref whichEffect:short
 
Sets the range of the specified effect item.
 
{{OBSE Magic Range Codes}}


==Notes==
==Notes==
*Ranges
* If you set the range of a weapon enchantment item (which are always 1:Touch ranged in the CS) to 0:Self, the effect will apply as a Self-ranged effect, but will still be listed as 'On Strike' in the game UI.  The effect will still only trigger on a successful hit with the weapon, and will not work as a constant effect.
  0:    Self
  1:   Touch
  2:   Target


==See Also==
==See Also==
Line 16: 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 10:57, 27 March 2008

A command for Oblivion Script Extender

Syntax:

(nothing) SetNthEffectItemRange nuRange:short magicItem:ref whichEffect:short
(nothing) SetNthEIRange nuRange:short magicItem:ref whichEffect:short

Sets the range of the specified effect item.

Range Codes:
 0:    Self
 1:    Touch
 2:    Target


Notes[edit | edit source]

  • If you set the range of a weapon enchantment item (which are always 1:Touch ranged in the CS) to 0:Self, the effect will apply as a Self-ranged effect, but will still be listed as 'On Strike' in the game UI. The effect will still only trigger on a successful hit with the weapon, and will not work as a constant effect.

See Also[edit | edit source]

GetNthEffectItemRange