GetNthActiveEffectCode
Revision as of 00:00, 26 November 2007 by imported>Haama (Fixed example)
A command for Oblivion Script Extender
Syntax:
(effectCode:long) reference.GetNthActiveEffectCode whichEffect:long (effectCode:long) reference.GetNthAECode whichEffect:long
Returns the effect of the Nth Active Effect on the reference.
Example
long EffectCode set EffectCode to (player.GetNthActiveEffectCode 0)
If the player currently has the effects Shield, Restore Health, and Shield, in that order, this will return the code for Shield (code for Restore Health if whichEffect is 1, and code for Shield if whichEffect is 2).