Skip to content

ConditionRemovedEvent

A creature lost a condition.

Full documentation: ConditionRemovedEvent. Wire type: condition_removed.

Default visibility: player

Message codes: effects.condition.removed

JSON Schema

{
  "$defs": {
    "Visibility": {
      "description": "Who may see an event.\n\nThe wire values are `\"player\"` and `\"referee\"` \u2014 lowercase, serialized into every\nevent; changing them is a `schema_version` bump.",
      "enum": [
        "player",
        "referee"
      ],
      "title": "Visibility",
      "type": "string"
    }
  },
  "description": "A creature lost a condition.\n\nEmitted by [`remove_condition`][osrlib.core.effects.remove_condition] \u2014 directly,\nor through [`EffectsLedger.release`][osrlib.core.effects.EffectsLedger.release]\nor expiry removing the effect that granted it.",
  "properties": {
    "code": {
      "default": "effects.condition.removed",
      "title": "Code",
      "type": "string"
    },
    "visibility": {
      "$ref": "#/$defs/Visibility",
      "default": "player"
    },
    "event_type": {
      "const": "condition_removed",
      "default": "condition_removed",
      "title": "Event Type",
      "type": "string"
    },
    "target_id": {
      "title": "Target Id",
      "type": "string"
    },
    "condition": {
      "title": "Condition",
      "type": "string"
    },
    "effect_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Effect Id"
    }
  },
  "required": [
    "target_id",
    "condition"
  ],
  "title": "ConditionRemovedEvent",
  "type": "object"
}