Outils pour utilisateurs

Outils du site


en:txt:texte

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:texte [2026/05/03 18:47] – Harmonize FR/EN language switch cyrilfiestaen:txt:texte [2026/08/31 20:48] (Version actuelle) – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiesta
Ligne 1: Ligne 1:
 **Language / Langue :** [[fr:txt:texte|FR]] | **EN** **Language / Langue :** [[fr:txt:texte|FR]] | **EN**
  
-====== TXT — Text and Formatting ======+====== Text and formatting (.txt format) ======
  
-Legacy TXT scenarios support plain text, inline variables, media markup and some Markdown rendering depending on the selected scenario mode.+===== Special characters ===== 
 + 
 +^ Syntax ^ Effect ^ 
 +| ''+n+'' | Line break in the displayed text 
 +| ''&&'' (end of line) | Continues on the next linesame logical block | 
 +| ''##'' | Comment - the bot ignores everything after it on that line | 
 +| ''%%[[text]]%%'' | Unformatted text block (disables the default ''fix'' markdown) | 
 +| ''%%|%%'' | Separator - do not use it inside texts | 
 +| ''@@'' | Separates several actions inside a 997 event | 
 +| ''*****'' | Room separator (five stars minimum) | 
 + 
 +===== Sounds and music ===== 
 + 
 +To play a sound, surround its URL with ''<<'' and ''>>'': 
 + 
 +<code> 
 +The monster roars! <<https://example.com/sounds/roar.mp3>> You take 10 damage. 
 +</code> 
 + 
 +Supported formats: mp3, ogg, wav. The bot joins the ''JDR-Bot'' voice channel automatically when it exists. 
 + 
 +If a sound is already playing, it is stopped before the new one starts. 
 + 
 +===== Images ===== 
 + 
 +To display an image, surround its URL with ''%%[[%%'' and ''%%]]%%'': 
 + 
 +<code> 
 +[[https://example.com/images/map.png]] 
 +</code> 
 + 
 +===== Variables inside text ===== 
 + 
 +To display the value of a numeric variable: ''v_name_v'' 
 + 
 +To display the value of a text variable: ''t_name_t'' 
 + 
 +<code> 
 +You have v_hp_v hit points left. 
 +Hello t_player_name_t, welcome to the adventure! 
 +</code> 
 + 
 +===== System variables ===== 
 + 
 +^ Variable ^ Value ^ 
 +| ''v_resultat_v'' | Result of the last random draw (''%=X:Y'') | 
 +| ''v_valeur_v'' | Last code entered through ''go room code''
 +| ''v_reponse_v'' | Last value entered with ''reply''
 + 
 +These names stay in Frencheven in an English scenario: they are read by the engine itself. 
 + 
 +===== Line breaks and continuation ===== 
 + 
 +  * ''+n+'' is a line break **shown** in Discord 
 +  * ''&&'' at the end of a line merges it with the next one, which is handy for object and variable blocks 
 + 
 +<code> 
 +This sentence is long.+n+It continues on a second displayed line. 
 +</code> 
 + 
 +<code> 
 +lamp|table|Table description|You take the lamp|The lamp.&& 
 +key|drawer|Drawer description|You take the key|The key. 
 +</code>
  
-  * ''v_name_v'' displays numeric variables. 
-  * ''t_name_t'' displays text variables. 
-  * ''[[url]]'' displays an image or a framed text block. 
-  * ''<<url>>'' plays a sound. 
en/txt/texte.1777826878.txt.gz · Dernière modification : de cyrilfiesta