en:yaml:variables
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:variables [2026/09/26 03:42] – documentation 4.15 : succès, variables persistantes et exports cyrilfiesta | en:yaml:variables [2026/10/20 22:12] (Version actuelle) – Mod?les sur_place, port?e des encadr?s et objets 4.17 cyrilfiesta | ||
|---|---|---|---|
| Ligne 62: | Ligne 62: | ||
| ===== Online _o variables ===== | ===== Online _o variables ===== | ||
| - | An '' | + | For a scenario source authorised by the server, an '' |
| <code yaml> | <code yaml> | ||
| Ligne 90: | Ligne 90: | ||
| ===== Free-form answers ===== | ===== Free-form answers ===== | ||
| - | Add '' | + | In a room's '' |
| <code yaml> | <code yaml> | ||
| - | text_vars: | + | init: |
| - | | + | |
| value: " | value: " | ||
| reply: true | reply: true | ||
| Ligne 119: | Ligne 119: | ||
| | '' | | '' | ||
| - | These system names stay in French. '' | + | The system names above also work in English scenarios. For a declared '' |
| ===== A common trap ===== | ===== A common trap ===== | ||
| Ligne 131: | Ligne 131: | ||
| text: "New record: v_score_v" | text: "New record: v_score_v" | ||
| </ | </ | ||
| + | |||
| + | ===== Paths and spaced effects (4.17) ===== | ||
| + | |||
| + | [[en: | ||
| + | |||
| + | In '' | ||
| + | |||
| + | <code yaml> | ||
| + | do: | ||
| + | - hero.health + 10 | ||
| + | - score + %1:6 | ||
| + | - score + %2:70,5:30 | ||
| + | </ | ||
| + | |||
| + | The last example draws 2 with weight 70 or 5 with weight 30. '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | ===== Describing structured data ===== | ||
| + | |||
| + | Lists, collections, | ||
| + | |||
| + | In the editor, online variables remain grouped with numbers or text according to their type. Declare an '' | ||
en/yaml/variables.1790386958.txt.gz · Dernière modification : de cyrilfiesta
