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

Les deux révisions précédentesRévision précédente
en:yaml:variables [2026/05/03 18:47] – Harmonize FR/EN language switch cyrilfiestaen:yaml:variables [2026/07/15 01:41] (Version actuelle) – maj 4.13 : modes d'interface + corrections cyrilfiesta
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 =====
Ligne 67: Ligne 83:
   * ''t_name_t'' displays a text variable.   * ''t_name_t'' displays a text variable.
   * ''v_turn_v|pad2'' displays the value padded to 2 digits.   * ''v_turn_v|pad2'' displays the value padded to 2 digits.
 +
en/yaml/variables.txt · Dernière modification : de cyrilfiesta