GetNthActiveEffectDuration

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

A command for Oblivion Script Extender

Syntax:

(duration:long)  reference.GetNthActiveEffectDuration whichEffect:long
(duration:long)  reference.GetNthAEDuration whichEffect:long

Returns the duration of the Nth Active Effect on the reference.

Example

short EffectDur
set EffectDur to (player.GetNthActiveEffectDuration 0)

If the player currently has one Shield effect (and no other effects) at 10 duration and another at 90, this will return 100.

See Also