en:txt:alias
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:alias [2026/05/03 18:48] – Harmonize FR/EN language switch cyrilfiesta | en:txt:alias [2026/08/31 20:46] (Version actuelle) – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| **Language / Langue :** [[fr: | **Language / Langue :** [[fr: | ||
| - | ====== | + | ====== Aliases and reactions (.txt format) ====== |
| + | |||
| + | ===== Local aliases ===== | ||
| + | |||
| + | An alias is a shortcut to reach a room. It goes in the exit list: | ||
| + | |||
| + | < | ||
| + | alias-> | ||
| + | </ | ||
| + | |||
| + | The player can then use the '' | ||
| + | |||
| + | < | ||
| + | exit-> | ||
| + | north-> | ||
| + | </ | ||
| + | |||
| + | With a condition: | ||
| + | < | ||
| + | exit-> | ||
| + | </ | ||
| + | |||
| + | ===== Global aliases ===== | ||
| + | |||
| + | Global aliases go **at the end of the file**, after the last '' | ||
| + | |||
| + | < | ||
| + | inventory§🎒|help§❓|quit§🚪 | ||
| + | </ | ||
| + | |||
| + | Format: '' | ||
| + | |||
| + | ===== Discord reactions ===== | ||
| + | |||
| + | Reactions, the clickable emojis, can be attached to several kinds of elements. | ||
| + | |||
| + | **Attaching a reaction to a room:** | ||
| + | < | ||
| + | 2 room_name§🚪 | ||
| + | </ | ||
| + | The reaction appears when room 2 is reachable from the current room. | ||
| + | |||
| + | **Attaching one to an object:** | ||
| + | < | ||
| + | hammer|crate|You open the crate: there is a hammer inside!§🔨|You take the hammer.§🛠️|The hammer looks solid!§👁️ | ||
| + | </ | ||
| + | 🔨 inspects the crate, 🛠️ takes the hammer, 👁️ inspects the hammer. | ||
| + | |||
| + | **Attaching one to a 997 event:** | ||
| + | < | ||
| + | 997|2§🔧|action|You use the tool.|No reaction... | ||
| + | </ | ||
| + | The number before the '' | ||
| + | |||
| + | **Attaching one to a custom action:** | ||
| + | < | ||
| + | action: | ||
| + | </ | ||
| + | |||
| + | ===== Title options | ||
| + | |||
| + | The scenario title can be followed by options made available through permanent reactions: | ||
| + | |||
| + | ^ Option ^ Effect ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | < | ||
| + | My adventure|refresh§🔄|inventory§🎒 | ||
| + | </ | ||
| - | Legacy aliases map typed commands or reactions to rooms and actions. In YAML, use '' | ||
en/txt/alias.1777826880.txt.gz · Dernière modification : de cyrilfiesta
