Skip to content

ObjectiveRevealedEvent

A hidden objective surfaced: the party can see what it is being asked for.

Full documentation: ObjectiveRevealedEvent. Wire type: objective_revealed.

Default visibility: player

Message codes: session.quest.objective_revealed

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 hidden objective surfaced: the party can see what it is being asked for.\n\n`name` is the objective's display label \u2014 its authored name, or its id when the\ndocument authors none \u2014 and `quest_name` the owning quest's name, both resolved\nat emission so a renderer holds no document to look them up in. Both default\nempty only because an event logged before the fields existed still parses; the\nengine always fills them. `narrative` is the objective's authored offer beat,\n`None` when unauthored, and the journal carries the same line.",
  "properties": {
    "code": {
      "default": "session.quest.objective_revealed",
      "title": "Code",
      "type": "string"
    },
    "visibility": {
      "$ref": "#/$defs/Visibility",
      "default": "player"
    },
    "event_type": {
      "const": "objective_revealed",
      "default": "objective_revealed",
      "title": "Event Type",
      "type": "string"
    },
    "quest_id": {
      "title": "Quest Id",
      "type": "string"
    },
    "quest_name": {
      "default": "",
      "title": "Quest Name",
      "type": "string"
    },
    "objective_id": {
      "title": "Objective Id",
      "type": "string"
    },
    "name": {
      "default": "",
      "title": "Name",
      "type": "string"
    },
    "narrative": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Narrative"
    }
  },
  "required": [
    "quest_id",
    "objective_id"
  ],
  "title": "ObjectiveRevealedEvent",
  "type": "object"
}