en:yaml:texte
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:yaml:texte [2026/08/30 21:22] – maj 4.14 : dialogues, videos hebergees, mise en page, doc EN completee cyrilfiesta | en:yaml:texte [2026/11/04 23:30] (Version actuelle) – Documentation 4.17 : objets, evenements et mise en page verifies cyrilfiesta | ||
|---|---|---|---|
| Ligne 31: | Ligne 31: | ||
| <code yaml> | <code yaml> | ||
| - | texte: | | + | text: | |
| ```diff | ```diff | ||
| - old rule | - old rule | ||
| Ligne 44: | Ligne 44: | ||
| Supported languages: '' | Supported languages: '' | ||
| - | |||
| ===== Story Blocks ===== | ===== Story Blocks ===== | ||
| Ligne 89: | Ligne 88: | ||
| text: "A styled badge" | text: "A styled badge" | ||
| </ | </ | ||
| + | |||
| + | ^ Key ^ Value ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | These keys apply to the whole block on Web and Desktop; Discord and Terminal ignore them. Use inline Markdown to style a single word. | ||
| ===== Room Background ===== | ===== Room Background ===== | ||
| Ligne 98: | Ligne 105: | ||
| text: "The room is dark." | text: "The room is dark." | ||
| </ | </ | ||
| - | |||
| ===== The global markdown: field ===== | ===== The global markdown: field ===== | ||
| Ligne 111: | Ligne 117: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| - | | '' | + | | '' |
| ===== Interactive Inline Elements ===== | ===== Interactive Inline Elements ===== | ||
| Ligne 119: | Ligne 124: | ||
| <code yaml> | <code yaml> | ||
| - | text: " | + | text: |
| - | text: "Touch the %%{{lever: | + | - "The {{door:?An old door.}} is locked." |
| - | text: "Drop the %%{{key:> | + | |
| + | | ||
| </ | </ | ||
| Ligne 127: | Ligne 133: | ||
| Tiles and grids use the extended picture syntax: [[en: | Tiles and grids use the extended picture syntax: [[en: | ||
| - | |||
| ===== Reusing the text of another room ===== | ===== Reusing the text of another room ===== | ||
| Ligne 134: | Ligne 139: | ||
| <code yaml> | <code yaml> | ||
| - | texte: "The corridor goes on.[[ROOM: | + | text: "The corridor goes on.[[ROOM: |
| </ | </ | ||
| Ligne 143: | Ligne 148: | ||
| To build a conversation rather than plain text, see [[en: | To build a conversation rather than plain text, see [[en: | ||
| + | ===== Listing choices in the text ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code yaml> | ||
| + | rooms: | ||
| + | - id: start | ||
| + | text: | | ||
| + | What would you like to do? | ||
| + | |||
| + | [[choice_vertical]] | ||
| + | choices: | ||
| + | - command: search | ||
| + | to: chest | ||
| + | - to: corridor | ||
| + | - id: chest | ||
| + | text: The chest. | ||
| + | - id: corridor | ||
| + | text: The corridor. | ||
| + | </ | ||
| + | |||
| + | The list shows " | ||
| + | |||
| + | The [[en: | ||
| + | |||
| + | ===== Composed text and loops (4.17) ===== | ||
| + | |||
| + | A group can carry a condition and style, then contain other text blocks or loops. Styles are inherited; children can override them. | ||
| + | |||
| + | <code yaml> | ||
| + | text: | ||
| + | - if: v_visible_v = 1 | ||
| + | size: 23 | ||
| + | text: | ||
| + | - for_each: item | ||
| + | in: bag | ||
| + | do: | ||
| + | - text: t_item_t | ||
| + | </ | ||
| + | |||
| + | Declare '' | ||
| + | |||
| + | Write media tags in the scenario: '' | ||
| + | |||
| + | ===== Furniture item and vertical inventory ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code yaml> | ||
| + | title: 'Wiki 4.17: inventory' | ||
| + | language: en | ||
| + | rooms: | ||
| + | - id: atelier | ||
| + | auto_refresh: | ||
| + | text: | | ||
| + | Inventory: | ||
| + | [[INVENTORY_VERTICAL]] | ||
| + | First item in coffre: [[ITEM_IN: | ||
| + | objects: | ||
| + | - name: cle | ||
| + | location: coffre | ||
| + | pickup_reaction: | ||
| + | choices: | ||
| + | - command: regarder | ||
| + | button: Look | ||
| + | to: atelier | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | ===== Previous room name ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code yaml> | ||
| + | title: 'Wiki 4.17: previous' | ||
| + | rooms: | ||
| + | - id: entree | ||
| + | text: ' | ||
| + | choices: | ||
| + | - button: Continue | ||
| + | to: atelier | ||
| + | - id: atelier | ||
| + | text: ' | ||
| + | choices: | ||
| + | - button: Back | ||
| + | to: entree | ||
| + | </ | ||
| + | |||
| + | ===== Local alignment and sized splits ===== | ||
| + | |||
| + | On Web, Desktop and in HTML exports, '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code yaml> | ||
| + | title: 'Wiki 4.17: alignment' | ||
| + | vars_text: | ||
| + | cote: right | ||
| + | rooms: | ||
| + | - id: atelier | ||
| + | text: | | ||
| + | [[align: | ||
| + | [[align: | ||
| + | [[align: | ||
| + | [[split: | ||
| + | Second zone. | ||
| + | choices: | ||
| + | - command: rester | ||
| + | button: Stay | ||
| + | to: atelier | ||
| + | </ | ||
en/yaml/texte.1788117764.txt.gz · Dernière modification : de cyrilfiesta
