Osiris/API/RemoveHarmfulStatuses

From Divinity Engine Wiki
Revision as of 14:36, 7 June 2019 by Tinkerer (talk | contribs) (Documented RemoveHarmfulStatuses)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call RemoveHarmfulStatuses((GUIDSTRING)_Target)
Description

Removes all "harmful" statuses from _Target. This list is hardcoded in the game engine, and unfortunately rather ad hoc. Every status is considered harmful, unless it is one of the following (some of these may be leftovers from DOS1):

  • Status types
    • AOO
    • CHANNELING
    • CLIMBING (like on a ladder)
    • COMBAT (in a combat)
    • CONSTRAINED (curretly using an item with the constrain use action)
    • DRAIN
    • DYING
    • ENCUMBERED
    • HEAL
    • HEALING
    • HIT (applied when e.g. hit by a weapon)
    • LYING (lying on an item)
    • MATERIAL
    • SITTING (sitting on an item)
    • SNEAKING
    • SOURCE_MUTED (wearing a source collar)
    • SPIRIT
    • SPIRIT_VISION (spirit vision is active)
    • STANCE
    • STORY_FROZEN (via CharacterFreeze)
    • SUMMONING
    • TELEPORT_FALLING (falling after being teleported)
    • THROWN
    • UNSHEATHED (weapon out)
    • INVISIBLE
    • ROTATE
    • LEADERSHIP
    • SHACKLES_OF_PAIN_CASTER
    • ADRENALINE
    • INSURFACE
    • FLOATING
    • HEAL_SHARING
    • HEAL_SHARING_CASTER
    • EXTRA_TURN
    • ACTIVE_DEFENSE
    • EFFECT
    • SPARK
    • TUTORIAL_BED (shackled on the bed at the start of the tutorial)
  • Custom cases
    • having the status from consuming the Black Rose Elixir
    • being polymorphed in a way that still allows for interactions (i.e., via the mask of the shapeshifter, but not when turned into a chicken or a cow)
    • having a status with the name "IsInvulnerable"
Notes
  • This list of statuses corresponds to the statuses that get blocked by being invulnerable
See Also