en:yaml:choix
Ceci est une ancienne révision du document !
Table des matières
Language: Français | English
Choices and Buttons (YAML)
Choices define navigation commands and buttons shown to the player.
Base Syntax
choices: - command: north button: "Go north" to: forest - command: back to: home
command:— keyword the player can type.button:— visible button label. If absent, no local button is shown unless a global alias provides one.to:— destination room.
Button Defined on the Room
- id: timers_demo button: "Timers" text: "..."
A choice pointing to this room without its own button: can inherit the room button.
to: previous
choices: - command: back button: "Back" to: previous
Access Conditions
choices: - command: enter button: "Enter the secret room" to: secret_room if: "key v_score_v > 10" text_ko: "The door remains closed."
Conditional Buttons
choices: - command: expert button: "Expert mode" to: expert_room visible-if: "v_score_v > 50" - command: weakened button: "Move on" to: next_room disabled-if: "v_hp_v <= 0"
Click Effect
effect: runs before moving to the destination.
choices: - command: buy button: "Buy (-10 gold)" to: shop effect: "gold.-.10" if: "v_gold_v >= 10"
Clear HUD on Click
choices: - command: back button: "Back" to: home clear-hud: - all
en/yaml/choix.1777825786.txt.gz · Dernière modification : de cyrilfiesta
