🌱
The Insurgent's Forge
  • Home
  • Getting Started
    • Setup
    • Resources
  • Overview
    • Configuration
      • Formulas
      • Functions
      • Classes
      • Helpers
      • Assemblies
      • Middlewares
      • Dependencies
      • Options
      • Errors
    • Improvements & Additions
    • Structures & Parameters
    • Formula Workflow
      • Combo
      • Counter
      • Area of Effect
      • Reserve Party Member
      • Reflect
      • Mist
      • Trap
      • Chain Benefit
      • Summon
      • Spawn
      • Gambit
    • Limitations
      • Animations
      • Status Effects & Augments
    • Notes
      • Flags
      • Loops
      • Function in a Function
    • Helpers
      • Add Augment
      • Add Status Effect
      • Apply Knockback
      • Get Active Party Member
      • Get Action Status Effects
      • Get Augment Duration
      • Get Battle Unit Keep
      • Get Battle Unit Keep By Focus
      • Get Battle Unit Work
      • Get Character Max Hp
      • Get Character Max Mp
      • Get Character Type
      • Get Elemental Affinities Match
      • Get Equipment Status Effects
      • Get Forced Poach Rarity
      • Get Forced Steal Rarity
      • Get Formula Proc Keep
      • Get Knockback Range
      • Get Location Mist Strength
      • Get Model Evade Types
      • Get One Hit Kill State
      • Get Random Number
      • Get Reflect Target
      • Get Remedy Status Effects
      • Get Status Effect Duration
      • Get Status Effect Tick Duration
      • Get Status Effects Match
      • Get Terrain Type
      • Get Weather
      • Is Interactable
      • Modify Content
      • Modify Gil
      • Modify Hp
      • Modify Mist Charges
      • Modify Mp
      • Modify Sky Pirates Den Stats
      • Refresh Stats
      • Remove Augment
      • Remove Status Effect
      • Set Level
      • Shift Elements
      • Show Combat Log
      • Show Number Text
      • Teleport Location
  • Support & Updates
    • Changelogs
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
    • Known Issues
    • FAQ
Powered by GitBook
On this page
  • Signature
  • Description
  • Arguments
  • Notes
  1. Overview
  2. Helpers

Add Status Effect

Signature

addStatusEffect(casterAddress, targetAddress, id, duration, tickDuration)

Description

Adds a (temporary) status effect to a character.

If the status effect identifier is invalid, this function will just return.

If the target doesn't already have the (permanent / temporary) status effect, it also does the following:

  • Remove all other (temporary) status effects that are nullified by the added one (e.g. Slow / Haste).

  • If the target is within 24 meters of the player party leader, show status effect name as text on the target.

  • Call additional functions (e.g. play actor animation) based on the added status effect.

Arguments

Caster Address

The battle unit keep address of the caster.

Target Address

The battle unit keep address of the target.

Identifier

The identifier of the status effect.

Duration

The duration of the status effect.

Tick Duration

The tick duration of the status effect.

Notes

This function requires the Remove Status Effect function.

If the target is an Esper, the status effects KO, Stone and X-Zone will force them to be dismissed instead.

If the target is affected by god mode, the status effects KO, Stone and X-Zone cannot be added to them.

The following conditions are not taken into consideration:

  • If the status effect requires another one to be absent (e.g. Berserk / Confuse).

  • If the status effect can be applied to foes.

  • If the status effect's duration can be refreshed.

  • If the target is immune to status effect via their status effect immunities or the Status-Immunity augment.

  • If the target's hp should be doubled when the status effect Bubble is added to them.

  • If the target's hp should be halved when the status effect Bubble is removed from them.

All of these need be manually checked instead.

Only up to 5 texts can be shown on a character at a time. If the limit is exceeded, the new text replaces the oldest one based on the order they were shown. Their placement also slightly differs based on their order (mid -> top right -> bottom left -> top left -> bottom right).

For a list of status effect identifiers, you can view battlepack spreadsheet in Resources.

PreviousAdd AugmentNextApply Knockback

Last updated 10 months ago