Outils pour utilisateurs

Outils du site


en:editeur:globaux

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:editeur:globaux [2026/08/31 20:42] – Wiki : fins de pages homogènes, liens Discord retirés cyrilfiestaen:editeur:globaux [2026/09/26 03:48] (Version actuelle) – documentation 4.15 : succès, variables persistantes et exports cyrilfiesta
Ligne 3: Ligne 3:
 ====== Graphical editor - Globals panel ====== ====== Graphical editor - Globals panel ======
  
-The Globals panel gathers everything that applies to the whole scenario, independently from the rooms.+The Globals panel gathers everything applying to the whole scenario. 
 + 
 +===== Scenario information ===== 
 + 
 +The title, ''ID'', description, language, category and tags are edited here. An ID is required for achievements and ''_p'' variables. Keep it stable after publishing so existing player progress remains attached to the scenario.
  
 ===== Variables ===== ===== Variables =====
  
-Three kinds of global variables:+Two categories are enough to declare variables:
  
-  * **Numeric** (''vars:'') - integers and floats, changed and compared inside 997 events +  * **Numeric** (''vars:''); 
-  * **Text** (''text_vars:'') - character strings +  * **Text** (''text_vars:'').
-  * **Online** (''online_vars:'') - kept between games and servers, with the ''_o'' suffix+
  
-For each variable:+The name suffix then selects its scope: no suffix for the current game, ''_p'' for local persistent data and ''_o'' for a shared online value. The old ''online_vars:'' category is still understood on import but is no longer recommended.
  
-^ Field ^ Role ^ +Each variable has a name, an initial value and an optional description. See [[en:yaml:variables|Variables]].
-| **Name** | Identifier, with no space and no reserved sequence ''v_'', ''_v'', ''t_'', ''_t'', ''o_'', ''_o'' | +
-| **Initial value** | A number, a text, or a random expression | +
-| **Description** | Shown when the player inspects the variable | +
- +
-The reserved sequences matter: they are the delimiters the engine uses to find a variable inside a text. A name such as ''hp_victor'' would break, because the ''_v'' of "victor" is read as a closing delimiter.+
  
 ===== Global events ===== ===== Global events =====
  
-Global events are checked automatically on every player action, in every room. +Global events are checked automatically after every player action in every room. They have an identifier, an optional condition, actions and optional text.
- +
-Each global event has: +
-  * an **identifier**, which ''trigger_event:id'' can point to +
-  * an ''if:'' **condition**, which may be ''null'' to stay always active +
-  * ''do:'' **actions**, a list of actions to run +
-  * a **text**, the message shown (optional)+
  
 ===== Global timers ===== ===== Global timers =====
  
-Global timers run for the whole game, independently from the current room. See [[en:editeur:timers-hud|Timers and HUD]] for the details. +Global timers run throughout the game independently from the current room. See [[en:editeur:timers-hud|Timers and HUD]].
- +
-===== Global aliases =====+
  
-Global aliases let the player reach certain rooms from anywhere with the ''go alias'' command. They also appear as permanent reactions on Discord.+===== Global aliases and actions =====
  
-===== Global actions =====+A global alias provides access to a room from anywhere in the scenario. A global action makes a custom command available everywhere.
  
-Custom actions available in every room, completing the local actions defined room by room.+Achievements are not edited in this panel. They are in the [[en:editeur:explorateur|Explorer]]'s **Achievements** tab.
  
en/editeur/globaux.txt · Dernière modification : de cyrilfiesta