en:yaml:raccourcis
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| en:yaml:raccourcis [2026/10/18 22:42] – Documentation 4.17 : listes, boucles, raccourcis et editeur cyrilfiesta | en:yaml:raccourcis [2026/10/19 01:25] (Version actuelle) – Wiki 4.17 : corrections apres audit des exemples et traductions cyrilfiesta | ||
|---|---|---|---|
| Ligne 8: | Ligne 8: | ||
| <code yaml> | <code yaml> | ||
| + | vars: | ||
| + | ammo: 3 | ||
| actions: | actions: | ||
| - verb: fire | - verb: fire | ||
| target: all | target: all | ||
| button: Fire | button: Fire | ||
| + | if: v_ammo_v > 0 | ||
| do: ammo - 1 | do: ammo - 1 | ||
| shortcut: | shortcut: | ||
| Ligne 20: | Ligne 23: | ||
| </ | </ | ||
| - | Declare '' | + | '' |
| ===== Commands and referenced events ===== | ===== Commands and referenced events ===== | ||
| Ligne 34: | Ligne 37: | ||
| - keys: [Ctrl+Enter] | - keys: [Ctrl+Enter] | ||
| event: question_hint | event: question_hint | ||
| + | events: | ||
| + | - id: question_hint | ||
| + | text: The code is 42. | ||
| </ | </ | ||
| Ligne 56: | Ligne 62: | ||
| * One press triggers one action. Holding a key or direction does not repeat turns; return to neutral to act again. | * One press triggers one action. Holding a key or direction does not repeat turns; return to neutral to act again. | ||
| - | * Shortcuts | + | * Shortcuts |
| * Local bindings take priority over global ones. Within one scope: actions, events, choices, then list commands, in declaration order. | * Local bindings take priority over global ones. Within one scope: actions, events, choices, then list commands, in declaration order. | ||
| * An unavailable binding reserves its key. Hidden or greyed-out choices do not become accessible through shortcuts. | * An unavailable binding reserves its key. Hidden or greyed-out choices do not become accessible through shortcuts. | ||
| * Explicit shortcuts take priority over native deck directions or keyboard triggers. The linter reports collisions. | * Explicit shortcuts take priority over native deck directions or keyboard triggers. The linter reports collisions. | ||
| - | Gamepads need the browser' | + | Gamepads need the browser' |
| ===== In the editor ===== | ===== In the editor ===== | ||
en/yaml/raccourcis.1792356137.txt.gz · Dernière modification : de cyrilfiesta
