en:txt:reactions
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:reactions [2026/05/03 18:48] – Harmonize FR/EN language switch 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 / Langue :** [[fr: | **Language / Langue :** [[fr: | ||
| - | ====== | + | ====== Discord |
| + | |||
| + | Reactions | ||
| + | |||
| + | 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 appears in every room from which room 2 is reachable, and checks the access conditions just like the '' | ||
| + | |||
| + | ===== 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 with other conditions: | ||
| + | < | ||
| + | 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. | ||
| - | Legacy reaction syntax is still supported for old scenarios. In YAML, reaction-like buttons are declared with '' | ||
en/txt/reactions.1777826881.txt.gz · Dernière modification : de cyrilfiesta
