en:yaml:conditions
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:conditions [2026/08/31 20:51] – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta | en:yaml:conditions [2026/10/19 22:45] (Version actuelle) – Comparaisons de texte sans distinction de casse cyrilfiesta | ||
|---|---|---|---|
| Ligne 17: | Ligne 17: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| + | |||
| + | ===== Compare Text ===== | ||
| + | |||
| + | Text comparisons with '' | ||
| + | |||
| + | List operations ('' | ||
| ===== Compare Two Variables ===== | ===== Compare Two Variables ===== | ||
| Ligne 22: | Ligne 28: | ||
| <code yaml> | <code yaml> | ||
| if: " | if: " | ||
| + | </ | ||
| + | |||
| + | Or: | ||
| + | |||
| + | <code yaml> | ||
| if: " | if: " | ||
| </ | </ | ||
| Ligne 40: | Ligne 51: | ||
| <code yaml> | <code yaml> | ||
| if: " | if: " | ||
| + | </ | ||
| + | |||
| + | Or: | ||
| + | |||
| + | <code yaml> | ||
| if: " | if: " | ||
| </ | </ | ||
| Do not use '' | Do not use '' | ||
| + | |||
| + | ===== Events ===== | ||
| + | |||
| + | <code yaml> | ||
| + | events: | ||
| + | - if: " | ||
| + | to: game_over | ||
| + | text: "You died..." | ||
| + | - if: " | ||
| + | text: "You are badly wounded!" | ||
| + | - if: ~ | ||
| + | to: next_room | ||
| + | </ | ||
| + | |||
| + | Events are evaluated in order. The first event that redirects with '' | ||
| ===== Choices ===== | ===== Choices ===== | ||
en/yaml/conditions.1788202301.txt.gz · Dernière modification : de cyrilfiesta
