Outils pour utilisateurs

Outils du site


en:yaml:options

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
en:yaml:options [2026/05/07 03:16] – Documentation interactions YAML cyrilfiestaen:yaml:options [2026/08/31 20:54] (Version actuelle) – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta
Ligne 13: Ligne 13:
 </code> </code>
  
-Avoid using ''|'' in the title; prefer ''·'' or ''—''.+Avoid using ''|'' in the title; prefer ''·'' or a hyphen.
  
 ===== markdown: ===== ===== markdown: =====
Ligne 62: Ligne 62:
  
 If an option key points to an object or furniture name in the current room, the engine triggers ''examine'' on it instead of room navigation. If an option key points to an object or furniture name in the current room, the engine triggers ''examine'' on it instead of room navigation.
 +
 +===== vars:, text_vars:, online_vars: =====
 +
 +Variables declared at the root level, initialised when the game starts. See [[en:yaml:variables|Variables]].
 +
  
 ===== global_events_order: ===== ===== global_events_order: =====
Ligne 71: Ligne 76:
 Accepted values: ''before'' or ''after''. Default: ''after''. Accepted values: ''before'' or ''after''. Default: ''after''.
  
 +
 +===== ui: - interface mode (v4.13) =====
 +
 +Changes the game interface on the player side: ''cards'', ''fullscreen'', ''deck'', ''phone''. The key exists at scenario level and at room level, as does ''hide_input:'' which controls the command bar. Details on [[en:ui:presentation|Interface modes]].
 +
 +<code yaml>
 +ui: cards
 +hide_input: false
 +</code>
 +
 +Phone mode adds two header keys: ''phone_home:'' (room of the Home button) and ''phone_shape:'' (portrait, landscape, tablet) - see [[en:ui:phone|Phone mode]].
 +
 +===== Direct launch URL =====
 +
 +A scenario can be launched directly from a URL, without going through the home page:
 +
 +<code>
 +https://jdr-bot.cyril-fiesta.fr/?play=scenarioname
 +https://jdr-bot.cyril-fiesta.fr/?play=scenarioname&lang=en
 +</code>
 +
 +  * Automatic resolution: ''.yaml'' first, then ''.txt'' - no extension needed
 +  * Official ''scenarios/'' folder only
 +  * ''&lang=en'' launches the English version directly (interface and catalogue included) - v4.13
 +  * Ideal for direct share links in announcements or presentation pages
  
 ===== show-type: ===== ===== show-type: =====
Ligne 84: Ligne 114:
     text: "{{key:>key}} {{door:$door}}"     text: "{{key:>key}} {{door:$door}}"
 </code> </code>
- 
  
en/yaml/options.1778116577.txt.gz · Dernière modification : de cyrilfiesta