Difference between revisions of "GetNthActiveEffectCode"

12 bytes removed ,  23:00, 25 November 2007
Fixed example
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 '''Drain Health''', in that order, this will return the code for '''Shield''' (code for '''Restore Health''' if whichEffect is 1, and code for '''Drain Health''' if whichEffect is 2).
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==
Anonymous user