GetActiveEffectCount

Revision as of 14:56, 25 November 2007 by imported>Haama (Created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 3 (Shield, Restore Health, Drain Health)

See Also