Outils pour utilisateurs

Outils du site


en:txt: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
Prochaine révision
Révision précédente
en:txt:syntaxe-base [2026/08/30 21:18] – maj 4.14 : dialogues, videos hebergees, mise en page, doc EN completee cyrilfiestaen:txt:syntaxe-base [2026/10/19 01:12] (Version actuelle) – Wiki 4.17 : corrections apres audit des exemples et traductions cyrilfiesta
Ligne 4: Ligne 4:
  
 <note> <note>
-The .txt format is the legacy JDR-Bot syntax, still supported. For new scenarios, prefer the [[en:yaml:syntaxe-base|YAML format]], which is more powerful.+The .txt format is the legacy JDR-Bot syntax, still supported. For new scenarios, prefer the [[en:yaml:syntaxe-base|YAML format]], which includes lists and loops.
 </note> </note>
  
Ligne 32: Ligne 32:
  
 The title is shown when the game starts. It may be followed by options separated with "|" (see [[en:txt:alias|Aliases and reactions]]). The title is shown when the game starts. It may be followed by options separated with "|" (see [[en:txt:alias|Aliases and reactions]]).
-⚠ Do not use "|" inside the title itself, it is a delimiter.+Do not use "|" inside the title itself, it is a delimiter.
  
 **Line 2 - Number of rooms** **Line 2 - Number of rooms**
Ligne 47: Ligne 47:
   - Available exits and events   - Available exits and events
  
-Rooms are separated with ''*****'' (at least five stars). **Do not put a separator before the first room.**+Rooms are separated with ''*****'' (at least five stars). 
 + 
 +  * **No separator before the first room.** 
 +  * **One separator after EVERY room, the last one included.** Without it the engine rejects the scenario: it looks for the end of the last block and runs past the end of the file. The number of ''*****'' lines must therefore equal the number of rooms. 
 + 
 +Whatever follows the last separator, online variables and global aliases, is not a room.
  
 ===== Available exits ===== ===== Available exits =====
Ligne 83: Ligne 88:
 play scenario_name play scenario_name
 </code> </code>
- 
-**Find us on the [[https://discord.gg/Z63DtVV|Make&Play Discord]]** 
  
en/txt/syntaxe-base.1788117508.txt.gz · Dernière modification : de cyrilfiesta