Difference between revisions of "GetActiveEffectCount"

Jump to navigation Jump to search
13 bytes added ,  22:58, 25 November 2007
Fixed example
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 3 ('''Shield''', '''Restore Health''', '''Drain Health''')
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==
Anonymous user

Navigation menu