Skip to content

AdvanceTime

Referee: advance the clock directly.

Full documentation: AdvanceTime. Wire type: advance_time.

Legal session modes: battle, encounter, exploring, game_over, town

JSON Schema

{
  "$defs": {
    "TimeUnit": {
      "description": "The B/X time units.",
      "enum": [
        "round",
        "turn",
        "day"
      ],
      "title": "TimeUnit",
      "type": "string"
    }
  },
  "description": "Referee: advance the clock directly.\n\nReferee commands are legal in every mode. Time passes with full bookkeeping \u2014\neffect expiries, provisions on day boundaries \u2014 but no wandering cadence: the\nreferee controls encounters.\n\nModes:\n    `town`, `exploring`, `encounter`, `battle`, `game_over`\n\nRejections:\n    None.\n\nEvents:\n    The span's bookkeeping events (effect expiries and their player-facing\n    light translations, provisions), then\n    [`TimeAdvancedEvent`][osrlib.crawl.events.TimeAdvancedEvent] with the\n    total.",
  "properties": {
    "command_type": {
      "const": "advance_time",
      "default": "advance_time",
      "title": "Command Type",
      "type": "string"
    },
    "n": {
      "minimum": 0,
      "title": "N",
      "type": "integer"
    },
    "unit": {
      "$ref": "#/$defs/TimeUnit"
    }
  },
  "required": [
    "n",
    "unit"
  ],
  "title": "AdvanceTime",
  "type": "object"
}