Skip to content

Element types

Every element has a type t: Task, Info, Choice, Dynamic or Coin.

Field Meaning
name Unique name within the repository, used in the authoring interface (e.g. time-zones). Not shown to players.
content.title Title shown to the player.
content.description Main text (Markdown), shown when the element is released.
content.postDescription Text shown after the element was processed.
content.publicInfo Public text, visible without playing (public landing page of the element).
content.successMessage, content.errorMessage Messages after a correct / wrong solution; showSuccessDialog / showErrorDialog control whether a dialog is shown.
content.choiceDescription Label of this element when it is an option of a preceding choice.
content.showOnList Whether the element is shown in the list of released elements.
content.logo, content.files Image of the element and attached files.
score Points for processing the element. The final score adds the scores of the solution attempts and is never below 0.
location Optional position shown on the map: { "showOnRelease": true, "gps": { "lat": 52.52, "lon": 13.41 }, "address": "…", "description": [] }.
area Optional area of the element.
trigger Triggers of the element.
manualTrigger Optional trigger the player can fire repeatedly with a button, see Triggers.
notes Internal notes for authors.

All texts are lists of translations: [{ "lang": "eng", "text": "…" }, { "lang": "deu", "text": "…" }].

A task has to be solved before the story continues. Its solutions define how: QR code / secret, multiple choice, free text, user input (photo or text), geofence or AR marker – see Solutions. A task can optionally be skippable after a given time.

Supported triggers: OnElementRelease, OnElementSuccess, OnElementError (wrong answer), OnElementSkip, OnElementRepeat.

An info only shows content. It is processed when the player acknowledges it.

Supported triggers: OnElementRelease, OnElementSuccess, OnElementRepeat.

A choice splits the story: the player picks one of the successors of the choice in the challenge graph. Only the chosen successor is released; the decision can not be changed.

The options shown to the player are the successors; their label is their content.choiceDescription (falls back to the title).

Supported triggers: OnElementRelease, OnElementSuccess, OnElementRepeat.

A dynamic element is a choice made by a script: when it is processed, its script decides which successor is released.

"script": {
"expr": "{{d:keysFound}} >= 3 ? \"<id of element A>\" : \"<id of element B>\"",
"lang": "Javascript",
"solvedOn": ["<id of element A>", "<id of element B>"],
"buttonLabel": [{ "lang": "eng", "text": "Put the pieces together" }],
"autoCheck": true,
"errorMessage": [],
"nothingMessage": []
}
  • The script is JavaScript (see Variables and scripts). It must return the element id of a direct successor in the challenge graph, or "nothing" to release nothing (the player sees nothingMessage and can try again later).
  • solvedOn: if the returned element is in this list, the dynamic element counts as processed. Otherwise it stays open and can be processed again – this allows loops, e.g. “come back when you have collected enough”.
  • buttonLabel: label of the button the player presses to process the element.

Supported triggers: OnElementRelease, OnElementSuccess, OnElementError, OnElementRepeat.

A coin is a bonus item that can be collected at any time while playing a story. Coins are not part of a challenge graph; they are listed in associatedElements of the story. A coin is collected with its secret (solutions.secret.value, typically printed as QR code); if no secret is set, a random one is generated.

Supported triggers: OnElementSuccess.