Outils pour utilisateurs

Outils du site


en:yaml:alias

Language / Langue : FR | EN

Aliases, Commands and Buttons (YAML)

Modern YAML does not use a reaction: field next to choices or actions. Visible buttons are declared with button:, and typed commands with command: or alias:.

Choices

choices:
  - command: north
    button: "Go north"
    to: north_room

Global Aliases

global_aliases:
  back: "Home"
  help: "Help"

rooms:
  - id: corridor
    choices:
      - command: back
        to: home

Action Alias

actions:
  - verb: inspect
    target: still
    alias: still
    if: ~
    text_ok: "The still waits for your ingredients."

The player can type still instead of inspect still.

Action and Event Buttons

actions:
  - verb: use
    target: potion
    button: "Drink potion"
    if: "potion"
    do: "hp.+.10"
    text_ok: "+10 HP!"

events:
  - if: ~
    button: "Meditate"
    do: "mana.+.5"
    text: "+5 mana."
en/yaml/alias.txt · Dernière modification : de cyrilfiesta