GetScriptActiveEffectIndex

From the Oblivion ConstructionSet Wiki
Revision as of 02:24, 26 November 2007 by imported>Haama (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

See Also