Skip to content

TravelToTown

Travel from the dungeon entrance back to town (the same travel cost).

Full documentation: TravelToTown. Wire type: travel_to_town.

Legal session modes: exploring

JSON Schema

{
  "description": "Travel from the dungeon entrance back to town (the same travel cost).\n\nThe party must be exploring and standing on the entrance cell. Doors the party\nopened swing shut behind it, and under the on-return XP timing the adventure\naward pays out on arrival.\n\nModes:\n    `exploring`\n\nRejections:\n    - `session.command.wrong_mode` - the session is not exploring a dungeon.\n    - `exploration.travel.not_at_entrance` - the party is not on the entrance\n      cell.\n\nEvents:\n    `DoorEvent`s for doors swinging shut,\n    travel-time bookkeeping, then\n    `LocationEnteredEvent` for\n    town. Under the on-return XP timing an\n    `AdventureXpAwardEvent` and\n    per-member `XpAwardedEvent`s follow.",
  "properties": {
    "command_type": {
      "const": "travel_to_town",
      "default": "travel_to_town",
      "title": "Command Type",
      "type": "string",
      "description": "The wire discriminator. Each subclass fixes it to its own snake_case literal, like\n`\"move_party\"` or `\"open_door\"`, so you never set it yourself: constructing the subclass\ndoes. It's what `parse_command` and the\n`AnyCommand` union read to rebuild the right class\nfrom a serialized mapping, and it stays the same across releases."
    },
    "source": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Source",
      "description": "An annotation naming the authored object (a trigger or quest id) or the game\nsystem on whose behalf the command was issued. Execution never reads it: a stamped\ncommand does exactly what the same command unstamped does. It is logged and replayed\nwith the command, so the log alone answers \"why did this happen\". Absent is `None`,\nand the empty string is not a value."
    }
  },
  "title": "TravelToTown",
  "type": "object"
}