Outils pour utilisateurs

Outils du site


en:yaml:tags

Language / Langue : FR | EN

Tags (YAML)

Tags inject shared behavior into several rooms without copying it everywhere.

Declare a Tag

tags:
  - name: dangerous_zone
    events:
      - if: "v_torch_v = 0"
        text: "It is too dark to see."
        do: "hp.-.2"
    objects:
      - name: note
        description: "A warning: Danger!"

Apply a Tag

- id: crypt
  text: "You enter the crypt."
  tag_before: dangerous_zone

- id: dungeon
  text: "A dark hallway stretches ahead."
  tag_after: dangerous_zone

Multiple Tags

- id: final_boss
  text: "The boss faces you!"
  tag_before:
    - dangerous_zone
    - combat_music
en/yaml/tags.txt · Dernière modification : de cyrilfiesta