en:yaml:choix
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:choix [2026/05/03 23:59] – mise a jour wiki cyrilfiesta | en:yaml:choix [2026/10/19 21:20] (Version actuelle) – Textes des choix : tentative, resultat et ordre des effets cyrilfiesta | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| ====== Choices and Buttons (YAML) ====== | ====== Choices and Buttons (YAML) ====== | ||
| - | Choices define the exits available from a room — navigation, access conditions and buttons shown to the player. | + | Choices define the exits available from a room - navigation, access conditions and buttons shown to the player. |
| ===== Minimal syntax ===== | ===== Minimal syntax ===== | ||
| Ligne 41: | Ligne 41: | ||
| </ | </ | ||
| - | The player can click the button **or** type '' | + | The player can click the button **or** type '' |
| - | Without '' | + | |
| + | With [[en: | ||
| See [[en: | See [[en: | ||
| Ligne 74: | Ligne 75: | ||
| ===== Access condition (if:) ===== | ===== Access condition (if:) ===== | ||
| - | '' | + | '' |
| <code yaml> | <code yaml> | ||
| choices: | choices: | ||
| - command: enter | - command: enter | ||
| - | button: | + | button: Enter |
| to: secret_room | to: secret_room | ||
| + | text: "You push the door." | ||
| if: " | if: " | ||
| - | | + | |
| - | | + | |
| </ | </ | ||
| - | * '' | + | ^ Situation ^ Texts shown ^ Effect and movement ^ |
| - | | + | | No '' |
| + | | Condition passes | '' | ||
| + | | Condition | ||
| + | | '' | ||
| + | | Disabled button | None | No | | ||
| - | Without | + | Texts follow their order in the YAML. In the editor, use the move buttons beside the text fields to change that order; |
| + | |||
| + | '' | ||
| + | |||
| + | This rule applies to choices. An action uses '' | ||
| ===== Conditional button (visible-if / disabled-if) ===== | ===== Conditional button (visible-if / disabled-if) ===== | ||
| Ligne 106: | Ligne 116: | ||
| </ | </ | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| ===== Click effect (effect:) ===== | ===== Click effect (effect:) ===== | ||
| Ligne 132: | Ligne 142: | ||
| - all | - all | ||
| </ | </ | ||
| - | |||
| - | **Join us on [[https:// | ||
en/yaml/choix.1777845555.txt.gz · Dernière modification : de cyrilfiesta
