Difference between revisions of "GetActiveEffectCount"
Jump to navigation
Jump to search
imported>Haama (Created) |
imported>Haama (Fixed example) |
||
Line 9: | Line 9: | ||
short NumEffects | short NumEffects | ||
set NumEffects to player.GetActiveEffectCount | set NumEffects to player.GetActiveEffectCount | ||
If the player currently has 1 potion with '''Shield''' and '''Restore Health''', another potion with '''Restore Health''', and a spell with '''Shield''' and '''Drain Health''' this will return | If the player currently has 1 potion with '''Shield''' and '''Restore Health''', another potion with '''Restore Health''', and a spell with '''Shield''' and '''Drain Health''' this will return 5 (2 '''Shield'''s, 2 '''Restore Health'''s, and 1 '''Drain Health'''). | ||
==See Also== | ==See Also== |
Revision as of 22:58, 25 November 2007
A command for Oblivion Script Extender
Syntax:
(count:long) reference.GetActiveEffectCount
Returns the number of Active Effects on the reference.
Example
short NumEffects set NumEffects to player.GetActiveEffectCount
If the player currently has 1 potion with Shield and Restore Health, another potion with Restore Health, and a spell with Shield and Drain Health this will return 5 (2 Shields, 2 Restore Healths, and 1 Drain Health).