en:yaml:dialogues
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| en:yaml:dialogues [2026/08/30 21:19] – maj 4.14 : dialogues, videos hebergees, mise en page, doc EN completee cyrilfiesta | en:yaml:dialogues [2026/10/19 10:46] (Version actuelle) – cyrilfiesta | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| A room text can become a **sequence of replies**: the player clicks to move the conversation forward, with a speaker, a portrait, a frame and a background. | A room text can become a **sequence of replies**: the player clicks to move the conversation forward, with a speaker, a portrait, a frame and a background. | ||
| - | Everything is optional. A sequence without portrait or background is simply | + | Everything is optional. A sequence without portrait or background is a series of replies shown one after another. |
| ===== A first sequence ===== | ===== A first sequence ===== | ||
| <code yaml> | <code yaml> | ||
| - | salles: | + | rooms: |
| - id: tavern | - id: tavern | ||
| - | | + | |
| type: sequence | type: sequence | ||
| replies: | replies: | ||
| Ligne 21: | Ligne 21: | ||
| </ | </ | ||
| - | The player reads the first reply, clicks, then reads the second one. Once the sequence ends, the room shows its choices as usual. | + | The player reads the first reply, clicks, then reads the second one. By default, the room's choices remain visible during |
| - | Both spellings work: '' | + | Use '' |
| + | |||
| + | ===== Reply types ===== | ||
| + | |||
| + | A reply can specify '' | ||
| + | |||
| + | In '' | ||
| ===== Character registry ===== | ===== Character registry ===== | ||
| Ligne 39: | Ligne 45: | ||
| portrait-position: | portrait-position: | ||
| - | salles: | + | rooms: |
| - id: checkpoint | - id: checkpoint | ||
| - | | + | |
| type: sequence | type: sequence | ||
| replies: | replies: | ||
| Ligne 69: | Ligne 75: | ||
| - text: " | - text: " | ||
| </ | </ | ||
| + | |||
| + | An explicit '' | ||
| To remove an element explicitly, use '' | To remove an element explicitly, use '' | ||
| Ligne 103: | Ligne 111: | ||
| portrait-overlap: | portrait-overlap: | ||
| </ | </ | ||
| + | |||
| + | A portrait can also use one cell from a spritesheet: | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code yaml> | ||
| + | - character: mara | ||
| + | text: "Come closer." | ||
| + | portrait-frame: | ||
| + | image: / | ||
| + | slice: 24 | ||
| + | corners: rounded | ||
| + | radius: 12 | ||
| + | </ | ||
| + | |||
| + | The spritesheet suffix also works for dialogue and speaker frame images. The cell is selected first, then its frame is sliced into nine zones. | ||
| ===== Speaker name ===== | ===== Speaker name ===== | ||
| Ligne 128: | Ligne 152: | ||
| * '' | * '' | ||
| - | With no colour | + | With no color set by the author, the engine picks black or white automatically, |
| ===== Backgrounds ===== | ===== Backgrounds ===== | ||
| Ligne 135: | Ligne 159: | ||
| <code yaml> | <code yaml> | ||
| - | salles: | + | rooms: |
| - id: laboratory | - id: laboratory | ||
| background-image: | background-image: | ||
| background-mode: | background-mode: | ||
| - | | + | |
| </ | </ | ||
| Ligne 150: | Ligne 174: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| - | | '' | + | | '' |
| - | | '' | + | | '' |
| Without '' | Without '' | ||
| + | |||
| + | With '' | ||
| + | |||
| + | <code yaml> | ||
| + | background-mode: | ||
| + | background-size: | ||
| + | </ | ||
| + | |||
| + | The last background actually displayed by a reply is kept when moving to another room, including another interface mode. A room can change only its mode or size without replacing the image. | ||
| ===== Frames ===== | ===== Frames ===== | ||
| Ligne 163: | Ligne 196: | ||
| <code yaml> | <code yaml> | ||
| frame: / | frame: / | ||
| - | slice: 24 | + | |
| </ | </ | ||
| Ligne 193: | Ligne 226: | ||
| </ | </ | ||
| - | '' | + | '' |
| A first click completes the running animation, the next one moves to the following reply. Links, interactive words, buttons and drag and drop **never** advance the sequence by accident: the player can use them freely. | A first click completes the running animation, the next one moves to the following reply. Links, interactive words, buttons and drag and drop **never** advance the sequence by accident: the player can use them freely. | ||
| Ligne 218: | Ligne 251: | ||
| <code yaml> | <code yaml> | ||
| transition: fade | transition: fade | ||
| + | </ | ||
| + | |||
| + | To set a shared duration, use a block: | ||
| + | |||
| + | <code yaml> | ||
| + | transition: | ||
| + | type: fade | ||
| + | duration: 700 | ||
| </ | </ | ||
| Ligne 227: | Ligne 268: | ||
| <code yaml> | <code yaml> | ||
| - | | + | |
| type: sequence | type: sequence | ||
| hide-controls: | hide-controls: | ||
| Ligne 236: | Ligne 277: | ||
| ===== Mixing text and sequences ===== | ===== Mixing text and sequences ===== | ||
| - | A '' | + | A '' |
| <code yaml> | <code yaml> | ||
| - | | + | |
| - "You push the office door open." | - "You push the office door open." | ||
| - type: sequence | - type: sequence | ||
| Ligne 259: | Ligne 300: | ||
| </ | </ | ||
| - | The French form is '' | + | The French form is '' |
| ===== On other platforms ===== | ===== On other platforms ===== | ||
en/yaml/dialogues.1788117593.txt.gz · Dernière modification : de cyrilfiesta
