Skip to content

Solutions

The solutions of a task define how it is solved. A task usually has one solution type; skip can be added to any of them.

"solutions": {
"secret": { "value": "CLOCKWORK" },
"mc": { "choices": [ { "value": "24", "isCorrect": true, "score": 10 } ] },
"text": { "ignoreCase": true, "choices": ["368", "368 m"], "score": 10 },
"input": { "textRequired": false, "imageRequired": true, "operatorRequired": false, "textEnabled": true, "imageEnabled": true, "maxChars": 280 },
"geofence": { "areaId": "<area id>", "event": "Enter" },
"ar": { "marker": "<marker>", "payload": [] },
"skip": { "after": 120000, "score": 0, "buttonLabel": [], "skipMessage": [] }
}

{ "value": "CLOCKWORK" } – the player enters or scans the secret, typically a QR code placed at a location. Use secrets to prove that the player was at a place.

choices: the possible answers, each with value, isCorrect and a score. The player picks one answer.

choices: all accepted answers; ignoreCase makes the comparison case insensitive; score for a correct answer. List spelling variants and translations explicitly, e.g. ["Rhine", "Rhein"].

The player submits a photo and/or a text. imageEnabled / textEnabled allow them, imageRequired / textRequired make them mandatory, maxChars limits the text. With operatorRequired the input has to be confirmed in the monitoring of the repository (role Author) before the task counts as solved.

{ "areaId": "<area id>", "event": "Enter" } – solved when the player’s position enters (Enter) or leaves (Exit) the area. The player app sends the position; the backend checks it against the area.

{ "marker": "…", "payload": [] } – solved when the player app recognises the AR marker. Requires a player app with AR support.

{ "after": 120000, "score": 0, "buttonLabel": [], "skipMessage": [] } – the task can be skipped after milliseconds after its release (earlier attempts are rejected). A skipped task is processed: its successors are released and the OnElementSkip trigger runs (not OnElementSuccess). score is the score change for skipping, skipMessage is shown after skipping.

A wrong answer runs the OnElementError trigger of the task and shows content.errorMessage. The player can try again.