Difference between revisions of "GetNthActiveEffectCode"
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 ''' | 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== |