Difference between revisions of "GetTotalActiveEffectMagnitudeC"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Created)
 
imported>Haama
(→‎See Also: Added code links)
Line 19: Line 19:
* [[GetTotalActiveEffectMagnitude]]
* [[GetTotalActiveEffectMagnitude]]
* [[GetTotalAEAllSpellsMagnitude]]
* [[GetTotalAEAllSpellsMagnitude]]
* [[GetTotalAESpellMagnitude]]
* [[GetTotalAEAllSpellsMagnitudeC]]
* [[GetTotalAESpellsMagnitude]]
* [[GetTotalAESpellsMagnitudeC]]
* [[GetTotalAEDiseaseMagnitude]]
* [[GetTotalAEDiseaseMagnitude]]
* [[GetTotalAEDiseaseMagnitudeC]]
* [[GetTotalAEPowerMagnitude]]
* [[GetTotalAEPowerMagnitude]]
* [[GetTotalAEPowerMagnitudeC]]
* [[GetTotalAELesserPowerMagnitude]]
* [[GetTotalAELesserPowerMagnitude]]
* [[GetTotalAELesserPowerMagnitudeC]]
* [[GetTotalAEAbilityMagnitude]]
* [[GetTotalAEAbilityMagnitude]]
* [[GetTotalAEAbilityMagnitudeC]]
* [[GetTotalAENonAbilityMagnitude]]
* [[GetTotalAENonAbilityMagnitude]]
* [[GetTotalAENonAbilityMagnitudeC]]
* [[GetTotalAEEnchantmentMagnitude]]
* [[GetTotalAEEnchantmentMagnitude]]
* [[GetTotalAEEnchantmentMagnitudeC]]
* [[GetTotalAEAlchemyMagnitude]]
* [[GetTotalAEAlchemyMagnitude]]
* [[GetTotalAEAlchemyMagnitudeC]]


[[Category:Functions]]
[[Category:Functions]]

Revision as of 00:33, 26 November 2007

A command for Oblivion Script Extender

Syntax:

(totalMag:long) reference.GetTotalActiveEffectMagnitudeC effectCode:long
(totalMag:long) reference.GetTotalAEMagnitudeC effectCode:long

Returns the total magnitude of all Active Effects with a given code on the reference.

Example

short EffectMag
long EffectCode
set EffectCode to (GetMagicEffectCode SHLD)
set EffectMag to (player.GetTotalActiveEffectMagnitude EffectCode)

If the player currently has one Shield effect at 10 magnitude and another at 90, this will return 100.

See Also