en:yaml:evenements
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:evenements [2026/05/03 18:38] – Fix EN action tokens to real engine syntax cyrilfiesta | en:yaml:evenements [2026/08/31 20:52] (Version actuelle) – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | **Language: | + | **Language |
| ====== Events (YAML) ====== | ====== Events (YAML) ====== | ||
| Ligne 14: | Ligne 14: | ||
| </ | </ | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| ===== Actions Available in do: ===== | ===== Actions Available in do: ===== | ||
| Ligne 81: | Ligne 81: | ||
| - text: "+10 score." | - text: "+10 score." | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Conditional buttons (visible-si / grise-si) ===== | ||
| + | |||
| + | <code yaml> | ||
| + | events: | ||
| + | - if: ~ | ||
| + | button: " | ||
| + | visible-if: " | ||
| + | do: " | ||
| + | text: "You attack!" | ||
| + | |||
| + | - if: ~ | ||
| + | button: "🏃 Flee" | ||
| + | disabled-if: | ||
| + | to: accueil | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | ⚠ On Discord, buttons are frozen inside the message that was sent. Clicking 🔄 (refresh) forces a redisplay with up to date buttons. | ||
| + | |||
| + | ===== Conditional text on an event ===== | ||
| + | |||
| + | The '' | ||
| + | |||
| + | <code yaml> | ||
| + | text: | ||
| + | - if: " | ||
| + | text: "No charge left!" | ||
| + | - if: " | ||
| + | text: "🏆 Wealthy adventurer: score v_score_v!" | ||
| + | - text: " | ||
| + | </ | ||
| + | |||
| + | ===== Sequential behaviour ===== | ||
| + | |||
| + | ⚠ Important: events run in order. Each one sees the values **already changed** by the previous ones. An event carrying '' | ||
| + | |||
| + | ===== Timer started by an event ===== | ||
| + | |||
| + | <code yaml> | ||
| + | events: | ||
| + | - if: ~ | ||
| + | timer: hourglass | ||
| + | duration: " | ||
| + | to: expiration_room | ||
| + | text: "The hourglass is running!" | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | ===== Manual command inside do: (v4.9) ===== | ||
| + | |||
| + | The '' | ||
| + | |||
| + | <code yaml> | ||
| + | do: | ||
| + | - command: "take key" | ||
| + | - command: " | ||
| + | - command: "go laboratory" | ||
| + | </ | ||
| + | |||
| + | It works with the standard commands: '' | ||
| + | |||
| + | Useful to chain a series of actions automatically, | ||
| + | |||
| + | |||
| + | ===== Inline Events ===== | ||
| + | |||
| + | A local event can be triggered by a tooltip or clickable element, and a '' | ||
| + | |||
| + | * [[en: | ||
| + | * [[en: | ||
| + | * [[en: | ||
| + | |||
| + | Local events can be controlled with '' | ||
en/yaml/evenements.1777826337.txt.gz · Dernière modification : de cyrilfiesta
