en:yaml:actions
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:actions [2026/05/03 18:47] – Harmonize FR/EN language switch cyrilfiesta | en:yaml:actions [2026/10/20 22:22] (Version actuelle) – Modèles sur_place, portée des encadrés et objets 4.17 cyrilfiesta | ||
|---|---|---|---|
| Ligne 43: | Ligne 43: | ||
| ^ Variable ^ Value ^ | ^ Variable ^ Value ^ | ||
| - | | '' | + | | '' |
| | '' | | '' | ||
| Ligne 49: | Ligne 49: | ||
| Several actions with the same '' | Several actions with the same '' | ||
| + | |||
| + | <code yaml> | ||
| + | actions: | ||
| + | - verb: combine | ||
| + | target: herb | ||
| + | if: "herb t_combination_t.=.nothing" | ||
| + | do: | ||
| + | - object: herb | ||
| + | to: inventory | ||
| + | remove: true | ||
| + | - text_var: combination | ||
| + | value: " | ||
| + | text_ok: "The herb goes into the still." | ||
| + | text_ko: "You do not have any herb." | ||
| + | |||
| + | - verb: combine | ||
| + | target: all | ||
| + | if: ~ | ||
| + | text_ok: " | ||
| + | </ | ||
| + | |||
| + | Declare '' | ||
| ===== Action Alias ===== | ===== Action Alias ===== | ||
| Ligne 81: | Ligne 103: | ||
| text_ko: "You do not have a potion." | text_ko: "You do not have a potion." | ||
| </ | </ | ||
| + | |||
| + | ===== Data, loops and shortcuts (4.17) ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | Actions, choices and events can have a [[en: | ||
| + | |||
| + | ===== Object display names ===== | ||
| + | |||
| + | Action targets and '' | ||
| + | |||
| + | <code yaml> | ||
| + | do: | ||
| + | - display_name: | ||
| + | value: identified key | ||
| + | </ | ||
| + | |||
| + | An empty value restores the original identifier. See [[en: | ||
| + | |||
en/yaml/actions.1777826863.txt.gz · Dernière modification : de cyrilfiesta
