en:txt:reactions
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| en:txt:reactions [2026/05/03 18:30] – Add English wiki page using real engine keys cyrilfiesta | en:txt:reactions [2026/08/31 20:47] (Version actuelle) – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | **Language: | + | **Language |
| - | ====== | + | ====== Discord |
| - | Legacy reaction syntax is still supported for old scenarios. In YAML, reaction-like buttons | + | Reactions are clickable emojis shown under the bot messages. They let the player interact with the scenario without typing a command. |
| + | |||
| + | For the bot to recognise an emoji, it must be in Unicode form (🔑, not '': | ||
| + | On Discord, type '' | ||
| + | |||
| + | ===== Reaction attached to a room ===== | ||
| + | |||
| + | Add the '' | ||
| + | |||
| + | < | ||
| + | 2 room_name§🚪 | ||
| + | </ | ||
| + | |||
| + | The 🚪 reaction | ||
| + | |||
| + | ===== Reaction attached to an object ===== | ||
| + | |||
| + | Add '' | ||
| + | |||
| + | < | ||
| + | hammer|crate|Description of the crate§🔨|You take the hammer§🛠️|Description of the hammer§👁️ | ||
| + | </ | ||
| + | |||
| + | * 🔨 inspects the crate ('' | ||
| + | * 🛠️ takes the hammer ('' | ||
| + | * 👁️ inspects the hammer ('' | ||
| + | |||
| + | ===== Reaction attached to a 997 event ===== | ||
| + | |||
| + | < | ||
| + | 997|2§🔧|action|You use the tool.|Nothing to do here. | ||
| + | </ | ||
| + | |||
| + | The number before the '' | ||
| + | |||
| + | It can be combined | ||
| + | < | ||
| + | 997|key 2§🔑|3|You unlock the door!|You do not have the key. | ||
| + | </ | ||
| + | |||
| + | ===== Reaction attached to a custom action ===== | ||
| + | |||
| + | < | ||
| + | action: | ||
| + | </ | ||
| + | |||
| + | The reaction fires the action when the condition is met. | ||
| + | |||
| + | ===== Global aliases with reactions ===== | ||
| + | |||
| + | At the end of the file, after the last '' | ||
| + | |||
| + | < | ||
| + | inventory§🎒|map§🗺️|help§❓ | ||
| + | </ | ||
| + | |||
| + | These reactions appear whenever the alias can be used from the current room. | ||
en/txt/reactions.1777825800.txt.gz · Dernière modification : de cyrilfiesta
