Outils pour utilisateurs

Outils du site


en:yaml:syntaxe-base

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
en:yaml:syntaxe-base [2026/08/31 20:54] – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiestaen:yaml:syntaxe-base [2026/10/19 01:25] (Version actuelle) – Wiki 4.17 : corrections apres audit des exemples et traductions cyrilfiesta
Ligne 3: Ligne 3:
 ====== YAML Syntax - Base ====== ====== YAML Syntax - Base ======
  
-The YAML format is the modern JDR-Bot scenario format. It is easier to read, easier to edit, and more powerful than the legacy .txt format.+YAML describes the rooms, choices and rules of a scenario. The legacy .txt format is still supported.
  
 ===== File Structure ===== ===== File Structure =====
Ligne 49: Ligne 49:
  
 ^ Key ^ Description ^ Required ^ ^ Key ^ Description ^ Required ^
 +| ''id:'' | Stable identifier, required for ''_p'' variables and achievements. | depends on usage |
 | ''title:'' | Scenario title. | yes | | ''title:'' | Scenario title. | yes |
 | ''description:'' | Description shown in the scenario catalogue and standalone export. | no | | ''description:'' | Description shown in the scenario catalogue and standalone export. | no |
Ligne 58: Ligne 59:
 | ''vars:'' | Global numeric variables. | no | | ''vars:'' | Global numeric variables. | no |
 | ''text_vars:'' | Global text variables. | no | | ''text_vars:'' | Global text variables. | no |
-| ''online_vars:'' | Persistent variables shared across playthroughs. | no |+| ''lists:'' | Lists of numbers, text or records. | no | 
 +| ''collections:'' | Named records. | no | 
 +| ''online_vars:'' | Legacy online declaration, retained for compatibility; use ''_p'' and ''_o'' suffixes for persistence. | no | 
 +| ''shortcuts:'' | Commands and events bound to keys, mouse or gamepad. | no | 
 +| ''achievements:'' | Scenario achievements. | no | 
 +| ''characters:'' | Characters used in dialogues. | no |
 | ''options:'' | Permanent toolbar buttons. | no | | ''options:'' | Permanent toolbar buttons. | no |
 | ''global_aliases:'' | Reusable button labels. | no | | ''global_aliases:'' | Reusable button labels. | no |
Ligne 68: Ligne 74:
 | ''global_events_order:'' | Global event order: ''before'' or ''after''. | no | | ''global_events_order:'' | Global event order: ''before'' or ''after''. | no |
 | ''rooms:'' | Scenario rooms. | yes | | ''rooms:'' | Scenario rooms. | yes |
 +
 +See [[en:yaml:options|Options and header]], [[en:yaml:variables|Variables]] and [[en:yaml:listes-boucles|Lists and collections]] for details and persistence.
  
 ===== Room Structure ===== ===== Room Structure =====
en/yaml/syntaxe-base.txt · Dernière modification : de cyrilfiesta