en:txt: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:txt:actions [2026/07/06 00:12] – maj 4.13 : modes d'interface + corrections cyrilfiesta | en:txt:actions [2026/08/31 20:45] (Version actuelle) – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| **Language / Langue :** [[fr: | **Language / Langue :** [[fr: | ||
| - | ====== | + | ====== Custom |
| - | Legacy custom | + | Custom |
| - | <code yaml> | + | ===== Declaration ===== |
| - | actions: | + | |
| - | - verb: inspect | + | An action goes either in the exit list of a room (**local** action) or after the last '' |
| - | | + | |
| - | if: ~ | + | < |
| - | | + | action:target|condition(s)|effect|OK text|KO text |
| </ | </ | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | The player then types '' | ||
| + | |||
| + | ===== The all target ===== | ||
| + | |||
| + | With '' | ||
| + | |||
| + | < | ||
| + | inspect: | ||
| + | </ | ||
| + | |||
| + | ===== Priority and multiple conditions ===== | ||
| + | |||
| + | * The same '' | ||
| + | * **Local** actions are tested before **global** ones. | ||
| + | * If no condition is met, the KO text of the last line is shown. | ||
| + | |||
| + | ===== Full example ===== | ||
| + | |||
| + | < | ||
| + | open: | ||
| + | open: | ||
| + | break: | ||
| + | </ | ||
| + | |||
en/txt/actions.1783289561.txt.gz · Dernière modification : de cyrilfiesta
