en:yaml:options
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| en:yaml:options [2026/05/07 03:16] – Documentation interactions YAML cyrilfiesta | en:yaml:options [2026/10/18 23:46] (Version actuelle) – Relecture 4.17 : clarifications, exemples et typographie cyrilfiesta | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| ====== Global Options and Scenario Header (YAML) ====== | ====== Global Options and Scenario Header (YAML) ====== | ||
| - | ===== Scenario | + | ===== Scenario |
| <code yaml> | <code yaml> | ||
| - | title: " | + | id: my-scenario |
| + | language: en | ||
| + | title: " | ||
| description: | description: | ||
| - | | + | |
| - | | + | category: fiction |
| + | scenario_tags: | ||
| markdown: none | markdown: none | ||
| </ | </ | ||
| - | Avoid using '' | + | '' |
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | Do not put ''< | ||
| ===== markdown: ===== | ===== markdown: ===== | ||
| ^ Value ^ Rendering ^ | ^ Value ^ Rendering ^ | ||
| - | | '' | + | | '' |
| - | | '' | + | | '' |
| - | | '' | + | | '' |
| - | | '' | + | | '' |
| - | | '' | + | | '' |
| - | ===== Global | + | ===== Global |
| <code yaml> | <code yaml> | ||
| Ligne 33: | Ligne 42: | ||
| </ | </ | ||
| - | ===== options: | + | These values are the default for Web and Desktop text. Individual rooms may override them. |
| + | |||
| + | ===== options: | ||
| <code yaml> | <code yaml> | ||
| options: | options: | ||
| refresh: " | refresh: " | ||
| - | inventory: "Bag" | + | inventory: "Inventory" |
| - | previous: "Back" | + | previous: "Previous" |
| v_score_v: " | v_score_v: " | ||
| home: " | home: " | ||
| + | url1: " | ||
| </ | </ | ||
| ^ Key ^ Effect ^ | ^ Key ^ Effect ^ | ||
| - | | '' | + | | '' |
| - | | '' | + | | '' |
| - | | '' | + | | '' |
| - | | '' | + | | '' |
| - | | '' | + | | '' |
| + | | '' | ||
| - | ===== External Links ===== | + | If a key points to an object or piece of furniture in the current room instead of a room, JDR-Bot automatically examines it. |
| - | <code yaml> | + | ===== Global variables ===== |
| - | options: | + | |
| - | url1: " | + | |
| - | url2: " | + | |
| - | </ | + | |
| - | ===== Fallback Examine ===== | + | '' |
| - | + | ||
| - | If an option key points to an object or furniture name in the current room, the engine triggers | + | |
| ===== global_events_order: | ===== global_events_order: | ||
| + | |||
| + | Global events are checked after local events by default. To check them first: | ||
| <code yaml> | <code yaml> | ||
| Ligne 69: | Ligne 78: | ||
| </ | </ | ||
| - | Accepted values: '' | + | Accepted values |
| + | ===== Direct launch URL ===== | ||
| - | ===== show-type: ===== | + | < |
| + | https:// | ||
| + | https://jdr-bot.cyril-fiesta.fr/? | ||
| + | </ | ||
| - | For [[en:yaml:drag-drop|drag & drop]], | + | The engine looks for a folder with that name first, then a YAML file and finally a TXT file. '' |
| + | |||
| + | ===== ui: - interface mode ===== | ||
| + | |||
| + | '' | ||
| <code yaml> | <code yaml> | ||
| - | show-type: true | + | ui: cards |
| + | hide_input: false | ||
| + | </ | ||
| - | rooms: | + | Phone mode adds '' |
| - | - id: workshop | + | |
| - | show-type: true | + | ===== show-type: ===== |
| - | text: "{{key:>key}} {{door:$door}}" | + | |
| + | For [[en: | ||
| + | |||
| + | ===== Catalogue and scenario links ===== | ||
| + | |||
| + | Public links use the scenario' | ||
| + | |||
| + | Catalogue tags, declared in '' | ||
| + | |||
| + | ===== Command echo (4.17) ===== | ||
| + | |||
| + | <code yaml> | ||
| + | command_echo: false | ||
| </ | </ | ||
| + | Echo is disabled by default. '' | ||
| + | |||
| + | '' | ||
en/yaml/options.1778116577.txt.gz · Dernière modification : de cyrilfiesta
