en:txt:actions
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| en:txt:actions [2026/05/03 18:30] – Add English wiki page using real engine keys 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: | + | **Language |
| - | ====== | + | ====== Custom |
| - | Legacy custom | + | Custom |
| - | < | + | ===== Declaration ===== |
| - | actions: | + | |
| - | - verb: inspect | + | An action goes either in the exit list of a room (**local** action) or after the last '' |
| - | target: chest | + | |
| - | 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:chest|key|null|You open the chest with the key!|You need a key. | ||
| + | open: | ||
| + | break: | ||
| </ | </ | ||
en/txt/actions.1777825800.txt.gz · Dernière modification : de cyrilfiesta
