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
Prochaine révision
Ré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/10/18 22:43] (Version actuelle) – Documentation 4.17 : listes, boucles, raccourcis et editeur 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.
  
-===== Variables =====+===== Scenario information =====
  
-Three kinds of global variables:+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.
  
-  * **Numeric** (''vars:'') - integers and floats, changed and compared inside 997 events +===== Variables =====
-  * **Text** (''text_vars:'') - character strings +
-  * **Online** (''online_vars:'') - kept between games and servers, with the ''_o'' suffix+
  
-For each variable:+Simple variables have two categories:
  
-^ Field ^ Role ^ +  * **Numeric** (''vars:''); 
-| **Name** | Identifier, with no space and no reserved sequence ''v_'', ''_v'', ''t_'', ''_t'', ''o_'', ''_o'' | +  * **Text** (''text_vars:'').
-| **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.+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. 
 + 
 +Each variable has a name, an initial value and an optional description. See [[en:yaml:variables|Variables]].
  
 ===== 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 and actions ===== 
 + 
 +A global alias provides access to a room from anywhere in the scenario. A global action makes a custom command available everywhere. 
 + 
 +Achievements are not edited in this panel. They are in the [[en:editeur:explorateur|Explorer]]'s **Achievements** tab.
  
-===== Global aliases =====+===== Lists, collections and blocks (4.17) =====
  
-Global aliases let the player reach certain rooms from anywhere with the ''go alias'' command. They also appear as permanent reactions on Discord.+**Globals > Variables** also lets you create lists and collections, choose their scope and open nested data. Long lists support pagination and search.
  
-===== Global actions =====+The ''do:'' forms provide list operations, **For each**, **Repeat**, conditions, text and styles. The draw-and-remove operation offers random, first, last, index or value selection. Optional messages enable success and failure text separately.
  
-Custom actions available in every room, completing the local actions defined room by room.+Aliases and indices belong to their loop. Renaming updates references, including list messages. See [[en:yaml:listes-boucles|Syntax and examples]]. Command shortcuts are under **Globals > Interface**; see [[en:yaml:raccourcis|Shortcuts]].
  
en/editeur/globaux.1788201759.txt.gz · Dernière modification : de cyrilfiesta