Difference between revisions of "GetScriptActiveEffectIndex"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Created)
 
imported>DragoonWraith
(AE)
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:
end</pre>
end</pre>
Returns, to pMagicItem, the Magic Item that the scripted effect came from.
Returns, to pMagicItem, the Magic Item that the scripted effect came from.
==Notes==
*While counted separately, if there are multiple scripted effects with the same script generally only the first one's data (i.e., Magic Item Index, Caster) will be returned (i.e., GetNthActiveEffectMagicItemIndex, GetNthActiveEffectCaster).


==See Also==
==See Also==
Line 32: Line 35:
[[Category:Magic Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions - Active Effect (OBSE)]]

Latest revision as of 19:49, 1 March 2008

A command for Oblivion Script Extender

Syntax:

(index:long) GetScriptActiveEffectIndex

Returns the index of the corresponding Active Effect for the running script effect reference.

Example

short EffectIndex
ref pMagicItem

begin ScriptEffectStart
  set EffectIndex to GetScriptActiveEffectIndex
  set pMagicItem to (GetNthActiveEffectMagicItem EffectIndex)
end

Returns, to pMagicItem, the Magic Item that the scripted effect came from.

Notes[edit | edit source]

  • While counted separately, if there are multiple scripted effects with the same script generally only the first one's data (i.e., Magic Item Index, Caster) will be returned (i.e., GetNthActiveEffectMagicItemIndex, GetNthActiveEffectCaster).

See Also[edit | edit source]