Outils pour utilisateurs

Outils du site


en:yaml:variables

Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
en:yaml:variables [2026/05/03 18:29] – Add English wiki page using real engine keys cyrilfiestaen:yaml:variables [2026/07/15 01:41] (Version actuelle) – maj 4.13 : modes d'interface + corrections cyrilfiesta
Ligne 1: Ligne 1:
-**Language:** [[fr:yaml:variables|Français]] | **English**+**Language / Langue :** [[fr:yaml:variables|FR]] | **EN**
  
 ====== Variables (YAML) ====== ====== Variables (YAML) ======
Ligne 26: Ligne 26:
  
 Use text variables in text with ''t_hero_name_t''. Use text variables in text with ''t_hero_name_t''.
 +
 +To wait for a free-form answer, add ''reply: true'' to a text or numeric variable. The player can then type the answer directly without using the ''reply'' command. Room names, aliases and known actions still take priority.
 +
 +<code yaml>
 +vars:
 +  guess:
 +    value: 0
 +    reply: true
 +
 +text_vars:
 +  hero_name:
 +    value: "Adventurer"
 +    reply: true
 +</code>
 +
 +A numeric answer is stored without displaying the technical variable-change message. Use an event to provide the feedback intended for the player.
  
 ===== Online Variables ===== ===== Online Variables =====
en/yaml/variables.1777825788.txt.gz · Dernière modification : de cyrilfiesta