Difference between revisions of "GetNthActiveEffectCode"
Jump to navigation
Jump to search
imported>Haama (Created) |
imported>Haama (Fixed example) |
||
Line 10: | Line 10: | ||
long EffectCode | long EffectCode | ||
set EffectCode to (player.GetNthActiveEffectCode 0) | set EffectCode to (player.GetNthActiveEffectCode 0) | ||
If the player currently has the effects '''Shield''', '''Restore Health''', and ''' | 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). | ||
==See Also== | ==See Also== |
Revision as of 23:00, 25 November 2007
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).