Skip to content

tes3statistic⚓︎

A structure that holds statistical information relating to the current and base values of a statistic such as health, fatigue, magicka, or attributes.

Morrowind statistics do not track buffs and debuffs separately. Instead, total buff or debuff values can be calculated with the tes3.getEffectMagnitude() function, using the appropriate buff or debuff magic effect for the statistic.

Properties⚓︎

base⚓︎

The base value of the statistic. For example, for a mobile with a normal health amount of 100, fortified by 50, and having taken damage of 25, the base value would be 100, the normal health amount.

Returns:

  • result (number)

baseRaw⚓︎

The base value of the statistic, as stored in memory. Prefer to use .base unless you know what you're doing.

Returns:

  • result (number)

current⚓︎

The current value of the statistic. For example, for a mobile with a normal health amount of 100, fortified by 50, and having taken damage of 25, the current value would be 125, the health amount after all buffs and debuffs have been accounted for.

Returns:

  • result (number)

currentRaw⚓︎

The current value of the statistic, as stored in memory. Prefer to use .current unless you know what you're doing.

Returns:

  • result (number)

normalized⚓︎

The normalized value of the statistic. For example, for an account with current health of 50 and base health of 100, the normalized value would be equal to current divided by base. 50 (current) / 100 (base) = .5 (normalized). This is useful for quickly calculating percentages for statistics.

Returns:

  • result (number)