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/10/19 01:18] – Wiki 4.17 : corrections apres audit des exemples et traductions cyrilfiesta | en:yaml:evenements [2026/11/04 21:35] (Version actuelle) – Documentation 4.17 : objets, evenements et mise en page verifies cyrilfiesta | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| ====== Events (YAML) ====== | ====== Events (YAML) ====== | ||
| - | Events are action blocks run automatically or called through an interaction, | + | Events are action blocks run automatically or called through an interaction, |
| ===== Base Syntax ===== | ===== Base Syntax ===== | ||
| Ligne 26: | Ligne 26: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| + | | '' | ||
| | '' | | '' | ||
| | '' | | '' | ||
| Ligne 34: | Ligne 35: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| + | |||
| + | Several actions in one event: | ||
| + | |||
| + | <code yaml> | ||
| + | do: | ||
| + | - " | ||
| + | - " | ||
| + | - " | ||
| + | </ | ||
| ===== Endings ===== | ===== Endings ===== | ||
| Ligne 160: | Ligne 170: | ||
| Local events can be controlled with '' | Local events can be controlled with '' | ||
| + | |||
| + | ===== Manual event without a button ===== | ||
| + | |||
| + | ^ Key ^ Effect ^ | ||
| + | | '' | ||
| + | |||
| + | A choice can call this event explicitly. Its conditions, state and usage limits still apply. | ||
| + | |||
| + | <code yaml> | ||
| + | title: 'Wiki 4.17: manual' | ||
| + | rooms: | ||
| + | - id: depart | ||
| + | text: Start. | ||
| + | events: | ||
| + | - id: alerte | ||
| + | manual: true | ||
| + | text: Called only by the choice. | ||
| + | choices: | ||
| + | - command: appeler | ||
| + | button: Call | ||
| + | to: depart | ||
| + | effect: trigger_event: | ||
| + | </ | ||
| + | |||
| + | The alert text is absent on entry. The " | ||
en/yaml/evenements.1792365531.txt.gz · Dernière modification : de cyrilfiesta
