Get Status Effect Duration
Signature
getStatusEffectDuration(characterAddress, statusEffectId)
Description
Gets a status effect's duration (seconds) which determines how long a status effect will be active.
If the status effect is Petrify or Doom, the duration is used as the tick count instead. In this case, this function will always return 11
.
For every other status effect, the following applies:
If the status effect is negative: 2 * duration - vitality * duration / 100
.
If the status effect is positive: duration + vitality * duration / 100
. In addition, multiply by 1.5
if the character has the Spellbound augment.
Finally, the duration is calculated as follows: duration * 300 * memory.u32[0x01DFE0B4]
.
Arguments
Character Address
The battle unit keep address of a character.
Status Effect Identifier
The identifier of the status effect.
Notes
Last updated