{
  "format": "jdrbot-editor",
  "version": 2,
  "project": {
    "project_id": "50f54104-0abc-48ee-bd9c-234544f97446",
    "name": "🎓 Showcase JDR-Bot / (v_nb_parties_o_v parties jouées)",
    "source_yaml": null,
    "created_at": "2026-10-29T20:59:12",
    "updated_at": "2026-10-29T20:59:12",
    "jdrproj_path": "showcase.jdrproj"
  },
  "scenario": {
    "id": "showcase",
    "language": "fr",
    "title": "🎓 Showcase JDR-Bot / (v_nb_parties_o_v parties jouées)",
    "achievements": {
      "bienvenue": {
        "title": "Premiers pas",
        "description": "Lancer le showcase.",
        "points": 5,
        "icon": "🚪"
      },
      "collectionneur": {
        "title": "Collectionneur",
        "description": "Consulter la collection de succès du showcase.",
        "points": 10,
        "icon": "🖼️"
      },
      "vue_ensemble": {
        "title": "Vue d'ensemble",
        "description": "Consulter votre progression globale.",
        "points": 10,
        "icon": "🌍"
      },
      "visite_guidee": {
        "title": "Visite guidée",
        "description": "Consulter les deux collections de succès.",
        "points": 15,
        "icon": "🔔"
      },
      "graveur": {
        "title": "Gravé dans la pierre",
        "description": "Laisser un sceau qui survivra à la partie.",
        "points": 15,
        "icon": "💾"
      },
      "visiteur_assidu": {
        "title": "Visiteur assidu",
        "description": "Revenir dans le showcase pour une nouvelle partie.",
        "points": 20,
        "icon": "🔁",
        "secret": true
      },
      "triomphe": {
        "title": "Triomphe",
        "description": "Terminer le showcase par une victoire.",
        "points": 20,
        "icon": "🏆"
      },
      "chute": {
        "title": "Chute",
        "description": "Terminer le showcase par une défaite.",
        "points": 20,
        "icon": "💀"
      },
      "les_deux_faces": {
        "title": "Les deux faces",
        "description": "Avoir vu la victoire et la défaite.",
        "points": 50,
        "icon": "☯️",
        "secret": true
      }
    },
    "category": null,
    "scenario_tags": [],
    "ui": null,
    "hide_input": null,
    "phone_forme": null,
    "phone_home": null,
    "description": "Tutoriel interactif et vitrine complète des fonctionnalités JDR-Bot : objets, variables, succès, événements, tags, modèles, timers, encadrés HUD, image maps, styles de texte et bien plus. Chaque salle est commentée pour servir de référence aux auteurs.\n",
    "invalid_input_message": null,
    "markdown": "none",
    "default_text_size": null,
    "default_text_font": null,
    "default_text_background": null,
    "default_text_color": null,
    "cards": null,
    "imagemap_highlight_color": null,
    "imagemap_highlight_mode": null,
    "options": {
      "refresh": "🔄",
      "inventory": "🎒",
      "previous": "↩️",
      "v_score_v": "⭐",
      "accueil": "🏠",
      "url1": "https://cyril-fiesta.fr/jdr-bot-wiki/|📚 Wiki",
      "url2": "https://discord.gg/Z63DtVV|💬 Discord"
    },
    "vars": {
      "indice_courses": {
        "value": 1,
        "description": null
      },
      "nombre_courses": {
        "value": 3,
        "description": null
      },
      "prix_pain": {
        "value": 0,
        "description": null
      },
      "numero_prix": {
        "value": 1,
        "description": null
      },
      "total_boucle": {
        "value": 0,
        "description": null
      },
      "appels_dynamiques": {
        "value": 0,
        "description": null
      },
      "score": {
        "value": 0,
        "description": null
      },
      "col": {
        "value": 0,
        "description": null
      },
      "row": {
        "value": 0,
        "description": null
      },
      "tooltip_compteur": {
        "value": 0,
        "description": null
      },
      "tooltip_clef": {
        "value": 0,
        "description": null
      },
      "tooltip_lock": {
        "value": 1,
        "description": null
      },
      "clic_cle": {
        "value": 0,
        "description": null
      },
      "clic_coffre": {
        "value": 0,
        "description": null
      },
      "clic_lock": {
        "value": 1,
        "description": null
      },
      "clic_meca": {
        "value": 0,
        "description": null
      },
      "dd_cle": {
        "value": 0,
        "description": null
      },
      "dd_porte": {
        "value": 0,
        "description": null
      },
      "dd_coffre": {
        "value": 0,
        "description": null
      },
      "dd_potions": {
        "value": 0,
        "description": null
      },
      "dd_reparations": {
        "value": 0,
        "description": null
      },
      "visites_p": {
        "value": 0,
        "description": null
      },
      "sceaux_p": {
        "value": 0,
        "description": null
      },
      "fin_victoire_p": {
        "value": 0,
        "description": null
      },
      "fin_defaite_p": {
        "value": 0,
        "description": null
      },
      "lancement_compte": {
        "value": 0,
        "description": null
      },
      "vu_collection": {
        "value": 0,
        "description": null
      },
      "vu_globaux": {
        "value": 0,
        "description": null
      },
      "pv": {
        "value": 10,
        "description": "Points de vie"
      },
      "pvmax": {
        "value": 10,
        "description": "PV maximum"
      },
      "force": {
        "value": 3,
        "description": "Force du personnage"
      },
      "chance": {
        "value": 5,
        "description": "Indice de chance"
      },
      "desresultat": {
        "value": 0,
        "description": "Résultat du dernier lancer de dé"
      },
      "secondes_refresh": {
        "value": 0,
        "description": null
      },
      "compteur": {
        "value": 0,
        "description": "Compteur de passages"
      },
      "bombe_en_cours": {
        "value": 0,
        "description": null
      },
      "ticks_ecoules": {
        "value": 0,
        "description": null
      },
      "gobelin_pts": {
        "value": 0,
        "description": null
      },
      "troll_pts": {
        "value": 0,
        "description": null
      },
      "or": {
        "value": 0,
        "description": "Pièces d'or (démo HUD)"
      },
      "recordscore_o": {
        "value": 0,
        "description": "Meilleur score jamais atteint"
      }
    },
    "vars_text": {
      "surnom": {
        "value": null,
        "description": null
      },
      "cle_prix": {
        "value": "pain",
        "description": null
      },
      "cote_alignement": {
        "value": "droite",
        "description": null
      },
      "evenement_choisi": {
        "value": "appel_dynamique",
        "description": null
      },
      "objet_course": {
        "value": "",
        "description": null
      },
      "nomjoueur": {
        "value": "Aventurier",
        "description": "Nom du joueur"
      },
      "combinaison": {
        "value": "rien",
        "description": "Ingrédient en attente de combinaison"
      },
      "dernier_sceau_p": {
        "value": "aucun",
        "description": "Dernier sceau laissé par le joueur"
      },
      "gobelin_nom": {
        "value": "Gobelin",
        "description": "Nom de l'ennemi 1"
      },
      "troll_nom": {
        "value": "Troll",
        "description": "Nom de l'ennemi 2"
      }
    },
    "lists": {
      "liste_courses": [
        "pain",
        "lait",
        "pain"
      ],
      "rayons_courses": [
        [
          "pain",
          "lait"
        ],
        [
          "corde",
          "lampe"
        ]
      ],
      "galerie_images": [
        "https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:2",
        "https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:4",
        "https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:3:6"
      ]
    },
    "collections": {
      "fiche_client": {
        "nom": "Lina",
        "adresse": {
          "ville": "Lyon"
        }
      },
      "tarifs_objets": {
        "pain": 3,
        "corde": 5
      },
      "tarifs_codes": {
        "1": 4,
        "2": 7
      }
    },
    "data_info": null,
    "dialogue_defaults": null,
    "characters": null,
    "global_aliases": {
      "retour": "🏠 Accueil"
    },
    "tags": {
      "coffre_commun": {
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "coffre_ouvert",
                "op": "=",
                "val": 1
              },
              {
                "type": "weighted_val",
                "var": "score",
                "op": "+",
                "weights": [
                  {
                    "val": 5,
                    "w": 50
                  },
                  {
                    "val": 10,
                    "w": 30
                  },
                  {
                    "val": 25,
                    "w": 20
                  }
                ]
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "📦 Vous ouvrez le coffre ! (score total : v_score_v ⭐)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "📦 Ouvrir le coffre",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "coffre_ouvert",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": null,
        "items": null,
        "init": [
          {
            "id": "init_1acbf13b",
            "var": "coffre_ouvert",
            "value": 0,
            "description": null,
            "type": "numeric"
          }
        ],
        "actions": null
      },
      "panneau_retour": {
        "events": null,
        "choices": [
          {
            "id": "choice_ea90a2ea",
            "command": "retour_menu",
            "button": "-> Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_db4a32a2",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "items": null,
        "init": null,
        "actions": null
      }
    },
    "modeles": {
      "mini_combat": {
        "description": "",
        "sur_place": false,
        "sorties": {
          "victoire": "fin_modele",
          "defaite": "fin_modele"
        },
        "salles": [
          {
            "id": "attaque",
            "num": null,
            "button": null,
            "text": "**Combat contre t_nom_ennemi_t !**\nPV ennemi : v_pv_ennemi_v ❤️",
            "ui": null,
            "hide_input": null,
            "screen": null,
            "forme": null,
            "auto_refresh": null,
            "command_echo": null,
            "shortcuts": [],
            "phone_auto_orientation": null,
            "interaction_ko": null,
            "show_type": null,
            "background": null,
            "color": null,
            "card": null,
            "hud": null,
            "clear_hud": null,
            "tag_before": null,
            "tag_after": null,
            "modeles_instances": null,
            "init": null,
            "items": null,
            "events": [
              {
                "id": "evt_1",
                "if": [
                  {
                    "type": "var",
                    "var": "pv_ennemi",
                    "op": "<=",
                    "val": 0,
                    "var_kind": "numeric"
                  }
                ],
                "do": [
                  {
                    "type": "goto",
                    "to": "recompense"
                  }
                ],
                "timer": null,
                "duration": null,
                "text": [
                  {
                    "text": "t_nom_ennemi_t est vaincu !"
                  }
                ],
                "background": null,
                "color": null,
                "text_ko": null,
                "text_ko_background": null,
                "text_ko_color": null,
                "hud": null,
                "clear_hud": null,
                "button": null,
                "direction": null,
                "source": null,
                "target": null,
                "visible_if": null,
                "disabled_if": null,
                "max": null,
                "once": null,
                "tick": null,
                "id_auto": true,
                "shortcut": null,
                "show_shortcut": null
              }
            ],
            "choices": [
              {
                "id": "choice_8bfaafaf",
                "command": "frapper",
                "button": "⚔️ Frapper (-5 PV ennemi)",
                "shape": null,
                "direction": null,
                "to": "frappe",
                "if": null,
                "visible_if": null,
                "disabled_if": null,
                "effect": null,
                "text": null,
                "text_ok": null,
                "text_ko": null,
                "text_ok_background": null,
                "text_ok_color": null,
                "text_ko_background": null,
                "text_ko_color": null,
                "hud": null,
                "clear_hud": null,
                "text_order": [
                  "text",
                  "text_ok",
                  "text_ko"
                ],
                "shortcut": null,
                "show_shortcut": null
              },
              {
                "id": "choice_2e6ca48d",
                "command": "fuir",
                "button": "🏃 Fuir",
                "shape": null,
                "direction": null,
                "to": "defaite",
                "if": null,
                "visible_if": null,
                "disabled_if": null,
                "effect": null,
                "text": null,
                "text_ok": null,
                "text_ko": null,
                "text_ok_background": null,
                "text_ok_color": null,
                "text_ko_background": null,
                "text_ko_color": null,
                "hud": null,
                "clear_hud": null,
                "text_order": [
                  "text",
                  "text_ok",
                  "text_ko"
                ],
                "shortcut": null,
                "show_shortcut": null
              }
            ],
            "actions": null,
            "triggers": null
          },
          {
            "id": "frappe",
            "num": null,
            "button": null,
            "text": "null",
            "ui": null,
            "hide_input": null,
            "screen": null,
            "forme": null,
            "auto_refresh": null,
            "command_echo": null,
            "shortcuts": [],
            "phone_auto_orientation": null,
            "interaction_ko": null,
            "show_type": null,
            "background": null,
            "color": null,
            "card": null,
            "hud": null,
            "clear_hud": null,
            "tag_before": null,
            "tag_after": null,
            "modeles_instances": null,
            "init": null,
            "items": null,
            "events": [
              {
                "id": "evt_1",
                "if": null,
                "do": [
                  {
                    "type": "var",
                    "var": "pv_ennemi",
                    "op": "-",
                    "val": 5
                  },
                  {
                    "type": "goto",
                    "to": "attaque"
                  }
                ],
                "timer": null,
                "duration": null,
                "text": [
                  {
                    "text": "Vous frappez t_nom_ennemi_t !"
                  }
                ],
                "background": null,
                "color": null,
                "text_ko": null,
                "text_ko_background": null,
                "text_ko_color": null,
                "hud": null,
                "clear_hud": null,
                "button": null,
                "direction": null,
                "source": null,
                "target": null,
                "visible_if": null,
                "disabled_if": null,
                "max": null,
                "once": null,
                "tick": null,
                "id_auto": true,
                "shortcut": null,
                "show_shortcut": null
              }
            ],
            "choices": null,
            "actions": null,
            "triggers": null
          },
          {
            "id": "recompense",
            "num": null,
            "button": null,
            "text": "🏆 Victoire ! t_nom_ennemi_t est vaincu.",
            "ui": null,
            "hide_input": null,
            "screen": null,
            "forme": null,
            "auto_refresh": null,
            "command_echo": null,
            "shortcuts": [],
            "phone_auto_orientation": null,
            "interaction_ko": null,
            "show_type": null,
            "background": null,
            "color": null,
            "card": null,
            "hud": null,
            "clear_hud": null,
            "tag_before": null,
            "tag_after": null,
            "modeles_instances": null,
            "init": null,
            "items": null,
            "events": [
              {
                "id": "evt_1",
                "if": null,
                "do": [
                  {
                    "type": "var",
                    "var": "score",
                    "op": "+",
                    "val": 10
                  },
                  {
                    "type": "goto",
                    "to": "victoire"
                  }
                ],
                "timer": null,
                "duration": null,
                "text": null,
                "background": null,
                "color": null,
                "text_ko": null,
                "text_ko_background": null,
                "text_ko_color": null,
                "hud": null,
                "clear_hud": null,
                "button": null,
                "direction": null,
                "source": null,
                "target": null,
                "visible_if": null,
                "disabled_if": null,
                "max": null,
                "once": null,
                "tick": null,
                "id_auto": true,
                "shortcut": null,
                "show_shortcut": null
              }
            ],
            "choices": null,
            "actions": null,
            "triggers": null
          }
        ],
        "variables_generiques": {
          "pv_ennemi": {
            "type": "entier",
            "defaut": 10,
            "obligatoire": false,
            "description": ""
          },
          "nom_ennemi": {
            "type": "texte",
            "defaut": "Ennemi",
            "obligatoire": false,
            "description": ""
          }
        }
      }
    },
    "global_actions": [
      {
        "id": "actg_75e7d82a",
        "verb": "aller",
        "target": "all",
        "alias": null,
        "button": null,
        "direction": null,
        "if": null,
        "visible_if": null,
        "disabled_if": null,
        "do": [
          {
            "type": "goto",
            "to": "t_action_cible_ok_t"
          }
        ],
        "text_ok": null,
        "text_ko": "Destination «t_action_cible_t» inconnue.",
        "text_ok_background": null,
        "text_ok_color": null,
        "text_ko_background": null,
        "text_ko_color": null,
        "hud": null,
        "clear_hud": null,
        "shortcut": null,
        "show_shortcut": null
      },
      {
        "id": "actg_dd1f69e2",
        "verb": "score",
        "target": "all",
        "alias": null,
        "button": null,
        "direction": null,
        "if": null,
        "visible_if": null,
        "disabled_if": null,
        "do": null,
        "text_ok": "⭐ Score actuel : v_score_v | Record : v_recordscore_o_v",
        "text_ko": null,
        "text_ok_background": null,
        "text_ok_color": null,
        "text_ko_background": null,
        "text_ko_color": null,
        "hud": null,
        "clear_hud": null,
        "shortcut": null,
        "show_shortcut": null
      }
    ],
    "global_events": [
      {
        "id": "bonus_visite",
        "if": null,
        "do": [
          {
            "type": "var",
            "var": "score",
            "op": "+",
            "val": 1
          }
        ],
        "timer": null,
        "duration": null,
        "text": [
          {
            "text": "✨ Bonus visite : +1 score ! (Total : v_score_v)"
          }
        ],
        "background": null,
        "color": null,
        "text_ko": null,
        "text_ko_background": null,
        "text_ko_color": null,
        "hud": null,
        "clear_hud": null,
        "button": null,
        "direction": null,
        "source": null,
        "target": null,
        "visible_if": null,
        "disabled_if": null,
        "max": null,
        "once": null,
        "tick": null,
        "shortcut": null,
        "show_shortcut": null,
        "state": "OFF"
      },
      {
        "id": "soin_urgence",
        "if": [
          {
            "type": "var",
            "var": "pv",
            "op": "<",
            "val": 5,
            "var_kind": "numeric"
          }
        ],
        "do": [
          {
            "type": "var",
            "var": "pv",
            "op": "+",
            "val": 2
          }
        ],
        "timer": null,
        "duration": null,
        "text": [
          {
            "text": "🚑 Soin d'urgence ! +2 PV (PV : v_pv_v/v_pvmax_v)"
          }
        ],
        "background": null,
        "color": null,
        "text_ko": null,
        "text_ko_background": null,
        "text_ko_color": null,
        "hud": null,
        "clear_hud": null,
        "button": null,
        "direction": null,
        "source": null,
        "target": null,
        "visible_if": null,
        "disabled_if": null,
        "max": null,
        "once": null,
        "tick": null,
        "shortcut": null,
        "show_shortcut": null,
        "state": "OFF"
      },
      {
        "id": "alarme_bombe",
        "if": [
          {
            "type": "var",
            "var": "comptebombe",
            "op": "=",
            "val": 0,
            "var_kind": "numeric"
          }
        ],
        "do": [
          {
            "type": "event_global",
            "id": "alarme_bombe",
            "state": "OFF"
          },
          {
            "type": "var",
            "var": "score",
            "op": "+",
            "val": 10
          },
          {
            "type": "var",
            "var": "bombe_en_cours",
            "op": "=",
            "val": 0
          },
          {
            "type": "goto",
            "to": "demo_timers"
          }
        ],
        "timer": null,
        "duration": null,
        "text": [
          {
            "text": "💥 BOOM ! Le timer 'comptebombe' a expiré, où que vous soyez ! (+10 score)"
          }
        ],
        "background": null,
        "color": null,
        "text_ko": null,
        "text_ko_background": null,
        "text_ko_color": null,
        "hud": null,
        "clear_hud": null,
        "button": null,
        "direction": null,
        "source": null,
        "target": null,
        "visible_if": null,
        "disabled_if": null,
        "max": null,
        "once": null,
        "tick": null,
        "shortcut": null,
        "show_shortcut": null,
        "state": "OFF"
      }
    ],
    "global_events_order": "apres",
    "global_timers": [
      {
        "id": "comptebombe",
        "state": "OFF",
        "duration": 10,
        "do": null,
        "text": null,
        "background": null,
        "color": null,
        "tick": null
      },
      {
        "id": "encadre_chrono",
        "state": "OFF",
        "duration": 120,
        "do": null,
        "text": null,
        "background": null,
        "color": null,
        "tick": null
      }
    ],
    "global_triggers": [
      {
        "id": "decl_9b918a72",
        "trigger": {
          "type": "sequence",
          "keys": [
            "KeyA",
            "KeyB",
            "KeyC",
            "KeyD",
            "KeyE"
          ]
        },
        "if": null,
        "do": [
          {
            "type": "easter_egg",
            "effect": "confetti"
          }
        ],
        "once": false,
        "text": [
          {
            "text": "🔤 abcdefghijklmnopqrstuvwxyz"
          }
        ],
        "text_ko": null
      }
    ],
    "auto_refresh_text": false,
    "command_echo": null,
    "shortcuts": [],
    "phone_auto_orientation": null,
    "show_type": null,
    "easter_eggs": null,
    "rooms": [
      {
        "id": "accueil",
        "num": null,
        "button": "🏠 Accueil",
        "text": "**🎓 Bienvenue dans le Showcase JDR-Bot !**\nBonjour t_nomjoueur_t ! Score actuel : v_score_v ⭐\n\nChoisissez une démonstration :",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": [
              {
                "type": "var",
                "var": "lancement_compte",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "visites_p",
                "op": "+",
                "val": 1
              },
              {
                "type": "var",
                "var": "lancement_compte",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": null,
            "do": [
              {
                "type": "achievement",
                "id": "bienvenue"
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_3",
            "if": [
              {
                "type": "var",
                "var": "visites_p",
                "op": ">=",
                "val": 2,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "achievement",
                "id": "visiteur_assidu"
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_4",
            "if": [
              {
                "type": "var",
                "var": "fin_victoire_p",
                "op": ">=",
                "val": 1,
                "var_kind": "numeric"
              },
              {
                "type": "var",
                "var": "fin_defaite_p",
                "op": ">=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "achievement",
                "id": "les_deux_faces"
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_6821cf3f",
            "command": "texte",
            "button": "✍️ Texte & affichage",
            "shape": null,
            "direction": null,
            "to": "menu_texte",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_1c5952e4",
            "command": "variables",
            "button": "🔢 Variables & conditions",
            "shape": null,
            "direction": null,
            "to": "menu_variables",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_8b441500",
            "command": "objets",
            "button": "📦 Objets & actions",
            "shape": null,
            "direction": null,
            "to": "menu_objets",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_8d085d3b",
            "command": "events",
            "button": "🎲 Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_b9938a11",
            "command": "gameplay",
            "button": "🎮 Gameplay alternatif",
            "shape": null,
            "direction": null,
            "to": "menu_gameplay",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_ad0b45a0",
            "command": "media",
            "button": "🎬 Sons, images & vidéos",
            "shape": null,
            "direction": null,
            "to": "menu_media",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_02bc14a0",
            "command": "timers",
            "button": "⏱️ Timers",
            "shape": null,
            "direction": null,
            "to": "demo_timers",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_335f1cb5",
            "command": "progression",
            "button": "🏆 Progression du joueur",
            "shape": null,
            "direction": null,
            "to": "menu_progression",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_b05c89b1",
            "command": "options",
            "button": "🔗 Options & liens",
            "shape": null,
            "direction": null,
            "to": "demo_options",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_ac80cbd9",
            "command": "aide",
            "button": "❓ Aide",
            "shape": null,
            "direction": null,
            "to": "aide",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "aide",
        "num": null,
        "button": null,
        "text": "**💡 Comment naviguer dans ce showcase ?**\n\nTapez un numéro ou cliquez un bouton pour avancer.\nPour interagir : tapez le verbe directement (ex: prendre clé)\nSur Discord : commandes slash dédiées (/prendre, /examiner, /jeter)\nou /action pour les verbes personnalisés (/action combiner cristal)\nLe bouton ↩️ retourne à la salle précédente.\nLe bouton 🏠 retourne à l'accueil depuis n'importe où.\n\nLe showcase lui-même est réparti dans **quatre fichiers YAML**. Pour le\njoueur, cela ne change rien : le moteur les assemble avant de lancer la\npartie. Les commentaires des fichiers montrent aux auteurs comment faire.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_1977f730",
            "command": "retour",
            "button": "↩️ Retour",
            "shape": null,
            "direction": null,
            "to": "previous",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "menu_texte",
        "num": null,
        "button": null,
        "text": "**✍️ TEXTE & AFFICHAGE**\n\nTout ce qui concerne l'écriture et la mise en forme de ce que lit le\njoueur : styles, blocs narratifs, texte qui se met à jour tout seul et\ninfobulles au survol.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_be3f4d3c",
            "command": "markdown",
            "button": "✍️ Formatage Markdown",
            "shape": null,
            "direction": null,
            "to": "demo_markdown",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_1e7f35fb",
            "command": "refresh",
            "button": "🔄 Texte dynamique",
            "shape": null,
            "direction": null,
            "to": "demo_auto_refresh",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_0037dba1",
            "command": "tooltips",
            "button": "💬 Tooltips",
            "shape": null,
            "direction": null,
            "to": "demo_tooltips",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_b46d2877",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "menu_variables",
        "num": null,
        "button": null,
        "text": "**🔢 VARIABLES & CONDITIONS**\n\nLe cœur de la logique d'un scénario : stocker des valeurs, les comparer,\net n'afficher un texte ou un bouton que dans certains cas.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_12b5dda7",
            "command": "variables",
            "button": "🔢 Variables",
            "shape": null,
            "direction": null,
            "to": "demo_variables",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_563b5325",
            "command": "conditions",
            "button": "🔀 Conditions & affichage",
            "shape": null,
            "direction": null,
            "to": "demo_conditions",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_e1d8cde1",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "menu_objets",
        "num": null,
        "button": null,
        "text": "**📦 OBJETS & ACTIONS**\n\nCe que le joueur peut ramasser, porter et manipuler, puis les verbes\npersonnalisés qui donnent leurs propres règles au scénario.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_68ca7b77",
            "command": "objets",
            "button": "📦 Objets & Inventaire",
            "shape": null,
            "direction": null,
            "to": "demo_objets",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_57210abc",
            "command": "actions",
            "button": "⚙️ Actions personnalisées",
            "shape": null,
            "direction": null,
            "to": "demo_actions",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_8923e263",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "menu_events",
        "num": null,
        "button": null,
        "text": "**🎲 ÉVÉNEMENTS & ALÉATOIRE**\n\nCe qui se déclenche tout seul : à l'entrée d'une salle, partout dans le\nscénario, au hasard, ou sur une combinaison de touches que rien\nn'annonce.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_bc3b4bfe",
            "command": "events",
            "button": "🎲 Événements & Aléatoire",
            "shape": null,
            "direction": null,
            "to": "demo_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_735f06c3",
            "command": "globaux",
            "button": "✨ Événements globaux",
            "shape": null,
            "direction": null,
            "to": "demo_events_globaux",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_fcdbbf64",
            "command": "declencheurs",
            "button": "⚡ Déclencheurs cachés",
            "shape": null,
            "direction": null,
            "to": "demo_declencheurs",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_07f8fc29",
            "command": "tags",
            "button": "🏷️ Tags & modèles de salles",
            "shape": null,
            "direction": null,
            "to": "demo_tags",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_1eb41408",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "menu_gameplay",
        "num": null,
        "button": null,
        "text": "**🎮 GAMEPLAY ALTERNATIF**\n\nDe quoi sortir du texte et des boutons : cliquer dans une image,\nassembler des tuiles, faire glisser un objet sur un autre, ou garder des\ninformations en permanence à l'écran.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_04385ef9",
            "command": "imagemap",
            "button": "🖼️ Image Map / Point & Clic",
            "shape": null,
            "direction": null,
            "to": "demo_imagemap",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_3b1f69d3",
            "command": "clic",
            "button": "👆 Éléments cliquables",
            "shape": null,
            "direction": null,
            "to": "demo_clickable",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_9c68e125",
            "command": "dragdrop",
            "button": "🖱️ Glisser-déposer",
            "shape": null,
            "direction": null,
            "to": "demo_dragdrop",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_3ad8dbaa",
            "command": "tilemap",
            "button": "🗺️ Tuiles & Tilemaps",
            "shape": null,
            "direction": null,
            "to": "demo_tilemap",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_bc11eac9",
            "command": "hud",
            "button": "🖼️ Encadrés HUD",
            "shape": null,
            "direction": null,
            "to": "demo_hud",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_097e8d27",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "menu_media",
        "num": null,
        "button": null,
        "text": "**🎬 SONS, IMAGES & VIDÉOS**\n\nTout ce qui s'entend et se regarde : musiques et bruitages, illustrations\nde salle, et vidéos jouées dans la page ou tirées d'une plateforme.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_21de2c1a",
            "command": "media",
            "button": "🔊 Sons & Images",
            "shape": null,
            "direction": null,
            "to": "demo_media",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_5fd813e0",
            "command": "video",
            "button": "🎬 Vidéos",
            "shape": null,
            "direction": null,
            "to": "demo_video",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_209e7c06",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "menu_progression",
        "num": null,
        "button": null,
        "text": "**🏆 PROGRESSION DU JOUEUR**\n\nCe qu'il reste une fois la partie finie : les succès enregistrés sur\nl'appareil, et les différentes façons de terminer un scénario.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_0b45aedd",
            "command": "succes",
            "button": "🏆 Succès",
            "shape": null,
            "direction": null,
            "to": "demo_succes",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_b9b44e7c",
            "command": "fins",
            "button": "🎯 Fins de partie",
            "shape": null,
            "direction": null,
            "to": "demo_fins",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_41d05c09",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_markdown",
        "num": null,
        "button": "✍️ Formatage Markdown",
        "text": [
          {
            "text": "**✍️ Démonstration : Formatage Markdown**\n\nLe champ `fond:` de cette salle est réglé sur `\"#0d1117\"` : un noir profond qui donne une ambiance \"terminal de nuit\". Chaque salle peut avoir sa propre couleur de fond indépendamment des autres.\n\n----\n**Formatage inline** : toujours actif, quel que soit le `markdown:` global\n\nVoici les six styles disponibles, avec de vrais exemples narratifs :\n\n**Le Conseil des Anciens** se réunit en secret. -> `**texte**` (gras)\n*Un murmure parcourut la salle.* -> `*texte*` (italique)\n__Avertissement : zone de quarantaine.__ -> `__texte__` (souligné)\n~~Cette route mène à Kaldrath~~ *(mise à jour de la carte)* -> `~~texte~~` (barré)\nLe code d'accès est `X7-DELTA-09` : mémorisez-le. -> `` `texte` `` (code inline)\nLe traître est ||Ser Aldric, le chambellan||. -> `||texte||` (spoiler, cliquez pour révéler)\n\n----\n**Blockquote** : citation narrative avec `>`\n\n> *\"Toute carte est un mensonge poli. La vérité, elle, n'a pas de légende.\"*\n> - Cartographe impérial, *Archives de Vel'Mora*, tome III\n\n----\n**Blocs de code colorés** (colorisation syntaxique sur web/desktop)\n\nDiff de règles de combat (bloc diff) :\n```diff\n- Attaque de flanc : +1 dé\n+ Attaque de flanc : +2 dés (révision v2.4)\n- Parade coûte 2 PA\n+ Parade coûte 1 PA (simplification)\n```\n\nExtrait de scénario (bloc yaml) :\n```yaml\nsalles:\n  - id: carrefour\n    texte: \"Trois chemins s'offrent à vous.\"\n    choix:\n      - commande: nord\n        vers: foret\n      - commande: sud\n        vers: village\n```\n\nFonction de lancer de dés (bloc python) :\n```python\ndef lancer_des(nb: int, faces: int) -> int:\n    return sum(random.randint(1, faces) for _ in range(nb))\n\n# Exemple : 2d6 + modificateur de force\nresultat = lancer_des(2, 6) + modificateur\n```\n\n----\n**Champ `markdown:` global**, enveloppe *tout* le texte du scénario\n\nValeurs possibles : `story` (par défaut) / `none` / `fix` / `bold` / `italic` / `underline` / `strikethrough` / `code` / `block` / `quote` / `py` / `yaml` / `js` / …\n\nCe showcase utilise `markdown: none` (texte brut) pour que le formatage inline ci-dessus soit lisible. Un scénario de type \"log terminal\" pourrait utiliser `markdown: fix` pour tout afficher en monospace.\n\n----\n**Styles par bloc** : blocs suivants avec taille, police, fond et/ou couleur :\n"
          },
          {
            "text": "✦ Titre en Georgia 28 px",
            "taille": 28,
            "police": "Georgia"
          },
          {
            "text": "SYSTEM > Monospace 14 px, style terminal",
            "taille": 14,
            "police": "monospace"
          },
          {
            "text": "Note manuscrite en cursive, 22 px.",
            "taille": 22,
            "police": "cursive"
          },
          {
            "text": "Badge narratif : fond et couleur appliqués uniquement à ce bloc.",
            "taille": 20,
            "police": "monospace",
            "background": "#111827",
            "color": "#facc15"
          },
          {
            "text": "🏆 Georgia 18 px, affiché uniquement si score > 0 (vous avez v_score_v pts).",
            "taille": 18,
            "police": "Georgia",
            "if": [
              {
                "type": "var",
                "var": "score",
                "op": ">",
                "val": 0,
                "var_kind": "numeric"
              }
            ]
          },
          {
            "text": "*(Discord & terminal : styles par bloc ignorés silencieusement, le texte s'affiche normalement.)*"
          },
          {
            "text": "[[align:left]]À gauche.[[/align]]\n[[align:center]]Au centre.[[/align]]\n[[align:t_cote_alignement_t]]À droite.[[/align]]\n\n(Discord / Terminal : textes sans alignement.)"
          }
        ],
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": "#0d1117",
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "**📖 Blocs narratifs typés**\n\nUn bloc ` ```type ``` ` donne à un passage un rendu propre à sa nature. Ils fonctionnent avec tous les réglages `markdown:` : ce showcase est en `none`, et pourtant :\n\n```narration\nLa brume s'épaissit entre les arbres. **Chaque pas** craque sur le sol gelé. Quelque chose vous observe depuis les sous-bois.\n```\n\n```dialogue\n**L'inconnu** : Vous n'auriez pas dû venir ici. *Personne ne revient de la forêt après la cloche de minuit.*\n```\n\n```pensee\n*Il ment. Ses mains tremblent légèrement : il a peur de quelque chose.*\n```\n\n```systeme\n**Objectif mis à jour** : Trouver l'origine de la cloche.\nDistance estimée : 400 m nord-ouest.\n```\n\n```journal\nNuit du 14 octobre.\n\nTroisième nuit sans sommeil. La cloche résonne exactement à minuit : ni avant, ni après. Je dois comprendre pourquoi.\n```\n\nTypes disponibles : `narration` / `dialogue` / `pensee` / `systeme` / `journal`, ainsi que `message`, `message-envoye`, `notification` et `appel`, pensés pour l'interface téléphone.\n\nAvec `markdown: story` (le réglage par défaut), c'est en plus tout le texte des salles qui prend cet habillage narratif.\n\nLe rendu visuel dépend du **style UI choisi par le joueur** (sélecteur en haut de l'interface) : `classique` / `rpg` / `terminal` / `aventure` *(Pas une clé YAML, le scénario s'adapte automatiquement au style choisi.)*\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "📖 Voir les blocs narratifs",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_0994cbd0",
            "command": "retour_menu",
            "button": "-> Texte & affichage",
            "shape": null,
            "direction": null,
            "to": "menu_texte",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_6d6814f2",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_variables",
        "num": null,
        "button": null,
        "text": [
          {
            "text": "**🔢 Variables**\n\nVotre score (nombre) : v_score_v ⭐ / PV : v_pv_v/v_pvmax_v ❤️\nVotre nom (texte) : t_nomjoueur_t"
          },
          {
            "text": "Votre surnom (texte vide) : aucun pour l'instant.",
            "if": [
              {
                "type": "var",
                "var": "surnom",
                "op": "=",
                "val": "null",
                "var_kind": "text"
              }
            ]
          },
          {
            "text": "\nVos courses (liste / v_nombre_courses_v articles) :"
          },
          {
            "type": "for_each",
            "alias": "course_affichee",
            "list": "liste_courses",
            "do": [
              {
                "type": "loop_group",
                "if": null,
                "do": [],
                "text": "• t_course_affichee_t"
              }
            ]
          },
          {
            "text": "Votre contact (collection) : t_fiche_client.nom_t, à t_fiche_client.adresse.ville_t.\n\nAjoutez du pain à vos courses ou consultez son prix. Vous pouvez aussi changer de nom avec renommer suivi du nom choisi."
          }
        ],
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": true,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": [
          {
            "id": "init_5ade7cef",
            "var": "compteur",
            "value": "+1",
            "description": null,
            "type": "numeric"
          }
        ],
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": [
              {
                "type": "var",
                "var": "score",
                "op": ">",
                "val": {
                  "var": "recordscore_o",
                  "var_kind": "numeric"
                },
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "recordscore_o",
                "op": "=",
                "val": {
                  "var": "score",
                  "var_kind": "numeric"
                }
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "sceaux_p",
                "op": "+",
                "val": 1
              },
              {
                "type": "var",
                "var": "dernier_sceau_p",
                "op": "=",
                "val": "sceau de cire"
              },
              {
                "type": "achievement",
                "id": "graveur"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "💾 Sceau n°v_sceaux_p_v posé. Il sera toujours là à votre prochaine partie."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "💾 Laisser un sceau persistant",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_4f4d01c3",
            "command": "retour_menu",
            "button": "-> Variables & conditions",
            "shape": null,
            "direction": null,
            "to": "menu_variables",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_dec50c6b",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": [
          {
            "id": "act_acd9c25a",
            "verb": "renommer",
            "target": "all",
            "alias": null,
            "button": null,
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "set_text_var",
                "var": "nomjoueur",
                "value": "t_action_cible_t",
                "description": "Nom du joueur"
              }
            ],
            "text_ok": "Votre nom est maintenant : t_nomjoueur_t",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_c50c5ebd",
            "verb": "soigner",
            "target": "all",
            "alias": null,
            "button": null,
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "var",
                "var": "pv",
                "op": "=",
                "val": {
                  "var": "pvmax",
                  "var_kind": "numeric"
                }
              }
            ],
            "text_ok": "❤️ PV restaurés à v_pvmax_v !",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_687c4d12",
            "verb": "ajouter_course",
            "target": "all",
            "alias": null,
            "button": "Ajouter du pain",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "list",
                "list": "liste_courses",
                "op": "append",
                "value": "pain"
              },
              {
                "type": "count",
                "var": "nombre_courses",
                "op": "=",
                "list": "liste_courses"
              }
            ],
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_5073aaee",
            "verb": "retirer_course",
            "target": "all",
            "alias": null,
            "button": "Retirer un pain",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "list",
                "list": "liste_courses",
                "op": "remove",
                "text_ko": "Aucun pain sur la liste.",
                "value": "pain"
              },
              {
                "type": "count",
                "var": "nombre_courses",
                "op": "=",
                "list": "liste_courses"
              }
            ],
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_4630d3ca",
            "verb": "lire_prix",
            "target": "all",
            "alias": null,
            "button": "Lire le prix du pain",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "var",
                "var": "prix_pain",
                "op": "=",
                "val": {
                  "var": "tarifs_objets[t_cle_prix_t]",
                  "var_kind": "numeric"
                }
              }
            ],
            "text_ok": "Le pain coûte v_prix_pain_v pièces.",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_f4901210",
            "verb": "augmenter_score",
            "target": "all",
            "alias": null,
            "button": "Gagner un point",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 1
              }
            ],
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "triggers": null
      },
      {
        "id": "demo_objets",
        "num": null,
        "button": null,
        "text": "**📦 Démonstration : Objets & Inventaire**\n\nUne table trône au centre de la pièce.\nSur le sol, une clé brille faiblement.\nUn vieux coffre contient trois pièces d'or et une petite bourse en contient une quatrième.\nExaminez chaque contenant : leurs boutons restent liés au bon emplacement, même si les quatre objets portent le même nom.\nChaque pièce est un exemplaire distinct et l'inventaire regroupe leur quantité.\nUne tentative de jeter une pièce sans en posséder utilise également une réponse personnalisée.\n\nDeux badges identiques sont exposés sur un présentoir et dans un tiroir. Sans limite précisée, un seul exemplaire peut être porté ; leur refus utilise un message personnalisé.\nTrois jetons sont disponibles dans une urne, avec une limite de deux dans l'inventaire.\nTenter de dépasser une limite indique la quantité déjà portée sans transformer ce refus en erreur technique.\n\nSur une étagère, deux fioles sans étiquette. Prenez-les, examinez-les une à une (examiner fiole sans étiquette 2), puis identifiez-les.\nUne fois le grimoire pris, examinez de nouveau la table.\n\nprendre [objet] / examiner [objet] / jeter [objet]\n(Discord : /prendre / /examiner / /jeter)\n\n\n\nReposez une pièce dans le coffre, puis examinez-le à nouveau. Une petite boîte vide est posée à côté.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": [
          {
            "id": "item_b45a7e6c",
            "name": "grimoire",
            "location": "table",
            "furniture_description": "Une vieille table en bois. Un grimoire poussiéreux y est posé.",
            "description": "Un vieux grimoire aux pages jaunies, couvert de formules alchimiques.",
            "pickup_text": "Vous prenez le grimoire sur la table.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": "🪑 Examiner la table",
            "pickup_reaction": "📖 Prendre le grimoire",
            "object_reaction": "🔎 Examiner le grimoire",
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_71a53186",
            "name": "table_vide",
            "location": "table",
            "furniture_description": "Une vieille table en bois, vide à présent.",
            "description": null,
            "pickup_text": null,
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": true,
            "absent": false
          },
          {
            "id": "item_613dcc17",
            "name": "clé",
            "location": "sol",
            "furniture_description": null,
            "description": "Une petite clé en argent.",
            "pickup_text": "Vous ramassez la clé.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": "🗝️ Prendre la clé",
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_deaa3dbb",
            "name": "salle_objets_visitee",
            "location": "invisible",
            "furniture_description": null,
            "description": "Marqueur : le joueur a visité la salle Objets.",
            "pickup_text": null,
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_8d75014e",
            "name": "piece",
            "location": "coffre",
            "furniture_description": "Un vieux coffre. Il contient trois pièces d'or !",
            "description": "Une pièce d'or étincelante.",
            "pickup_text": "Vous prenez une pièce. Il en reste deux.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": "💰 Examiner le coffre",
            "pickup_reaction": "🪙 Prendre une pièce",
            "object_reaction": null,
            "inventory_limit": 0,
            "inventory_limit_message": null,
            "throw_missing_message": "Vous fouillez votre bourse, mais vous n'avez aucune pièce à jeter.",
            "display_name": "pièce d'or",
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_0e3510b6",
            "name": "piece",
            "location": "coffre",
            "furniture_description": "Un vieux coffre. Il reste deux pièces d'or.",
            "description": "Une pièce d'or étincelante.",
            "pickup_text": "Vous prenez une pièce. Il en reste une.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": 0,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_09112480",
            "name": "piece",
            "location": "coffre",
            "furniture_description": "Un vieux coffre. Il reste une dernière pièce.",
            "description": "Une pièce d'or étincelante.",
            "pickup_text": "Vous prenez la dernière pièce. Le coffre est vide.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": 0,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_547ecb83",
            "name": "piece",
            "location": "bourse",
            "furniture_description": "Une petite bourse oubliée contient une pièce d'or.",
            "description": "Une pièce d'or marquée du sceau royal.",
            "pickup_text": "Vous prenez la pièce trouvée dans la bourse.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": "👝 Examiner la bourse",
            "pickup_reaction": "🪙 Prendre la pièce de la bourse",
            "object_reaction": null,
            "inventory_limit": 0,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_7cfec194",
            "name": "coffreVide",
            "location": "coffre",
            "furniture_description": "Le coffre est complètement vide. Mais... un double fond ?",
            "description": "Un compartiment secret ! Vous y trouvez un parchemin.",
            "pickup_text": "Vous découvrez le compartiment secret !",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_2f521ee9",
            "name": "vieillepotion",
            "location": "invisible",
            "furniture_description": null,
            "description": null,
            "pickup_text": null,
            "remove": true,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_dab6d1ed",
            "name": "badge",
            "location": "présentoir",
            "furniture_description": "Un présentoir porte un badge de visiteur. Un seul badge peut être conservé dans l'inventaire.",
            "description": "Un badge de visiteur numéroté.",
            "pickup_text": "Vous prenez le badge posé sur le présentoir.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": "🎫 Examiner le présentoir",
            "pickup_reaction": "🎫 Prendre le badge du présentoir",
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": "Votre badge actuel est encore valable. Inutile d'en prendre un autre.",
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_4c581d4b",
            "name": "badge",
            "location": "tiroir",
            "furniture_description": "Un tiroir entrouvert contient un second badge de visiteur.",
            "description": "Un autre badge de visiteur.",
            "pickup_text": "Vous prenez le badge trouvé dans le tiroir.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": "🗄️ Examiner le tiroir",
            "pickup_reaction": "🎫 Prendre le badge du tiroir",
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_1439eb77",
            "name": "jeton",
            "location": "urne",
            "furniture_description": null,
            "description": "Un jeton de cuivre.",
            "pickup_text": "Vous prenez un jeton.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": "Prendre un jeton",
            "object_reaction": null,
            "inventory_limit": 2,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_6e39eec1",
            "name": "jeton",
            "location": "urne",
            "furniture_description": null,
            "description": "Un second jeton de cuivre.",
            "pickup_text": "Vous prenez un deuxième jeton.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": 2,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_d6fd0bd5",
            "name": "jeton",
            "location": "urne",
            "furniture_description": null,
            "description": "Un troisième jeton de cuivre.",
            "pickup_text": "Vous prenez le troisième jeton.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": 2,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_db60728d",
            "name": "fiole_soin",
            "location": "étagère",
            "furniture_description": "Deux fioles sans étiquette attendent sur l'étagère.",
            "description": "Elle sent la menthe fraîche.",
            "pickup_text": "Vous prenez une fiole.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": "🧪 Examiner l'étagère",
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": "fiole sans étiquette",
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_03c897e5",
            "name": "fiole_poison",
            "location": "étagère",
            "furniture_description": "Il reste une fiole sans étiquette.",
            "description": "Elle sent l'amande amère.",
            "pickup_text": "Vous prenez la dernière fiole.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": "fiole sans étiquette",
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_f97382c4",
            "name": "bille",
            "location": "boite",
            "furniture_description": "Une petite boîte contient une bille.",
            "description": "Une bille de verre.",
            "pickup_text": "Vous prenez la bille.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": "Examiner la boîte",
            "pickup_reaction": "Prendre la bille",
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": true
          },
          {
            "id": "item_6cd6bdd1",
            "name": "",
            "location": "boite",
            "furniture_description": "Une petite boîte vide.",
            "description": null,
            "pickup_text": null,
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": null,
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": true,
            "absent": false
          }
        ],
        "events": [
          {
            "id": "evt_1",
            "if": [
              {
                "type": "item",
                "name": "clé"
              },
              {
                "type": "var",
                "var": "compteur",
                "op": ">",
                "val": 2,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 5
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🗝️ Vous avez la clé ET vous êtes passé plus de deux fois par la salle Variables : bonus +5 score !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "fondre_pieces",
            "if": [
              {
                "type": "item",
                "name": "piece",
                "op": ">=",
                "quantity": 2
              }
            ],
            "do": [
              {
                "type": "add_item",
                "name": "piece",
                "dest": "inventaire",
                "remove": true
              },
              {
                "type": "add_item",
                "name": "piece",
                "dest": "inventaire",
                "remove": true
              },
              {
                "type": "add_item",
                "name": "lingot",
                "dest": "inventaire",
                "remove": false,
                "description": "Un petit lingot obtenu avec deux pièces d'or."
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous transformez deux pièces en un lingot."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "Fondre deux pièces",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "identifier_fioles",
            "if": [
              {
                "type": "item",
                "name": "fiole_soin"
              },
              {
                "type": "item",
                "name": "fiole_poison"
              }
            ],
            "do": [
              {
                "type": "rename_item",
                "name": "fiole_soin",
                "value": "fiole de soin"
              },
              {
                "type": "rename_item",
                "name": "fiole_poison",
                "value": "fiole de poison"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "À l'odeur, vous reconnaissez une fiole de soin et une fiole de poison."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "🧪 Identifier les fioles",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "item",
                "name": "fiole_soin"
              },
              {
                "type": "item",
                "name": "fiole_poison"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_b0177fbd",
            "command": "retour_menu",
            "button": "-> Objets & actions",
            "shape": null,
            "direction": null,
            "to": "menu_objets",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_02331fbf",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": [
          {
            "id": "act_05b63cd7",
            "verb": "prendre_meuble",
            "target": "all",
            "alias": null,
            "button": "Prendre dans le coffre",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "command",
                "cmd": "prendre_dans coffre"
              }
            ],
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_5e49a626",
            "verb": "examiner_meuble_objet",
            "target": "all",
            "alias": null,
            "button": "Examiner l'objet du coffre",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "command",
                "cmd": "examiner_objet_dans coffre"
              }
            ],
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_e5b0b49e",
            "verb": "reposer_piece",
            "target": "all",
            "alias": null,
            "button": "Reposer une pièce dans le coffre",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "add_item",
                "name": "piece",
                "dest": "coffre",
                "remove": false
              }
            ],
            "text_ok": "Vous remettez une pièce dans le coffre.",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_615891af",
            "verb": "activer_bille",
            "target": "all",
            "alias": null,
            "button": "Faire apparaître la bille",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "add_item",
                "name": "bille",
                "dest": "boite",
                "remove": false,
                "activate": true
              }
            ],
            "text_ok": "Une bille apparaît dans la boîte.",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_0b189910",
            "verb": "verifier_bille",
            "target": "all",
            "alias": null,
            "button": "Regarder dans la boîte",
            "direction": null,
            "if": [
              {
                "type": "item",
                "name": "bille",
                "in": "boite",
                "room": null,
                "op": ">=",
                "quantity": 1
              }
            ],
            "visible_if": null,
            "disabled_if": null,
            "do": null,
            "text_ok": "La bille est dans la boîte.",
            "text_ko": "Il n'y a pas de bille dans la boîte.",
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "triggers": null
      },
      {
        "id": "demo_actions",
        "num": null,
        "button": null,
        "text": "**⚙️ Démonstration : Actions personnalisées**\n\nUn alambic attend sur l'établi.\nDes ingrédients sont disponibles : herbe, cristal.\n\nexaminer [objet] / prendre [herbe / cristal]\ncombiner [ingrédient] / aller [destination]\nalambic -> alias raccourci pour \"inspecter alambic\"\n(Discord : /examiner / /prendre / /action combiner / /action aller)\n\"aller\" est une action globale : fonctionne dans toutes les salles !",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": [
          {
            "id": "item_29c9cc04",
            "name": "herbe",
            "location": "établi",
            "furniture_description": null,
            "description": "Herbe verte aux propriétés magiques.",
            "pickup_text": "Vous prenez l'herbe.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": "🌿 Prendre l'herbe",
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          },
          {
            "id": "item_fc5a5310",
            "name": "cristal",
            "location": "établi",
            "furniture_description": null,
            "description": "Un cristal bleu translucide.",
            "pickup_text": "Vous prenez le cristal.",
            "remove": false,
            "remove_text": null,
            "furniture_reaction": null,
            "pickup_reaction": "💎 Prendre le cristal",
            "object_reaction": null,
            "inventory_limit": null,
            "inventory_limit_message": null,
            "throw_missing_message": null,
            "display_name": null,
            "empty_furniture": false,
            "absent": false
          }
        ],
        "events": null,
        "choices": [
          {
            "id": "choice_a8a8eba7",
            "command": "retour_menu",
            "button": "-> Objets & actions",
            "shape": null,
            "direction": null,
            "to": "menu_objets",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_a02b755a",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_f3de3420",
            "command": "boucles",
            "button": "🔁 Boucles",
            "shape": null,
            "direction": null,
            "to": "demo_boucles",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": [
          {
            "id": "act_f2b7bb87",
            "verb": "prendre",
            "target": "herbe",
            "alias": null,
            "button": null,
            "direction": null,
            "if": [
              {
                "type": "item",
                "name": "herbe",
                "absent": true
              }
            ],
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "add_item",
                "name": "herbe",
                "dest": "inventaire",
                "remove": false
              }
            ],
            "text_ok": "Vous prenez l'herbe.",
            "text_ko": "Vous avez déjà l'herbe.",
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_5a0b6733",
            "verb": "prendre",
            "target": "cristal",
            "alias": null,
            "button": null,
            "direction": null,
            "if": [
              {
                "type": "item",
                "name": "cristal",
                "absent": true
              }
            ],
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "add_item",
                "name": "cristal",
                "dest": "inventaire",
                "remove": false
              }
            ],
            "text_ok": "Vous prenez le cristal.",
            "text_ko": "Vous avez déjà le cristal.",
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_3fe6fac0",
            "verb": "examiner",
            "target": "herbe",
            "alias": null,
            "button": null,
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": null,
            "text_ok": "Une herbe aux vertus apaisantes. Idéale comme premier ingrédient.",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_94845f8c",
            "verb": "examiner",
            "target": "cristal",
            "alias": null,
            "button": null,
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": null,
            "text_ok": "Le cristal vibre légèrement. Il amplifie les potions.",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_2941701d",
            "verb": "combiner",
            "target": "herbe",
            "alias": null,
            "button": null,
            "direction": null,
            "if": [
              {
                "type": "item",
                "name": "herbe"
              },
              {
                "type": "var",
                "var": "combinaison",
                "op": "=",
                "val": "rien",
                "var_kind": "text"
              }
            ],
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "add_item",
                "name": "herbe",
                "dest": "inventaire",
                "remove": true
              },
              {
                "type": "set_text_var",
                "var": "combinaison",
                "value": "herbe",
                "description": "En attente du cristal"
              }
            ],
            "text_ok": "🌿 L'herbe entre dans l'alambic. Ajoutez maintenant : combiner cristal",
            "text_ko": "Vous n'avez pas d'herbe.",
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_6e0b53df",
            "verb": "combiner",
            "target": "cristal",
            "alias": null,
            "button": null,
            "direction": null,
            "if": [
              {
                "type": "item",
                "name": "cristal"
              },
              {
                "type": "var",
                "var": "combinaison",
                "op": "=",
                "val": "herbe",
                "var_kind": "text"
              }
            ],
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "add_item",
                "name": "cristal",
                "dest": "inventaire",
                "remove": true
              },
              {
                "type": "add_item",
                "name": "potion",
                "dest": "inventaire",
                "remove": false,
                "description": "Potion verte scintillante (soin complet)"
              },
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 10
              },
              {
                "type": "set_text_var",
                "var": "combinaison",
                "value": "rien",
                "description": "null"
              }
            ],
            "text_ok": "💚 L'alambic s'illumine ! Potion créée ! (+10 score)",
            "text_ko": "Vous n'avez pas de cristal.",
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_c5dad653",
            "verb": "combiner",
            "target": "all",
            "alias": null,
            "button": null,
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": null,
            "text_ok": "«t_action_cible_t» n'est pas un ingrédient connu. Essayez : herbe, cristal.",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_4d228d8d",
            "verb": "inspecter",
            "target": "alambic",
            "alias": "alambic",
            "button": null,
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": null,
            "text_ok": "L'alambic central. Utilisez 'combiner [ingrédient]' pour créer des potions.",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "act_4358ae7f",
            "verb": "utiliser",
            "target": "potion",
            "alias": null,
            "button": "💚 Utiliser la potion",
            "direction": null,
            "if": [
              {
                "type": "item",
                "name": "potion"
              }
            ],
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "add_item",
                "name": "potion",
                "dest": "inventaire",
                "remove": true
              },
              {
                "type": "var",
                "var": "pv",
                "op": "=",
                "val": {
                  "var": "pvmax",
                  "var_kind": "numeric"
                }
              },
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 5
              }
            ],
            "text_ok": "Vous buvez la potion : PV au maximum (v_pv_v/v_pvmax_v), +5 score !",
            "text_ko": "Vous n'avez pas de potion.",
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "triggers": null
      },
      {
        "id": "demo_events",
        "num": null,
        "button": null,
        "text": "**🎲 Démonstration : Événements automatiques & Aléatoire**\n\nÀ l'entrée de cette salle, deux tirages sont faits automatiquement.\nRésultat du dé : v_desresultat_v 🎲 (bornes fixes, entre 1 et 6)\nIndice de chance : v_chance_v 🍀 (bornes variables, entre votre force\nv_force_v et vos PV max v_pvmax_v)\nRevenez dans la salle : les deux valeurs sont retirées à chaque entrée.\n\nCliquez sur un bouton pour voir d'autres exemples.\n\n\nUn messager attend votre appel.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": [
          {
            "id": "init_a4e4a161",
            "var": "desresultat",
            "value": "%=1:6",
            "description": "Résultat du lancer de dé (1-6)",
            "type": "numeric"
          },
          {
            "id": "init_b5ee8b92",
            "var": "chance",
            "value": "%=v_force_v:v_pvmax_v",
            "description": "Chance recalculée selon force et PV max",
            "type": "numeric"
          }
        ],
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": [
              {
                "type": "var",
                "var": "desresultat",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🎲 Face 1, Malchance ! (+1 score quand même)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": [
              {
                "type": "var",
                "var": "desresultat",
                "op": "=",
                "val": 2,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 2
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🎲 Face 2, Pas terrible... (+2 score)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_3",
            "if": [
              {
                "type": "var",
                "var": "desresultat",
                "op": "=",
                "val": 3,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 3
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🎲 Face 3, Correct. (+3 score)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_4",
            "if": [
              {
                "type": "var",
                "var": "desresultat",
                "op": "=",
                "val": 4,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 4
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🎲 Face 4, Bien joué ! (+4 score)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_5",
            "if": [
              {
                "type": "var",
                "var": "desresultat",
                "op": "=",
                "val": 5,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 5
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🎲 Face 5, Excellent ! (+5 score)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_6",
            "if": [
              {
                "type": "var",
                "var": "desresultat",
                "op": "=",
                "val": 6,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 10
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🎲 Face 6, CRITIQUE ! (+10 score)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "appel_dynamique",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "appels_dynamiques",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le messager arrive (appel n°v_appels_dynamiques_v)."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "manual": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_2dffadfd",
            "command": "relancer_de",
            "button": "🎲 Relancer le dé",
            "shape": null,
            "direction": null,
            "to": "demo_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_511a80e3",
            "command": "globaux",
            "button": "✨ Événements globaux",
            "shape": null,
            "direction": null,
            "to": "demo_events_globaux",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_8fcf401e",
            "command": "loot",
            "button": "🎁 Table de loot",
            "shape": null,
            "direction": null,
            "to": "demo_loot",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_7d40cd3e",
            "command": "retour_menu",
            "button": "-> Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_52d23fa5",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": [
          {
            "id": "act_9ad6d4ee",
            "verb": "appeler_evenement",
            "target": "all",
            "alias": null,
            "button": "Appeler le messager",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "trigger_event",
                "id": "t_evenement_choisi_t"
              }
            ],
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "triggers": null
      },
      {
        "id": "demo_loot",
        "num": null,
        "button": null,
        "text": "**🎁 Démonstration : Tables de loot pondérées**\n\nUn coffre mystérieux s'ouvre...",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "weighted_goto",
                "weights": [
                  {
                    "to": "loot_commun",
                    "w": 60
                  },
                  {
                    "to": "loot_rare",
                    "w": 30
                  },
                  {
                    "to": "loot_legendaire",
                    "w": 10
                  }
                ]
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous ouvrez le coffre..."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": null,
        "actions": null,
        "triggers": null
      },
      {
        "id": "loot_commun",
        "num": null,
        "button": null,
        "text": "**🪨 Loot Commun**\nVous trouvez quelques pièces de cuivre. (+2 score)",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 2
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_b79b0241",
            "command": "relancer",
            "button": "🔄 Relancer",
            "shape": null,
            "direction": null,
            "to": "demo_loot",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_27502064",
            "command": "retour_menu",
            "button": "-> Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_c11ea8d0",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "loot_rare",
        "num": null,
        "button": null,
        "text": "**💎 Loot Rare !**\nUne gemme bleue scintillante ! (+10 score)",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 10
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_11fced0d",
            "command": "relancer",
            "button": "🔄 Relancer",
            "shape": null,
            "direction": null,
            "to": "demo_loot",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_457d4749",
            "command": "retour_menu",
            "button": "-> Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_92535f2b",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "loot_legendaire",
        "num": null,
        "button": null,
        "text": "**🌟 LOOT LÉGENDAIRE !!**\nUn artefact ancien ! Incroyable ! (+50 score)",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 50
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_0f4b8720",
            "command": "relancer",
            "button": "🔄 Relancer",
            "shape": null,
            "direction": null,
            "to": "demo_loot",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_cb2c007f",
            "command": "retour_menu",
            "button": "-> Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_563065c3",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_events_globaux",
        "num": null,
        "button": null,
        "text": "**✨ Démonstration : Événements globaux**\n\nLes événements globaux s'exécutent à chaque salle visitée (après les événements locaux par défaut).\n\nIci, vous pouvez activer un bonus de +1 score par salle visitée.\nUne fois activé, naviguez dans d'autres salles pour le voir s'appliquer.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "event_global",
                "id": "bonus_visite",
                "state": "ON"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "✨ Bonus global activé ! (+1 score à chaque salle visitée)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_94ae689e",
            "command": "desactiver",
            "button": "🚫 Désactiver le bonus",
            "shape": null,
            "direction": null,
            "to": "demo_events_globaux_off",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_21d47688",
            "command": "retour_menu",
            "button": "-> Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_d5e452e3",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_events_globaux_off",
        "num": null,
        "button": null,
        "text": "**✨ Bonus global désactivé**",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "event_global",
                "id": "bonus_visite",
                "state": "OFF"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🚫 Bonus global désactivé."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_af2fd9d6",
            "command": "reactiver",
            "button": "✨ Réactiver",
            "shape": null,
            "direction": null,
            "to": "demo_events_globaux",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_eedf9cd5",
            "command": "retour_menu",
            "button": "-> Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_2ce2d1ed",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_media",
        "num": null,
        "button": "🔊 Sons & Images",
        "text": "**🔊 Démonstration : Sons & Images**\n\n----\n**Sons** : syntaxe `\\<<url>>`\n\nUn son joue dès l'entrée dans la salle (voir ci-dessous).\nFormats supportés : `.mp3`, `.ogg`, `.wav`\nLe son joue en boucle sur Discord (voix). Sur web/desktop, il joue une fois.\n\n----\n**Image** : syntaxe `\\[[url_image]]`\n\nUne image s'affiche ci-dessous.\nFormats supportés : `.png`, `.jpg`, `.gif`, `.webp`\n\n----\n**Bloc texte encadré** : syntaxe `\\[[texte]]`\n\nQuand le contenu entre `\\[[` et `]]` n'est pas une URL d'image, il s'affiche dans un encart (bloc code Discord, boîte web/desktop).\n\n----\n**Jouer N fois** : syntaxe `\\<<N:url>>`\n\nJoue le son N fois de suite (0 = boucle infinie).\nExemple : `\\<<3:url>>` joue le son 3 fois.\n\n----\n**Stopper les sons** : syntaxe `\\<<stop>>`\n\nArrête tous les sons en cours de lecture.\n\n----\n**Variables dans les URLs** : syntaxe `{variable}`\n\nLes URLs image et son acceptent `{nom_variable}` pour construire un chemin dynamique.\nExemples :\n  `\\[[https://monsite.fr/images/{zone}.png]]`\n  `\\<<https://monsite.fr/sons/{ambiance}.mp3>>`\nLa variable (numérique ou textuelle) est résolue au moment de l'affichage.\nSi la variable est inconnue, `{nom}` reste tel quel dans l'URL.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "<<https://cyril-fiesta.fr/jdr-bot/scenarios/sons/sulimo/balade.mp3>>\n🎵 *\"Une galerie pour Sulimo\" (Virginie Chaillou)*\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "[[https://cyril-fiesta.fr/jdr-bot/scenarios/images/chateau/trophee.png]]\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_3",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "[[Ce texte apparaît dans un encart (bloc code Discord, boîte web/desktop).]]"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_4",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "<<https://cyril-fiesta.fr/jdr-bot/scenarios/sons/combat/kotor-attack.ogg>>\n💥 Effet sonore !\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "🎵 Jouer un effet sonore",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_5",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "<<stop>>Silence."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "🔇 Stopper tous les sons",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_6",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 3
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "+3 score pour avoir exploré la salle Sons & Images !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_af846961",
            "command": "retour_menu",
            "button": "-> Sons, images & vidéos",
            "shape": null,
            "direction": null,
            "to": "menu_media",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_17481a57",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_succes",
        "num": null,
        "button": null,
        "text": "**🏆 Démonstration : Succès**\n\nUn succès récompense une action précise du joueur. Il est enregistré sur\nvotre appareil et ne dépend pas de la sauvegarde : il reste acquis après\nune fin de partie, un abandon ou une nouvelle partie.\n\nLe bouton **🏆** en haut de l'écran ouvre la vraie page des succès,\nsans quitter la partie.\n\n**Deux collections coexistent :**\n\n• les succès **du scénario**, écrits par l'auteur dans son fichier\n• les succès **globaux** de JDR-Bot, communs à tous les scénarios\n\nPetite injustice volontaire : **Vue d'ensemble** vaut 10 points ici,\ncontre 12 en anglais. C'est notre petit cadeau aux anglophones, histoire\nde faire quelques jaloux 😄\n\n**Votre progression ici :**\n\n• Parties lancées : **v_visites_p_v**\n• Sceaux laissés : **v_sceaux_p_v** (dernier : **t_dernier_sceau_p_t**)\n• Fin Victoire vue : **v_fin_victoire_p_v** fois\n• Fin Défaite vue : **v_fin_defaite_p_v** fois\n\nLe showcase se termine soit par une victoire, soit par une défaite : voyez\nla salle **Fins de partie**, qui propose les deux au choix, ou une fin\ntirée de votre score. Chaque résultat débloque son succès, et avoir connu\nles deux en réserve un troisième, secret.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": [
              {
                "type": "var",
                "var": "vu_collection",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              },
              {
                "type": "var",
                "var": "vu_globaux",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "achievement",
                "id": "visite_guidee"
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_b7933383",
            "command": "collection",
            "button": "🖼️ Collection du showcase",
            "shape": null,
            "direction": null,
            "to": "succes_collection",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_03496154",
            "command": "globaux",
            "button": "🌍 Progression globale",
            "shape": null,
            "direction": null,
            "to": "succes_globaux",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_4d27d06b",
            "command": "sceau",
            "button": "💾 Laisser un sceau (garde la trace entre les parties)",
            "shape": null,
            "direction": null,
            "to": "demo_succes",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": [
              {
                "type": "var",
                "var": "sceaux_p",
                "op": "+",
                "val": 1
              },
              {
                "type": "var",
                "var": "dernier_sceau_p",
                "op": "=",
                "val": "marque de cire"
              },
              {
                "type": "achievement",
                "id": "graveur"
              }
            ],
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_76b36010",
            "command": "retour_menu",
            "button": "-> Progression du joueur",
            "shape": null,
            "direction": null,
            "to": "menu_progression",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_e05dbe02",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "succes_collection",
        "num": null,
        "button": null,
        "text": "**🖼️ Les succès de ce scénario**\n\nCette liste est écrite dans le fichier du showcase et se met à jour\npendant la partie.\n\nLes succès secrets restent affichés, mais leur titre et leur description\nne se révèlent qu'une fois obtenus : à vous de deviner ce qui les\ndéclenche.\n\n[[SUCCES-SCENARIO-ICONE]]",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "vu_collection",
                "op": "=",
                "val": 1
              },
              {
                "type": "achievement",
                "id": "collectionneur"
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_d4ca636f",
            "command": "retour_succes",
            "button": "-> Retour aux succès",
            "shape": null,
            "direction": null,
            "to": "demo_succes",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_9fdff5fa",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "succes_globaux",
        "num": null,
        "button": null,
        "text": "**🌍 Votre progression globale**\n\nCes succès sont communs à tous les scénarios et progressent sans que\nl'auteur ait à s'en occuper. Jouer au showcase les fait déjà avancer.\n\n**Déjà obtenus :**\n\n[[SUCCES-GLOBAUX-ACQUIS-ICONE]]\n\nTerminer une partie, découvrir un autre scénario ou revenir demain en\ndébloquera d'autres.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "vu_globaux",
                "op": "=",
                "val": 1
              },
              {
                "type": "achievement",
                "id": "vue_ensemble"
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_d2147748",
            "command": "retour_succes",
            "button": "-> Retour aux succès",
            "shape": null,
            "direction": null,
            "to": "demo_succes",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_fec5c166",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_conditions",
        "num": null,
        "button": "🔀 Conditions & affichage",
        "text": [
          {
            "text": "**🔀 Conditions d'affichage**"
          },
          {
            "text": "Score actuel : v_score_v ⭐ | PV : v_pv_v/v_pvmax_v ❤️ | Charges : v_charges_v 🔋"
          },
          {
            "text": ""
          },
          {
            "text": "-- Texte conditionnel inline --"
          },
          {
            "text": "📊 Vous n'avez pas encore de points (score = 0).",
            "if": [
              {
                "type": "var",
                "var": "score",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ]
          },
          {
            "text": "📊 Bravo ! Vous avez v_score_v point(s) au score.",
            "if": [
              {
                "type": "var",
                "var": "score",
                "op": ">",
                "val": 0,
                "var_kind": "numeric"
              }
            ]
          },
          {
            "text": "📖 Vous avez le grimoire dans votre inventaire.",
            "if": [
              {
                "type": "item",
                "name": "grimoire"
              }
            ]
          },
          {
            "text": "📖 Vous n'avez pas le grimoire (salle Objets pour le prendre).",
            "if": [
              {
                "type": "item",
                "name": "grimoire",
                "absent": true
              }
            ]
          },
          {
            "text": "🧭 Vous êtes déjà passé par la salle Objets.",
            "if": [
              {
                "type": "item",
                "name": "salle_objets_visitee"
              }
            ]
          },
          {
            "text": ""
          },
          {
            "text": "-- Boutons conditionnels --"
          },
          {
            "text": "• visible-si : le bouton n'apparaît que si la condition est vraie."
          },
          {
            "text": "• grise-si   : le bouton reste visible mais est grisé (non cliquable) si la condition est vraie."
          },
          {
            "text": "-> 'Grimoire requis' (visible-si) n'est pas visible (vous n'avez pas le grimoire).",
            "if": [
              {
                "type": "item",
                "name": "grimoire",
                "absent": true
              }
            ]
          },
          {
            "text": "-> 'Grimoire requis' (visible-si) est visible (vous avez le grimoire) !",
            "if": [
              {
                "type": "item",
                "name": "grimoire"
              }
            ]
          },
          {
            "text": "-> 'Avancer affaibli' (grise-si) est grisé, vos PV sont à 0.",
            "if": [
              {
                "type": "var",
                "var": "pv",
                "op": "<=",
                "val": 0,
                "var_kind": "numeric"
              }
            ]
          },
          {
            "text": "-> 'Avancer affaibli' (grise-si) est actif, vous avez des PV.",
            "if": [
              {
                "type": "var",
                "var": "pv",
                "op": ">",
                "val": 0,
                "var_kind": "numeric"
              }
            ]
          },
          {
            "text": ""
          },
          {
            "text": "-- Compteur d'usages (max:) --"
          },
          {
            "text": "• max: N         -> l'événement peut être déclenché N fois au maximum."
          },
          {
            "text": "• max: v_charges_v -> le maximum est lu dans une variable (dynamique)."
          },
          {
            "text": "• texte: liste sur un événement -> texte conditionnel (si:/texte: par item, ex: _max_atteint_)."
          }
        ],
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": [
          {
            "id": "init_62917dfe",
            "var": "charges",
            "value": 3,
            "description": null,
            "type": "numeric"
          }
        ],
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 10
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "💸 Il n'y a plus de pièces à ramasser.",
                "if": [
                  {
                    "type": "max_atteint"
                  }
                ]
              },
              {
                "text": "🏆 Vous êtes riche ! (score > 20)",
                "if": [
                  {
                    "type": "var",
                    "var": "score",
                    "op": ">",
                    "val": 20,
                    "var_kind": "numeric"
                  }
                ]
              },
              {
                "text": "🪙 Vous ramassez une pièce ! (+10 score)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "🪙 Ramasser une pièce (max 2)",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": 2,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 5
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🔋 Plus de charges ! Utilisez 'Recharger' pour en récupérer.",
                "if": [
                  {
                    "type": "max_atteint"
                  }
                ]
              },
              {
                "text": "⚡ Charge utilisée ! (+5 score)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "⚡ Utiliser charge (v_charges_v restantes)",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": "v_charges_v",
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_3",
            "if": [
              {
                "type": "var",
                "var": "pv",
                "op": ">",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "pv",
                "op": "-",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "💥 -1 PV (PV : v_pv_v)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "💥 Perdre 1 PV",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_4",
            "if": [
              {
                "type": "var",
                "var": "pv",
                "op": "<",
                "val": {
                  "var": "pvmax",
                  "var_kind": "numeric"
                },
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "pv",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "❤️ +1 PV (PV : v_pv_v)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "❤️ Soigner (+1 PV)",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_5",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "charges",
                "op": "+",
                "val": 3
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🔋 +3 charges rechargées !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "🔋 Recharger (+3 charges)",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_653176eb",
            "command": "grimoire_requis",
            "button": "📖 Grimoire requis (visible-si)",
            "shape": null,
            "direction": null,
            "to": "demo_conditions",
            "if": null,
            "visible_if": [
              {
                "type": "item",
                "name": "grimoire"
              }
            ],
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_f640885b",
            "command": "expert",
            "button": "🏆 Expert (score > 20, visible-si)",
            "shape": null,
            "direction": null,
            "to": "demo_conditions",
            "if": null,
            "visible_if": [
              {
                "type": "var",
                "var": "score",
                "op": ">",
                "val": 20,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_818631a9",
            "command": "affaibli",
            "button": "💀 Avancer affaibli (grise-si)",
            "shape": null,
            "direction": null,
            "to": "demo_conditions",
            "if": null,
            "visible_if": null,
            "disabled_if": [
              {
                "type": "var",
                "var": "pv",
                "op": "<=",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_fc35e2dc",
            "command": "plus_cinq",
            "button": "⭐ +5 score (effet au clic)",
            "shape": null,
            "direction": null,
            "to": "demo_conditions",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 5
              }
            ],
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_300748bc",
            "command": "retour_menu",
            "button": "-> Variables & conditions",
            "shape": null,
            "direction": null,
            "to": "menu_variables",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_ef08c801",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_tags",
        "num": null,
        "button": null,
        "text": "**🏷 Les tags**\n\nUn tag regroupe des éléments réutilisables (événements, choix, objets...)\nqu'on injecte dans une salle via tag-avant: ou tag-après:\n\n[[\ntag-avant: [coffre_commun]   -> coffre ajouté avant le contenu de la salle\ntag-après: [panneau_retour]  -> boutons de sortie ajoutés après\n]]\n\nLe moteur voit une salle normale : les tags sont fusionnés au chargement.\nModifier le tag = modifier toutes les salles qui l'utilisent en une fois.\n\nExemple ci-dessous : le coffre vient du tag \"coffre_commun\".\nLa salle demo_tags2 (juste après) utilise le même tag : même coffre, mais la variable coffre_ouvert est réinitialisée à 0 à chaque salle.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": [
          "coffre_commun"
        ],
        "tag_after": [
          "panneau_retour"
        ],
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_445f99d9",
            "command": "suite_tags",
            "button": "➡ Salle suivante (même tag coffre)",
            "shape": null,
            "direction": null,
            "to": "demo_tags2",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_65639f39",
            "command": "modeles",
            "button": "🧩 Modèles de salles",
            "shape": null,
            "direction": null,
            "to": "demo_modeles",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_tags2",
        "num": null,
        "button": null,
        "text": "**Même tag, deuxième salle.**\n\nLe tag \"coffre_commun\" est appliqué ici aussi.\nSi demain on veut changer la récompense du coffre (des PV au lieu du score, par exemple), on modifie le tag une seule fois : les deux salles sont mises à jour.\n\n[[\n# Sans tag : le coffre et les boutons de sortie recopiés dans chaque salle\n# Avec tags : déclarés une fois, chaque salle y fait référence\n]]",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": [
          "coffre_commun"
        ],
        "tag_after": [
          "panneau_retour"
        ],
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_84cfbd7a",
            "command": "retour_tags",
            "button": "↩ Revenir à la démo tags",
            "shape": null,
            "direction": null,
            "to": "demo_tags",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_modeles",
        "num": null,
        "button": null,
        "text": "**🧩 Les modèles de salles**\n\nLes modèles permettent de réutiliser un même groupe de salles plusieurs fois dans un scénario, avec des ennemis ou des paramètres différents à chaque fois.\n\nIci, un même modèle de combat est utilisé deux fois de suite :\nd'abord contre un **Gobelin** (10 PV), puis contre un **Troll** (20 PV).\nBattez-les tous les deux pour terminer cette démonstration !",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": [
          {
            "nom": "mini_combat",
            "variables": {
              "pv_ennemi": "gobelin_pts",
              "nom_ennemi": "gobelin_nom"
            },
            "sorties": {
              "victoire": "fin_modele",
              "defaite": "menu_events"
            }
          },
          {
            "nom": "mini_combat",
            "variables": {
              "pv_ennemi": "troll_pts",
              "nom_ennemi": "troll_nom"
            },
            "sorties": {
              "victoire": "fin_modele",
              "defaite": "menu_events"
            }
          }
        ],
        "init": [
          {
            "id": "init_39926128",
            "var": "gobelin_pts",
            "value": 10,
            "description": null,
            "type": "numeric"
          },
          {
            "id": "init_2d10da2f",
            "var": "troll_pts",
            "value": 20,
            "description": null,
            "type": "numeric"
          }
        ],
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 20
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🏆 Gobelin ET Troll vaincus ! +20 score."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_eed8120f",
            "command": "retour_menu",
            "button": "-> Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_8742a8ef",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_timers",
        "num": null,
        "button": null,
        "text": "**⏱️ Démonstration : Timers**\n\nQuatre types de timers existent :\n\n1. \\{{timer:N}}, pause visuelle\n   Bloque le jeu N secondes, puis affiche les choix.\n\n2. timer: dans un événement, timer local (lié à la salle)\n   Se lance à l'entrée de la salle. Si vous quittez la salle, il s'annule. Utile pour des compte-à-rebours in-situ.\n\n3. timer_global: ON/OFF/SWITCH, timer global\n   Continue même si vous changez de salle. Déclenche les événements globaux quand il atteint 0.\n\n4. tick: sur un timer, action par seconde\n   Exécute des blocs {si?, faire:} à chaque seconde du timer.\n   Fonctionne sur les timers locaux et globaux.\n\nCliquez un bouton pour tester :",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_75ef362c",
            "command": "pause",
            "button": "⏳ Pause visuelle (3s)",
            "shape": null,
            "direction": null,
            "to": "demo_timer_block",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_3bd7e1e8",
            "command": "local",
            "button": "⏱️ Timer local (5s)",
            "shape": null,
            "direction": null,
            "to": "demo_timer_local",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_baad4c89",
            "command": "global",
            "button": "🌐 Timer global (10s)",
            "shape": null,
            "direction": null,
            "to": "demo_timer_global",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_bcef5a89",
            "command": "tick",
            "button": "🔁 Action par tick (3min)",
            "shape": null,
            "direction": null,
            "to": "demo_timer_tick",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_b612f6bb",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_timer_block",
        "num": null,
        "button": null,
        "text": "**⏳ Timer block : pause visuelle**\n\nLe jeu est suspendu pendant 3 secondes...\n{{timer:3}}\nReprise ! La pause visuelle est terminée.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 2
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "+2 score pour votre patience !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_1f05e2c1",
            "command": "retour_timers",
            "button": "↩️ Retour aux timers",
            "shape": null,
            "direction": null,
            "to": "demo_timers",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_1480414c",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_timer_local",
        "num": null,
        "button": null,
        "text": "**⏱️ Timer local : lié à la salle**\n\nUn timer de 5 secondes démarre à l'entrée de cette salle.\nRestez ici : si vous partez, il s'annule.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "goto",
                "to": "timer_local_expire"
              }
            ],
            "timer": "sablier",
            "duration": "5",
            "text": [
              {
                "text": "⏱️ Timer 'sablier' lancé, v_sablier_v secondes restantes."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_b5b35d66",
            "command": "tester_global",
            "button": "🌐 Tester le timer global",
            "shape": null,
            "direction": null,
            "to": "demo_timer_global",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_77ba0401",
            "command": "retour_timers",
            "button": "↩️ Retour aux timers (annule le sablier)",
            "shape": null,
            "direction": null,
            "to": "demo_timers",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_fa034e98",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "timer_local_expire",
        "num": null,
        "button": null,
        "text": "**⏱️ Timer local expiré !**\n\nLes 5 secondes se sont écoulées sans que vous partiez.\n(+3 score pour votre patience !)",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 3
              },
              {
                "type": "goto",
                "to": "demo_timers"
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": null,
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_timer_tick",
        "num": null,
        "button": null,
        "text": "**🔁 Action par tick : exécution chaque seconde**\n\nLe `tick:` est une liste d'actions intégrée dans un timer. Elle se vérifie et s'exécute à chaque seconde, ou uniquement si une condition (`si:`) est remplie à cet instant.\n\nUn timer de 3 minutes démarre. À chaque seconde, le compteur ci-dessous est incrémenté en temps réel.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "haut-droite",
            "taille": 38,
            "largeur": null,
            "hauteur": null,
            "background": null,
            "color": null,
            "police": null,
            "resizable": null,
            "scope": null,
            "text": [
              {
                "text": "⏱ Secondes timer : v_tick_demo_v\n🔁 Actions tick  : v_ticks_ecoules_v\n"
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "ticks_ecoules",
                "op": "=",
                "val": 0
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": null,
            "do": [
              {
                "type": "goto",
                "to": "demo_timer_tick_expire"
              }
            ],
            "timer": "tick_demo",
            "duration": "180",
            "text": [
              {
                "text": "⏱️ Timer 'tick_demo' lancé, 3 minutes."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": [
              {
                "cond": null,
                "do": [
                  {
                    "type": "var",
                    "var": "ticks_ecoules",
                    "op": "+",
                    "val": 1
                  }
                ]
              }
            ],
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_fd2da993",
            "command": "retour_timers",
            "button": "↩️ Retour aux timers",
            "shape": null,
            "direction": null,
            "to": "demo_timers",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": [
              "all"
            ],
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_timer_tick_expire",
        "num": null,
        "button": null,
        "text": "**🔁 Timer tick expiré !**\n\nLes 3 minutes se sont écoulées.\nv_ticks_ecoules_v secondes ont été comptées par tick.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": [
          "all"
        ],
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 2
              },
              {
                "type": "goto",
                "to": "demo_timers"
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": null,
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_timer_global",
        "num": null,
        "button": null,
        "text": "**🌐 Timer global : survit aux changements de salle**\n\nUn timer global de 10 secondes est activé.\nContrairement au timer local, il continue même si vous naviguez vers d'autres salles !\n\nQuand il atteint 0, l'événement global \"alarme\" se déclenche dans la salle où vous serez à ce moment-là.\n\nNaviguez librement : le timer tourne en fond.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": [
              {
                "type": "var",
                "var": "bombe_en_cours",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🌐 Timer 'comptebombe' en cours, v_comptebombe_v secondes restantes."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": [
              {
                "type": "var",
                "var": "bombe_en_cours",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "bombe_en_cours",
                "op": "=",
                "val": 1
              },
              {
                "type": "timer_global",
                "id": "comptebombe",
                "state": "ON"
              },
              {
                "type": "event_global",
                "id": "alarme_bombe",
                "state": "ON"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🌐 Timer global 'comptebombe' activé, v_comptebombe_v secondes restantes."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_61142a32",
            "command": "retour_timers",
            "button": "↩️ Retour aux timers (le compte continue)",
            "shape": null,
            "direction": null,
            "to": "demo_timers",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_33620857",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_hud",
        "num": null,
        "button": null,
        "text": "**🖼️ Démonstration : Encadrés HUD persistants**\n\nUn encadré est posé en **haut-droite** à l'entrée de cette salle. Il affiche vos PV, votre score et un compte à rebours de **120 secondes** (timer global activé à l'entrée : `v_encadre_chrono_v` = secondes restantes).\n\nLe décompte est mis à jour à chaque action : cliquez sur les boutons pour voir les secondes diminuer en quasi temps réel.\n\nIl persiste si vous naviguez : il ne disparaît que si une autre salle le remplace (même position) ou le supprime explicitement.\n\nCelui-ci est aussi **redimensionnable** : utilisez la poignée en bas à droite de l'encadré pour ajuster sa taille. Par défaut, un HUD n'est pas redimensionnable ; l'auteur doit ajouter `redimensionnable: true` (`resizable: true` en anglais).\n\nNote de compatibilité : les encadrés HUD sont visibles sur les versions web et desktop. Sur Discord et dans le terminal, ils sont ignorés : si une information est essentielle, écrivez-la aussi dans le texte.\n\nTestez les différentes démonstrations :",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "haut-droite",
            "taille": 38,
            "largeur": null,
            "hauteur": null,
            "background": "#1a1a2e",
            "color": "#e0e0ff",
            "police": null,
            "resizable": true,
            "scope": null,
            "text": [
              {
                "text": "🎓 Showcase HUD\n❤️ v_pv_v / v_pvmax_v PV\n⭐ v_score_v pts  💰 v_or_v or\n⏱ v_encadre_chrono_v s restantes\n"
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "encadre_chrono",
                "op": "=",
                "val": 120
              },
              {
                "type": "timer_global",
                "id": "encadre_chrono",
                "state": "ON"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "⏱️ Compte à rebours lancé, v_encadre_chrono_v s restantes."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "or",
                "op": "+",
                "val": 5
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "💰 +5 pièces ! (Total : v_or_v or)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": [
              {
                "position": "haut-droite",
                "taille": 38,
                "largeur": null,
                "hauteur": null,
                "background": "#1a1a2e",
                "color": "#e0e0ff",
                "police": null,
                "resizable": true,
                "scope": null,
                "text": [
                  {
                    "text": "🎓 Showcase HUD\n❤️ v_pv_v / v_pvmax_v PV\n⭐ v_score_v pts  💰 v_or_v or\n⏱ v_encadre_chrono_v s restantes\n"
                  }
                ]
              }
            ],
            "clear_hud": null,
            "button": "💰 Ramasser de l'or (+5)",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_e84cdc97",
            "command": "hud_multi",
            "button": "🔢 Plusieurs encadrés simultanés",
            "shape": null,
            "direction": null,
            "to": "demo_hud_multi",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_fb9c3404",
            "command": "hud_cond",
            "button": "❤️ Encadré conditionnel",
            "shape": null,
            "direction": null,
            "to": "demo_hud_conditionnel",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_e07caf4b",
            "command": "hud_split",
            "button": "->️ Encadré split (deux zones)",
            "shape": null,
            "direction": null,
            "to": "demo_hud_split",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_4078c185",
            "command": "retour_menu",
            "button": "-> Gameplay alternatif",
            "shape": null,
            "direction": null,
            "to": "menu_gameplay",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": [
              "all"
            ],
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_1baf0a4f",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": [
              "all"
            ],
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_hud_multi",
        "num": null,
        "button": null,
        "text": "**Plusieurs encadrés simultanés**\n\nTrois encadrés coexistent : haut-gauche, haut-droite, bas-droite.\nChacun a son propre fond et sa couleur de texte.\n\nLes quatre coins peuvent coexister sans se remplacer.\nUne bande `haut` remplacerait les deux coins du haut.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "haut-gauche",
            "taille": 32,
            "largeur": null,
            "hauteur": null,
            "background": "#2d1b69",
            "color": "#c0b0ff",
            "police": null,
            "resizable": true,
            "scope": null,
            "text": [
              {
                "text": "❤️ v_pv_v / v_pvmax_v PV\n⭐ Score : v_score_v pts\n"
              }
            ]
          },
          {
            "position": "haut-droite",
            "taille": 32,
            "largeur": null,
            "hauteur": null,
            "background": "#1b3a2d",
            "color": "#a0ffcc",
            "police": null,
            "resizable": true,
            "scope": null,
            "text": [
              {
                "text": "💰 Or : v_or_v pièces\n⏱ v_encadre_chrono_v s\n"
              }
            ]
          },
          {
            "position": "bas-droite",
            "taille": 22,
            "largeur": null,
            "hauteur": null,
            "background": "#1a1a2e",
            "color": "#ffe0a0",
            "police": null,
            "resizable": true,
            "scope": null,
            "text": [
              {
                "text": "📍 Position : multi-HUD"
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_88b366c3",
            "command": "retour_hud",
            "button": "↩ Retour HUD",
            "shape": null,
            "direction": null,
            "to": "demo_hud",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": [
              "all"
            ],
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_hud_conditionnel",
        "num": null,
        "button": null,
        "text": "**Encadré conditionnel**\n\nLe texte de l'encadré (haut-droite) change selon vos PV.\nPerdez des PV pour voir l'encadré évoluer, soignez-vous pour remonter.\n\nChaque bloc dont la condition est vraie s'affiche : les conditions ne se recouvrent pas, pour qu'un seul état soit visible à la fois.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "haut-droite",
            "taille": 38,
            "largeur": null,
            "hauteur": null,
            "background": null,
            "color": null,
            "police": null,
            "resizable": true,
            "scope": null,
            "text": [
              {
                "text": "💀 MORT\n⭐ v_score_v pts\n",
                "if": [
                  {
                    "type": "var",
                    "var": "pv",
                    "op": "<=",
                    "val": 0,
                    "var_kind": "numeric"
                  }
                ]
              },
              {
                "text": "❤️ v_pv_v / v_pvmax_v\n⚠️ CRITIQUE !\n",
                "if": [
                  {
                    "type": "var",
                    "var": "pv",
                    "op": "in",
                    "min": 1,
                    "max": 3,
                    "var_kind": "numeric"
                  }
                ]
              },
              {
                "text": "❤️ v_pv_v / v_pvmax_v\n🩸 Blessé\n",
                "if": [
                  {
                    "type": "var",
                    "var": "pv",
                    "op": "in",
                    "min": 4,
                    "max": 6,
                    "var_kind": "numeric"
                  }
                ]
              },
              {
                "text": "❤️ v_pv_v / v_pvmax_v\n✅ En forme\n",
                "if": [
                  {
                    "type": "var",
                    "var": "pv",
                    "op": ">",
                    "val": 6,
                    "var_kind": "numeric"
                  }
                ]
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": [
              {
                "type": "var",
                "var": "pv",
                "op": ">",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "pv",
                "op": "-",
                "val": 3
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "💥 -3 PV (maintenant v_pv_v)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": [
              {
                "position": "haut-droite",
                "taille": 38,
                "largeur": null,
                "hauteur": null,
                "background": null,
                "color": null,
                "police": null,
                "resizable": true,
                "scope": null,
                "text": [
                  {
                    "text": "💀 MORT\n⭐ v_score_v pts\n",
                    "if": [
                      {
                        "type": "var",
                        "var": "pv",
                        "op": "<=",
                        "val": 0,
                        "var_kind": "numeric"
                      }
                    ]
                  },
                  {
                    "text": "❤️ v_pv_v / v_pvmax_v\n⚠️ CRITIQUE !\n",
                    "if": [
                      {
                        "type": "var",
                        "var": "pv",
                        "op": "in",
                        "min": 1,
                        "max": 3,
                        "var_kind": "numeric"
                      }
                    ]
                  },
                  {
                    "text": "❤️ v_pv_v / v_pvmax_v\n🩸 Blessé\n",
                    "if": [
                      {
                        "type": "var",
                        "var": "pv",
                        "op": "in",
                        "min": 4,
                        "max": 6,
                        "var_kind": "numeric"
                      }
                    ]
                  },
                  {
                    "text": "❤️ v_pv_v / v_pvmax_v\n✅ En forme\n",
                    "if": [
                      {
                        "type": "var",
                        "var": "pv",
                        "op": ">",
                        "val": 6,
                        "var_kind": "numeric"
                      }
                    ]
                  }
                ]
              }
            ],
            "clear_hud": null,
            "button": "💥 Perdre 3 PV",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": [
              {
                "type": "var",
                "var": "pv",
                "op": "<",
                "val": {
                  "var": "pvmax",
                  "var_kind": "numeric"
                },
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "pv",
                "op": "+",
                "val": 3
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "💊 +3 PV ! (maintenant v_pv_v)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": [
              {
                "position": "haut-droite",
                "taille": 38,
                "largeur": null,
                "hauteur": null,
                "background": null,
                "color": null,
                "police": null,
                "resizable": true,
                "scope": null,
                "text": [
                  {
                    "text": "💀 MORT\n⭐ v_score_v pts\n",
                    "if": [
                      {
                        "type": "var",
                        "var": "pv",
                        "op": "<=",
                        "val": 0,
                        "var_kind": "numeric"
                      }
                    ]
                  },
                  {
                    "text": "❤️ v_pv_v / v_pvmax_v\n⚠️ CRITIQUE !\n",
                    "if": [
                      {
                        "type": "var",
                        "var": "pv",
                        "op": "in",
                        "min": 1,
                        "max": 3,
                        "var_kind": "numeric"
                      }
                    ]
                  },
                  {
                    "text": "❤️ v_pv_v / v_pvmax_v\n🩸 Blessé\n",
                    "if": [
                      {
                        "type": "var",
                        "var": "pv",
                        "op": "in",
                        "min": 4,
                        "max": 6,
                        "var_kind": "numeric"
                      }
                    ]
                  },
                  {
                    "text": "❤️ v_pv_v / v_pvmax_v\n✅ En forme\n",
                    "if": [
                      {
                        "type": "var",
                        "var": "pv",
                        "op": ">",
                        "val": 6,
                        "var_kind": "numeric"
                      }
                    ]
                  }
                ]
              }
            ],
            "clear_hud": null,
            "button": "💊 Se soigner (+3 PV)",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_1de17fee",
            "command": "retour_hud",
            "button": "↩ Retour HUD",
            "shape": null,
            "direction": null,
            "to": "demo_hud",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": [
              "all"
            ],
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_hud_split",
        "num": null,
        "button": null,
        "text": "**Encadré avec split**\n\nL'encadré de gauche est divisé en **deux zones** via `[[split]]` dans le texte.\nLa zone du haut affiche la localisation, celle du bas les statistiques.\n\n`[[split]]` s'utilise comme un séparateur inline dans le `texte:` de l'encadré. Il peut aussi séparer une image `[[url_image]]` d'une zone texte.\n\nCas d'usage : portrait + stats, mini-carte + inventaire, etc.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "gauche",
            "taille": null,
            "largeur": 28,
            "hauteur": null,
            "background": "#111827",
            "color": "#f0f0f0",
            "police": null,
            "resizable": true,
            "scope": null,
            "text": [
              {
                "text": "🗺️ Zone actuelle\ndemo_hud_split\n[[split]]\n❤️ v_pv_v / v_pvmax_v\n💰 v_or_v pièces\n⏱ v_encadre_chrono_v s\n"
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "hud_proportions",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "La première zone est plus petite que la seconde."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": [
              {
                "position": "gauche",
                "taille": null,
                "largeur": 28,
                "hauteur": null,
                "background": "#111827",
                "color": "#f0f0f0",
                "police": null,
                "resizable": true,
                "scope": null,
                "vertical_align": "center",
                "text": [
                  {
                    "text": "🗺️ Zone actuelle\ndemo_hud_split\n[[split:40]]\n❤️ v_pv_v / v_pvmax_v\n💰 v_or_v pièces\n⏱ v_encadre_chrono_v s\n"
                  }
                ]
              }
            ],
            "clear_hud": null,
            "button": "Changer les proportions",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_444de648",
            "command": "retour_hud",
            "button": "↩ Retour HUD",
            "shape": null,
            "direction": null,
            "to": "demo_hud",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": [
              "all"
            ],
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_options",
        "num": null,
        "button": null,
        "text": "**🔗 Démonstration : Options & liens externes**\n\nLe bloc `options:` global définit les boutons permanents affichés dans la **toolbar** (en haut du jeu, pas dans les choix de navigation).\n\nCe showcase déclare ces options :\n  🔄 rafraichir -> réaffiche la salle courante\n  🎒 inventaire -> affiche l'inventaire\n  ↩️ precedent  -> retour salle précédente (si disponible)\n  ⭐ v_score_v  -> affiche la valeur de la variable score\n  🏠 accueil    -> accès direct à la salle accueil\n  📚 Wiki       -> lien externe (voir ci-dessous)\n  💬 Discord    -> lien externe (voir ci-dessous)\n\n----\n**Liens externes**\n\nUne option dont la valeur commence par `http://` ou `https://` ouvre un lien dans un nouvel onglet (web/desktop) ou l'affiche en texte (Discord/terminal).\n\nLes deux boutons 📚 et 💬 en haut de l'écran sont déclarés comme ceci :\n\n```yaml\noptions:\n  url1: \"https://cyril-fiesta.fr/jdr-bot-wiki/|📚 Wiki\"\n  url2: \"https://discord.gg/Z63DtVV|💬 Discord\"\n```\n\nLa clé `url1`, `url2`… est libre : c'est la **valeur** qui détermine le comportement (présence de `https://`). Le `|` sépare l'URL du label affiché sur le bouton.\n\n----\n**Fallback `examiner`**\n\nSi une option pointe vers un nom qui n'est pas une salle mais correspond à un objet/meuble de la salle courante, le moteur déclenche automatiquement la commande `examiner` dessus : au lieu d'afficher une erreur \"salle inconnue\".\n\n----\n**`description:` de scénario**\n\nLa clé `description:` au niveau global (voir début de ce fichier) est une description libre du scénario. Elle est affichée :\n  • au survol de la carte scénario (web/desktop)\n  • dans le header de l'export standalone",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_4ef3a44a",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_video",
        "num": null,
        "button": null,
        "text": "**🎬 Démonstration : Vidéos**\n\n----\n**Vidéo simple** : syntaxe `\\((url))`\n\nUne URL vidéo entre doubles parenthèses insère un lecteur HTML5.\nFormats supportés : `.mp4`, `.webm`, ainsi que les pages YouTube, Vimeo, Dailymotion et PeerTube.\nSur Discord, le lien est posté tel quel.\n\n(( https://cyril-fiesta.fr/jdr-bot/scenarios/videos/showcase/sample.mp4 ))\n\n----\n**Options** : syntaxe `\\((options:url))`\n\nLes options se placent avant le `:` de l'URL, séparées par `;`.\nExemples :\n  `\\((loop:url))`                    -> boucle\n  `\\((autoplay;muted:url))`          -> autoplay (muted requis par les navigateurs)\n  `\\((controls=false;loop;muted:url))` -> sans contrôles\n  `\\((poster=url_image:url))`        -> image avant la lecture (fichier seulement)",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "((loop:https://cyril-fiesta.fr/jdr-bot/scenarios/videos/showcase/sample.mp4))\nVidéo en boucle.\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "🔁 Boucle",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "((autoplay;muted:https://cyril-fiesta.fr/jdr-bot/scenarios/videos/showcase/sample.mp4))\nLecture automatique, son coupé.\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "▶️ Autoplay silencieux",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_3",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "((controls=false;loop;muted:https://cyril-fiesta.fr/jdr-bot/scenarios/videos/showcase/sample.mp4))\nVidéo sans barre de contrôles.\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "🚫 Sans contrôles",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_4",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "((https://www.youtube.com/watch?v=aqz-KE-bpKQ))\nLecteur YouTube, inséré à partir de l'adresse de la page.\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "📺 Vidéo YouTube",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_5",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "((ceci n'est pas une vidéo : affiché comme du texte normal))\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_6",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vidéo dans un encadré HUD haut."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": [
              {
                "position": "haut",
                "taille": 24,
                "largeur": null,
                "hauteur": null,
                "background": null,
                "color": null,
                "police": null,
                "resizable": null,
                "scope": null,
                "text": [
                  {
                    "text": "((loop;muted:https://cyril-fiesta.fr/jdr-bot/scenarios/videos/showcase/sample.mp4))"
                  }
                ]
              }
            ],
            "clear_hud": null,
            "button": "🖼️ HUD vidéo",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_7",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "HUD supprimé."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": [
              "all"
            ],
            "button": "✖️ Supprimer le HUD",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_8",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "score",
                "op": "+",
                "val": 3
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "+3 score pour avoir exploré la salle Vidéos !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_7a3fe7a1",
            "command": "retour_menu",
            "button": "-> Sons, images & vidéos",
            "shape": null,
            "direction": null,
            "to": "menu_media",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_bfcd0a57",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_tooltips",
        "num": null,
        "button": null,
        "text": "**💬 Tooltips interactifs**\n\nSur le bureau, une {{relique:?Un court texte suffit souvent. **Gras**, *italique*, `code` et retours +n+fonctionnent dans la bulle.}} repose près d'un {{sceau:?Image directement dans la bulle :+n+[[https://cyril-fiesta.fr/jdr-bot/scenarios/images/chateau/trophee.png]]}}.\n\nUne {{clochette:?Son directement dans la bulle :+n+<<https://cyril-fiesta.fr/jdr-bot/scenarios/sons/combat/kotor-attack.ogg>>}} tinte doucement. Une {{lucarne:?Vidéo directement dans la bulle :+n+((muted;controls=false;loop:https://cyril-fiesta.fr/jdr-bot/scenarios/videos/showcase/sample.mp4))}} s'anime sans quitter le texte.\n\nLe {{miroir:?Bulle + événement : l'image est aussi envoyée dans le fil.:!tt_image}} répond au survol. Le {{levier:!tt_compteur}} incrémente un compteur sans afficher de bulle.\n\nLe {{coffret:?Visible seulement avec la clé, grisé tant qu'il est verrouillé.:!tt_coffret}} illustre `visible-si` et `grise-si`.\nÉtat : clé v_tooltip_clef_v, verrou v_tooltip_lock_v\n\nSurvols déclenchés : v_tooltip_compteur_v",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": true,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "tt_image",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "tooltip_compteur",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "[[https://cyril-fiesta.fr/jdr-bot/scenarios/images/chateau/trophee.png]]\n*(Le miroir projette une image dans le fil : une seule fois par partie.)*\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": true,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "tt_compteur",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "tooltip_compteur",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le levier clique. Compteur tooltip : v_tooltip_compteur_v"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "tt_coffret",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "tooltip_compteur",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le coffret s'ouvre. Le tooltip était actif."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "tooltip_clef",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": [
              {
                "type": "var",
                "var": "tooltip_lock",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "tt_donner_clef",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "tooltip_clef",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Clé obtenue : le coffret devient visible, mais il reste grisé."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "Prendre la clé tooltip",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "tooltip_clef",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "tt_deverrouiller",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "tooltip_lock",
                "op": "=",
                "val": 0
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le coffret est déverrouillé : le tooltip devient actif."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "Déverrouiller le coffret",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "tooltip_clef",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": [
              {
                "type": "var",
                "var": "tooltip_lock",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "tt_reinit_etat",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "tooltip_clef",
                "op": "=",
                "val": 0
              },
              {
                "type": "var",
                "var": "tooltip_lock",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "État tooltip réinitialisé."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "Réinitialiser état tooltip",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_81360b29",
            "command": "retour_menu",
            "button": "-> Texte & affichage",
            "shape": null,
            "direction": null,
            "to": "menu_texte",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_0262e9f9",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_clickable",
        "num": null,
        "button": "👆 Éléments cliquables",
        "text": "**👆 Éléments cliquables**\n\nCliquez sur la {{clé:@prendre_cle}} pour la ramasser (once:true, une seule fois par partie).\nLe coffre et le mecanisme sont dans le HUD bas pour montrer `visible-si` et `grise-si` en temps réel.\n\nClic vers une autre salle : {{retour accueil:@vers_accueil}}.\n\nImage cliquable (clic -> texte) :\n{{https://cyril-fiesta.fr/jdr-bot/scenarios/images/petite_fabrique_mondes/animal_panda.png:@clic_panda}}",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "bas",
            "taille": 34,
            "largeur": null,
            "hauteur": null,
            "background": "#102a2f",
            "color": "#e6fbff",
            "police": null,
            "resizable": null,
            "scope": null,
            "text": [
              {
                "text": "Coffre dynamique : {{coffre:@ouvrir_coffre}}, visible-si avec la clé.\nMécanisme dynamique : {{mecanisme:@activer_mecanisme}}, grise-si tant qu'il est verrouillé.\nClé : v_clic_cle_v | Coffre : v_clic_coffre_v | Verrou : v_clic_lock_v | Mecanisme : v_clic_meca_v\n"
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "prendre_cle",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "clic_cle",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous ramassez la clé. Elle est froide dans votre paume."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": true,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "ouvrir_coffre",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "clic_coffre",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le coffre s'ouvre dans un claquement sourd."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "clic_cle",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": true,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "activer_mecanisme",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "clic_meca",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le mécanisme répond au clic. Activations : v_clic_meca_v"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": [
              {
                "type": "var",
                "var": "clic_lock",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "deverrouiller_mecanisme",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "clic_lock",
                "op": "=",
                "val": 0
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le mécanisme est déverrouillé : le mot devient cliquable."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "Déverrouiller mécanisme",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": [
              {
                "type": "var",
                "var": "clic_lock",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "vers_accueil",
            "if": null,
            "do": [
              {
                "type": "goto",
                "to": "accueil"
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "clic_panda",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "*(Vous avez cliqué sur le panda.)*"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_4ec50bdf",
            "command": "retour_menu",
            "button": "-> Gameplay alternatif",
            "shape": null,
            "direction": null,
            "to": "menu_gameplay",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_8155dc39",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_tilemap",
        "num": null,
        "button": null,
        "text": "**🗺️ Démonstration : Tuiles & Tilemaps**\n\n----\n**Extraction de tuile** : syntaxe `\\[[url:NxM:col:row]]`\n\nUne spritesheet est une grande image découpée en tuiles régulières.\n`NxM` définit la grille (colonnes × lignes), `col:row` sélectionne la tuile.\nLes colonnes et lignes sont numérotées à partir de **0** (0 = gauche/haut).\n\nVoici le tileset complet (8×16 tuiles) :\n[[https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png]]\n\nExtraction de 3 tuiles individuelles :\nHerbe (col 0, ligne 2) :\n[[https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:2]]\nPierre (col 0, ligne 4) :\n[[https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:4]]\nEau (col 3, ligne 6) :\n[[https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:3:6]]\n\n----\n**Assemblage en grille** : syntaxe `\\[[grid:NxM]] ... \\[[/grid]]`\n\nLes cellules sont séparées par `|` sur chaque ligne du bloc.\nChaque cellule peut être une tuile extraite ou une image directe.\n\nMini-carte 3×3 statique :\n[[grid:3x3]]\nhttps://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:2|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:2|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:2\nhttps://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:4|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:4|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:3:6\nhttps://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:4|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:3:6|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:3:6\n[[/grid]]\n\n----\n**HUD tilemap dynamique** : grille persistante avec `{variable}`\n\nLe HUD haut-droite affiche une mini-carte 3×3.\nLes **4 coins** utilisent `\\{col}:\\{row}`, ils changent quand vous appuyez sur les boutons ci-dessous.\nLes tuiles centrales et les bords sont fixes.\n\nGrille construite à partir d'une liste d'images, `\\[[grid:3:galerie_images]]` (3 colonnes) :\n[[grid:3:galerie_images]]\n\n(Discord / Terminal : grilles non affichées.)",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "haut-droite",
            "taille": null,
            "largeur": 20,
            "hauteur": null,
            "background": null,
            "color": null,
            "police": null,
            "resizable": null,
            "scope": null,
            "text": [
              {
                "text": "[[grid:3x3]]\nhttps://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:{col}:{row}|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:2|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:{col}:{row}\nhttps://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:4|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:3:6|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:4\nhttps://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:{col}:{row}|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:0:2|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/tileset-8-16.png:8x16:{col}:{row}\n[[/grid]]\n"
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "tm_col_plus",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "col",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Col = v_col_v, Ligne = v_row_v"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "Col +1",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "col",
                "op": "<",
                "val": 7,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "tm_col_moins",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "col",
                "op": "-",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Col = v_col_v, Ligne = v_row_v"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "Col -1",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "col",
                "op": ">",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "tm_row_plus",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "row",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Col = v_col_v, Ligne = v_row_v"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "Ligne +1",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "row",
                "op": "<",
                "val": 15,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "tm_row_moins",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "row",
                "op": "-",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Col = v_col_v, Ligne = v_row_v"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": "Ligne -1",
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "row",
                "op": ">",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_8eaae1d1",
            "command": "retour_menu",
            "button": "-> Gameplay alternatif",
            "shape": null,
            "direction": null,
            "to": "menu_gameplay",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_05c7ae76",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_dragdrop",
        "num": null,
        "button": "🖱️ Glisser-déposer",
        "text": "**🖱️ Glisser-déposer**\n\nGlissez un élément source et déposez-le sur une cible.\nSur mobile : tapez la source pour la sélectionner, puis tapez la cible.\n\n----\n**Cas 1 : source -> cible simple (once: true)**\nLa {{clé dorée:>dd_cle}} traîne par terre.\nLa {{porte verrouillée:$dd_porte}} attend d'être ouverte.\n\n----\n**Cas 2 : élément both (source ET cible selon le sens)**\nLa {{pierre à aiguiser:>dd_pierre:$dd_pierre}} peut frapper ou être frappée.\nLe {{marteau de tailleur:>dd_marteau}} peut la frapper.\n*(pierre->marteau, marteau->pierre et pierre->pierre : trois events distincts)*\n\n----\n**Cas 3 : une source, plusieurs cibles**\nLe {{chiffon magique:>dd_chiffon}} peut frotter n'importe quoi.\nLa {{lame rouillée:$dd_lame}} a besoin d'être nettoyée.\nLe {{bouclier cabossé:$dd_bouclier}} aussi.\n\n----\n**Cas 4 & 5 : visible-si et grise-si (voir HUD bas)**\nLes éléments dynamiques sont dans le HUD pour voir leur état s'actualiser en temps réel.\n\n----\n**Cas 6 : image comme source**\n{{[[https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/un.png]]:>dd_img}} -> glissez cette image sur la dalle\nLa {{dalle mystérieuse:$dd_dalle}} attend un symbole.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": [
          {
            "text": "Ces deux éléments n'ont rien à faire ensemble."
          }
        ],
        "show_type": true,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "bas",
            "taille": 34,
            "largeur": null,
            "hauteur": null,
            "background": "#1a1a2e",
            "color": "#e0e0ff",
            "police": null,
            "resizable": null,
            "scope": null,
            "text": [
              {
                "text": "🔑 Clé : v_dd_cle_v  |  🚪 Porte : v_dd_porte_v  |  🔒 Coffre : v_dd_coffre_v  |  🔨 Réparations : v_dd_reparations_v\n\nCas 4 : visible-si (disparaît si 2 versées) :\n{{fiole de soin:>dd_fiole}} -> {{chaudron:$dd_chaudron}} (v_dd_potions_v/2 versées)\n\nCas 5 : grise-si (grisé tant que réparations = 0) :\n{{épée brisée:>dd_epee}} -> {{enclume:$dd_enclume}}\n"
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "dd_cle_porte",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dd_porte",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "La clé tourne dans la serrure. *Clic*, la porte s'ouvre !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": [
              {
                "text": "La porte est déjà ouverte."
              }
            ],
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": "dd_cle",
            "target": "dd_porte",
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": true,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dd_pierre_marteau",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous raclez la pierre sur le marteau. Une arête vive apparaît."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": "dd_pierre",
            "target": "dd_marteau",
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dd_marteau_pierre",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le marteau frappe la pierre. *Crack*, un éclat se détache."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": "dd_marteau",
            "target": "dd_pierre",
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dd_pierre_pierre",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous frottez la pierre contre elle-même. Des étincelles jaillissent !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": "dd_pierre",
            "target": "dd_pierre",
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dd_chiffon_lame",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dd_reparations",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous nettoyez la lame rouillée. Elle brille à nouveau."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": "dd_chiffon",
            "target": "dd_lame",
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dd_chiffon_bouclier",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dd_reparations",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous polissez le bouclier cabossé. Il reflète la lumière."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": "dd_chiffon",
            "target": "dd_bouclier",
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dd_fiole_chaudron",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dd_potions",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous versez la fiole dans le chaudron (v_dd_potions_v/2)."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": "dd_fiole",
            "target": "dd_chaudron",
            "visible_if": [
              {
                "type": "var",
                "var": "dd_potions",
                "op": "<",
                "val": 2,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dd_epee_enclume",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dd_cle",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous réparez l'épée sur l'enclume. La clé cachée dans la garde tombe !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": "dd_epee",
            "target": "dd_enclume",
            "visible_if": null,
            "disabled_if": [
              {
                "type": "var",
                "var": "dd_reparations",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dd_img_dalle",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dd_coffre",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "L'image correspond au symbole gravé. Le coffre s'ouvre !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": "dd_img",
            "target": "dd_dalle",
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_ef422814",
            "command": "retour_menu",
            "button": "-> Gameplay alternatif",
            "shape": null,
            "direction": null,
            "to": "menu_gameplay",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_14f2239b",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_imagemap",
        "num": null,
        "button": null,
        "text": "**🗺️ Image Map : Point & clic**\nCliquez sur les éléments de la scène pour interagir. Survolez pour voir les tooltips.",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "haut",
            "taille": null,
            "largeur": null,
            "hauteur": 42,
            "background": null,
            "color": null,
            "police": null,
            "resizable": true,
            "scope": null,
            "text": [
              {
                "text": "[[#map:taverne:https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/taverne.png|https://cyril-fiesta.fr/jdr-bot/scenarios/images/showcase/taverne-masque.png]]"
              }
            ]
          },
          {
            "position": "bas",
            "taille": null,
            "largeur": null,
            "hauteur": null,
            "background": null,
            "color": null,
            "police": null,
            "resizable": true,
            "scope": null,
            "text": [
              {
                "text": "Bouteilles : v_im_bouteilles_v / 5  |  Survols de la taverne : v_im_survols_v"
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": [
          {
            "id": "init_23106a09",
            "var": "im_bouteilles",
            "value": 0,
            "description": null,
            "type": "numeric"
          },
          {
            "id": "init_e0163b44",
            "var": "im_parle",
            "value": 0,
            "description": null,
            "type": "numeric"
          },
          {
            "id": "init_78e325f9",
            "var": "im_avis",
            "value": 0,
            "description": null,
            "type": "numeric"
          },
          {
            "id": "init_709f250e",
            "var": "im_survols",
            "value": 0,
            "description": null,
            "type": "numeric"
          }
        ],
        "items": null,
        "events": [
          {
            "id": "im_parler_barman",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "im_parle",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le barman grommelle : **« On commande ou on dégage. »**"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "im_examiner",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "La salle est basse de plafond. Une cheminée fume dans un coin.\nUne demi-douzaine de clients douteux sirotent leur bière.\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "im_sortir",
            "if": null,
            "do": [
              {
                "type": "goto",
                "to": "accueil"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous ressortez dans la nuit froide."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "im_lire_avis",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "im_avis",
                "op": "=",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "L'avis représente un homme masqué.+n+\nPrime : **500 pièces d'or**. Mort ou vif.\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": true,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "im_toucher_bouteille",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "im_bouteilles",
                "op": "+",
                "val": 1
              },
              {
                "type": "trigger_event",
                "id": "im_felicitations"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Vous touchez la bouteille. Elle est vide."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": "zone-salle",
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "im_felicitations",
            "if": [
              {
                "type": "var",
                "var": "im_bouteilles",
                "op": "=",
                "val": 5,
                "var_kind": "numeric"
              }
            ],
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Toutes les bouteilles inspectées. Sens de l'observation remarquable."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": "salle",
            "tick": null,
            "manual": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "im_interroger_barman",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "**« L'étranger ? Parti y'a deux jours. Direction le port. »**\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": [
              {
                "type": "var",
                "var": "im_parle",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ],
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "im_hover_taverne",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "im_survols",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "im_examiner_trophee",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "Le sanglier empaillé a les mêmes yeux que le visage sur l'avis de recherche.+n+*Troublant.*\n"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": [
              {
                "type": "var",
                "var": "im_avis",
                "op": "=",
                "val": 1,
                "var_kind": "numeric"
              }
            ],
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_75cae4bd",
            "command": "retour_menu",
            "button": "-> Gameplay alternatif",
            "shape": null,
            "direction": null,
            "to": "menu_gameplay",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_f3f2a371",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null,
        "zones": {
          "taverne": {
            "couleurs": [
              {
                "couleur": "#FF0000",
                "clic": "im_parler_barman",
                "survol-tooltip": "Le barman.",
                "highlight": true,
                "couleur-affichage": "#FFF4A3"
              },
              {
                "couleur": "#0000FF",
                "clic": "im_examiner",
                "survol-tooltip": "Regardez attentivement la salle...",
                "highlight": true,
                "couleur-affichage": "#FFF4A3"
              },
              {
                "couleur": "#00FF00",
                "clic": "im_sortir",
                "highlight": true,
                "couleur-affichage": "#FFF4A3"
              },
              {
                "couleur": "#C9B71F",
                "clic": "im_lire_avis",
                "survol-tooltip": "Un avis de recherche froissé.",
                "highlight": true
              },
              {
                "couleur": "#00FFF3",
                "clic": "im_toucher_bouteille",
                "survol-tooltip": "Une bouteille vide.",
                "highlight": true,
                "contour-seul": true
              },
              {
                "couleur": "#CB7CD8",
                "clic": "im_interroger_barman",
                "survol-tooltip": "Le barman vous observe d'un œil méfiant.",
                "highlight": true
              },
              {
                "couleur": "#7313A7",
                "survol-tooltip": "La taverne du village.",
                "survol-event": "im_hover_taverne"
              },
              {
                "couleur": "#D8A57C",
                "clic": "im_examiner_trophee",
                "survol-tooltip": "Une tête de sanglier empaillée.",
                "highlight": true
              }
            ]
          }
        }
      },
      {
        "id": "demo_declencheurs",
        "num": null,
        "button": null,
        "text": "**⚡ Déclencheurs cachés scriptables**\nDes actions hors interface déclenchent des événements invisibles.\n+n+\nEssayez :\n+n+\n- **Code Konami** : ↑↑↓↓←→←→BA (clavier, hors champ de saisie)\n- **Inactivité** : ne rien faire pendant 15 secondes\n- **Commande secrète** : tapez `sésame ouvre-toi` dans le champ de saisie\n- **5 clics sur le HUD** : cliquez 5 fois sur l'encadré en haut\n- **Mot-clé** : tapez `abracadabra` dans le champ\n- **Combo** : appuyez sur Haut Bas puis tapez `open` dans cet ordre",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": [
          {
            "position": "haut",
            "taille": null,
            "largeur": null,
            "hauteur": null,
            "background": null,
            "color": null,
            "police": null,
            "resizable": null,
            "scope": null,
            "text": [
              {
                "text": "Konami : v_dec_konami_v | Idle : v_dec_idle_v | Phrase : v_dec_commande_v | Mot : v_dec_phrase_v | Combo : v_dec_combo_v"
              }
            ]
          }
        ],
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": [
          {
            "id": "init_0f3e39fa",
            "var": "dec_konami",
            "value": 0,
            "description": null,
            "type": "numeric"
          },
          {
            "id": "init_fcf71da7",
            "var": "dec_idle",
            "value": 0,
            "description": null,
            "type": "numeric"
          },
          {
            "id": "init_472afd75",
            "var": "dec_commande",
            "value": 0,
            "description": null,
            "type": "numeric"
          },
          {
            "id": "init_7db6e9dd",
            "var": "dec_phrase",
            "value": 0,
            "description": null,
            "type": "numeric"
          },
          {
            "id": "init_8373ae54",
            "var": "dec_combo",
            "value": 0,
            "description": null,
            "type": "numeric"
          }
        ],
        "items": null,
        "events": [
          {
            "id": "dec_konami_event",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dec_konami",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🎮 Code Konami activé ! (v_dec_konami_v fois au total)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "manual": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dec_idle_event",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dec_idle",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "😴 Vous êtes inactif depuis trop longtemps... Réveillez-vous ! (déclenchements : v_dec_idle_v)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "manual": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dec_commande_event",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dec_commande",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🗝 La caverne s'ouvre... mais il n'y a rien dedans. Dommage ! (v_dec_commande_v fois)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "manual": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dec_hud_event",
            "if": null,
            "do": null,
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "👆 Vous avez cliqué 5 fois sur le HUD. C'est impressionnant et complètement inutile."
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "manual": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dec_phrase_event",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dec_phrase",
                "op": "+",
                "val": 1
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "✨ Abracadabra ! Le mot magique fonctionne. (v_dec_phrase_v fois)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "manual": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "dec_combo_event",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "dec_combo",
                "op": "+",
                "val": 1
              },
              {
                "type": "easter_egg",
                "effect": "invert"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🔓 Combo réussi ! Vous avez bien enchaîné Haut Bas puis tapé 'open'. (v_dec_combo_v fois)"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "manual": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_ee7be563",
            "command": "retour_menu",
            "button": "-> Événements & aléatoire",
            "shape": null,
            "direction": null,
            "to": "menu_events",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_6a81b94b",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": [
          {
            "id": "decl_7dcb2df2",
            "trigger": {
              "type": "konami"
            },
            "if": null,
            "do": [
              {
                "type": "trigger_event",
                "id": "dec_konami_event"
              },
              {
                "type": "easter_egg",
                "effect": "barrel_roll",
                "params": "2"
              }
            ],
            "once": false,
            "text": null,
            "text_ko": null
          },
          {
            "id": "decl_b82ed85d",
            "trigger": {
              "type": "idle",
              "seconds": 15
            },
            "if": null,
            "do": [
              {
                "type": "trigger_event",
                "id": "dec_idle_event"
              },
              {
                "type": "easter_egg",
                "effect": "matrix",
                "params": "3"
              }
            ],
            "once": "salle",
            "text": null,
            "text_ko": null
          },
          {
            "id": "decl_de8834b8",
            "trigger": {
              "type": "commande",
              "phrase": "sésame ouvre-toi"
            },
            "if": null,
            "do": [
              {
                "type": "trigger_event",
                "id": "dec_commande_event"
              },
              {
                "type": "easter_egg",
                "effect": "confetti"
              }
            ],
            "once": false,
            "text": null,
            "text_ko": null
          },
          {
            "id": "decl_f6c56973",
            "trigger": {
              "type": "clicks",
              "target": "hud",
              "n": 5
            },
            "if": null,
            "do": [
              {
                "type": "trigger_event",
                "id": "dec_hud_event"
              },
              {
                "type": "easter_egg",
                "effect": "shake"
              }
            ],
            "once": false,
            "text": null,
            "text_ko": null
          },
          {
            "id": "decl_f97956b5",
            "trigger": {
              "type": "commande",
              "phrase": "abracadabra"
            },
            "if": null,
            "do": [
              {
                "type": "trigger_event",
                "id": "dec_phrase_event"
              },
              {
                "type": "easter_egg",
                "effect": "glitch"
              }
            ],
            "once": true,
            "text": null,
            "text_ko": [
              {
                "text": "Le sort a déjà été lancé... il ne peut pas être répété."
              }
            ]
          },
          {
            "id": "decl_89592f32",
            "trigger": {
              "type": "combo",
              "steps": [
                {
                  "type": "sequence",
                  "keys": [
                    "ArrowUp"
                  ]
                },
                {
                  "type": "sequence",
                  "keys": [
                    "ArrowDown"
                  ]
                },
                {
                  "type": "commande",
                  "phrase": "open"
                }
              ]
            },
            "if": null,
            "do": [
              {
                "type": "trigger_event",
                "id": "dec_combo_event"
              }
            ],
            "once": false,
            "text": null,
            "text_ko": null
          }
        ]
      },
      {
        "id": "demo_boucles",
        "num": null,
        "button": null,
        "text": [
          {
            "text": "**🔁 Boucles**\n\nDeux coups résonnent derrière la porte :"
          },
          {
            "type": "repeat",
            "count": 5,
            "index": "ligne_demo",
            "do": [
              {
                "type": "loop_group",
                "if": [
                  {
                    "type": "var",
                    "var": "ligne_demo",
                    "op": "=",
                    "val": 1,
                    "var_kind": "numeric"
                  }
                ],
                "do": [
                  {
                    "type": "continue"
                  }
                ]
              },
              {
                "type": "loop_group",
                "if": [
                  {
                    "type": "var",
                    "var": "ligne_demo",
                    "op": "=",
                    "val": 3,
                    "var_kind": "numeric"
                  }
                ],
                "do": [
                  {
                    "type": "break"
                  }
                ]
              },
              {
                "type": "loop_group",
                "if": null,
                "do": [],
                "text": "Toc."
              }
            ]
          },
          {
            "text": "Sur votre liste de courses :"
          },
          {
            "type": "for_each",
            "alias": "article_texte",
            "list": "liste_courses",
            "index": "place_texte",
            "do": [
              {
                "type": "loop_group",
                "if": null,
                "do": [],
                "text": "• t_article_texte_t"
              }
            ]
          },
          {
            "text": "Vous pouvez frapper à votre tour, ou faire lire vos courses à voix haute."
          }
        ],
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_f589a7cf",
            "command": "retour_actions",
            "button": "Retour aux actions",
            "shape": null,
            "direction": null,
            "to": "demo_actions",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": [
          {
            "id": "act_b84e3643",
            "verb": "repeter_demo",
            "target": "all",
            "alias": null,
            "button": "Frapper à la porte",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "var",
                "var": "total_boucle",
                "op": "=",
                "val": 0
              },
              {
                "type": "repeat",
                "count": 5,
                "index": "passage_demo",
                "do": [
                  {
                    "type": "loop_group",
                    "if": [
                      {
                        "type": "var",
                        "var": "passage_demo",
                        "op": "=",
                        "val": 1,
                        "var_kind": "numeric"
                      }
                    ],
                    "do": [
                      {
                        "type": "continue"
                      }
                    ]
                  },
                  {
                    "type": "loop_group",
                    "if": [
                      {
                        "type": "var",
                        "var": "passage_demo",
                        "op": "=",
                        "val": 3,
                        "var_kind": "numeric"
                      }
                    ],
                    "do": [
                      {
                        "type": "break"
                      }
                    ]
                  },
                  {
                    "type": "var",
                    "var": "total_boucle",
                    "op": "+",
                    "val": 1
                  },
                  {
                    "type": "loop_group",
                    "if": null,
                    "do": [],
                    "text": "Toc."
                  }
                ]
              }
            ],
            "text_ok": "Vous avez frappé v_total_boucle_v fois. Personne ne répond.",
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": {
              "keys": [
                "r"
              ],
              "gamepad": [
                "X"
              ]
            },
            "show_shortcut": true
          },
          {
            "id": "act_55b42348",
            "verb": "parcourir_demo",
            "target": "all",
            "alias": null,
            "button": "Lire les courses",
            "direction": null,
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "do": [
              {
                "type": "for_each",
                "alias": "article_action",
                "list": "liste_courses",
                "index": "place_action",
                "do": [
                  {
                    "type": "loop_group",
                    "if": null,
                    "do": [],
                    "text": "• t_article_action_t"
                  }
                ]
              }
            ],
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "triggers": null
      },
      {
        "id": "demo_auto_refresh",
        "num": null,
        "button": null,
        "text": [
          {
            "text": "**🔄 Texte principal actualisable automatiquement**"
          },
          {
            "text": "+n+Le texte ci-dessous se met à jour **à chaque seconde** sans rechargement de salle.+n+Les variables sont réévaluées en temps réel.+n+"
          },
          {
            "text": "⏱️ Secondes écoulées : **v_secondes_refresh_v** / 60"
          },
          {
            "text": "⏳ Avant la relance : **v_chrono_refresh_v** s (le nom du timer se lit comme une variable)"
          },
          {
            "text": "+n+"
          },
          {
            "text": "🟡 _(le timer démarre dans un instant…)_",
            "if": [
              {
                "type": "var",
                "var": "secondes_refresh",
                "op": "=",
                "val": 0,
                "var_kind": "numeric"
              }
            ]
          },
          {
            "text": "🟢 Rafraîchissement actif !",
            "if": [
              {
                "type": "var",
                "var": "secondes_refresh",
                "op": ">",
                "val": 0,
                "var_kind": "numeric"
              }
            ]
          },
          {
            "text": "+n+"
          },
          {
            "text": "🔵 Moins de 10 secondes écoulées.",
            "if": [
              {
                "type": "var",
                "var": "secondes_refresh",
                "op": "in",
                "min": 1,
                "max": 9,
                "var_kind": "numeric"
              }
            ]
          },
          {
            "text": "🟠 Plus de 10 secondes écoulées.",
            "if": [
              {
                "type": "var",
                "var": "secondes_refresh",
                "op": ">=",
                "val": 10,
                "var_kind": "numeric"
              }
            ]
          },
          {
            "text": "🔴 Plus de 30 secondes, le timer va bientôt redémarrer !",
            "if": [
              {
                "type": "var",
                "var": "secondes_refresh",
                "op": ">=",
                "val": 30,
                "var_kind": "numeric"
              }
            ]
          }
        ],
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": true,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": [
          {
            "id": "init_869db804",
            "var": "secondes_refresh",
            "value": 0,
            "description": null,
            "type": "numeric"
          }
        ],
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "goto",
                "to": "demo_auto_refresh"
              }
            ],
            "timer": "chrono_refresh",
            "duration": 60,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": [
              {
                "cond": null,
                "do": [
                  {
                    "type": "var",
                    "var": "secondes_refresh",
                    "op": "+",
                    "val": 1
                  }
                ]
              }
            ],
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": [
          {
            "id": "choice_a1fb8cc2",
            "command": "retour_menu",
            "button": "-> Texte & affichage",
            "shape": null,
            "direction": null,
            "to": "menu_texte",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_3f84bb37",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "demo_fins",
        "num": null,
        "button": null,
        "text": "**🏆 Démonstration : Fins de partie**\n\nScore final : v_score_v ⭐\n\nChoisissez votre fin :",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": null,
        "choices": [
          {
            "id": "choice_1df5d0fa",
            "command": "victoire",
            "button": "🏆 Fin Victoire",
            "shape": null,
            "direction": null,
            "to": "fin_victoire",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_34d9bbfb",
            "command": "defaite",
            "button": "💀 Fin Défaite",
            "shape": null,
            "direction": null,
            "to": "fin_defaite",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_c2a917c6",
            "command": "auto",
            "button": "🎲 Fin automatique (selon score)",
            "shape": null,
            "direction": null,
            "to": "fin_auto",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_81daa5fb",
            "command": "retour_menu",
            "button": "-> Progression du joueur",
            "shape": null,
            "direction": null,
            "to": "menu_progression",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "choice_b61a24f6",
            "command": "retour",
            "button": null,
            "shape": null,
            "direction": null,
            "to": "accueil",
            "if": null,
            "visible_if": null,
            "disabled_if": null,
            "effect": null,
            "text": null,
            "text_ok": null,
            "text_ko": null,
            "text_ok_background": null,
            "text_ok_color": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "text_order": [
              "text",
              "text_ok",
              "text_ko"
            ],
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "actions": null,
        "triggers": null
      },
      {
        "id": "fin_victoire",
        "num": null,
        "button": null,
        "text": "<<https://cyril-fiesta.fr/jdr-bot/scenarios/sons/chateau/congratulations.ogg>>\n**🏆 VICTOIRE !**\n\nFélicitations t_nomjoueur_t !\nScore final : v_score_v ⭐\nRecord mondial : v_recordscore_o_v ⭐",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": [
              {
                "type": "var",
                "var": "score",
                "op": ">",
                "val": {
                  "var": "recordscore_o",
                  "var_kind": "numeric"
                },
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "recordscore_o",
                "op": "=",
                "val": {
                  "var": "score",
                  "var_kind": "numeric"
                }
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "fin_victoire_p",
                "op": "+",
                "val": 1
              },
              {
                "type": "achievement",
                "id": "triomphe"
              },
              {
                "type": "end",
                "end": "victory"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🏆 Vous avez terminé le Showcase avec v_score_v points !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": null,
        "actions": null,
        "triggers": null
      },
      {
        "id": "fin_defaite",
        "num": null,
        "button": null,
        "text": "**💀 DÉFAITE**\n\nVous abandonnez t_nomjoueur_t...\nScore : v_score_v ⭐",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "fin_defaite_p",
                "op": "+",
                "val": 1
              },
              {
                "type": "achievement",
                "id": "chute"
              },
              {
                "type": "end",
                "end": "defeat"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "💀 Partie terminée. Recommencez pour améliorer votre score !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": null,
        "actions": null,
        "triggers": null
      },
      {
        "id": "fin_auto",
        "num": null,
        "button": null,
        "text": "**🎲 Fin automatique selon votre score...**\nScore : v_score_v ⭐",
        "ui": null,
        "hide_input": null,
        "screen": null,
        "forme": null,
        "auto_refresh": null,
        "command_echo": null,
        "shortcuts": [],
        "phone_auto_orientation": null,
        "interaction_ko": null,
        "show_type": null,
        "background": null,
        "color": null,
        "card": null,
        "hud": null,
        "clear_hud": null,
        "tag_before": null,
        "tag_after": null,
        "modeles_instances": null,
        "init": null,
        "items": null,
        "events": [
          {
            "id": "evt_1",
            "if": [
              {
                "type": "var",
                "var": "score",
                "op": ">",
                "val": 20,
                "var_kind": "numeric"
              },
              {
                "type": "var",
                "var": "score",
                "op": ">",
                "val": {
                  "var": "recordscore_o",
                  "var_kind": "numeric"
                },
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "recordscore_o",
                "op": "=",
                "val": {
                  "var": "score",
                  "var_kind": "numeric"
                }
              }
            ],
            "timer": null,
            "duration": null,
            "text": null,
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_2",
            "if": [
              {
                "type": "var",
                "var": "score",
                "op": ">",
                "val": 20,
                "var_kind": "numeric"
              }
            ],
            "do": [
              {
                "type": "var",
                "var": "fin_victoire_p",
                "op": "+",
                "val": 1
              },
              {
                "type": "achievement",
                "id": "triomphe"
              },
              {
                "type": "end",
                "end": "victory"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "🏆 Score suffisant (>20), Victoire !"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          },
          {
            "id": "evt_3",
            "if": null,
            "do": [
              {
                "type": "var",
                "var": "fin_defaite_p",
                "op": "+",
                "val": 1
              },
              {
                "type": "achievement",
                "id": "chute"
              },
              {
                "type": "end",
                "end": "defeat"
              }
            ],
            "timer": null,
            "duration": null,
            "text": [
              {
                "text": "💀 Score insuffisant (≤20), Défaite ! Score : v_score_v"
              }
            ],
            "background": null,
            "color": null,
            "text_ko": null,
            "text_ko_background": null,
            "text_ko_color": null,
            "hud": null,
            "clear_hud": null,
            "button": null,
            "direction": null,
            "source": null,
            "target": null,
            "visible_if": null,
            "disabled_if": null,
            "max": null,
            "once": null,
            "tick": null,
            "id_auto": true,
            "shortcut": null,
            "show_shortcut": null
          }
        ],
        "choices": null,
        "actions": null,
        "triggers": null
      }
    ]
  },
  "layout": {
    "room_positions": {
      "accueil": {
        "x": 60,
        "y": 60
      },
      "aide": {
        "x": 380,
        "y": 60
      },
      "menu_texte": {
        "x": 700,
        "y": 60
      },
      "menu_variables": {
        "x": 1020,
        "y": 60
      },
      "menu_objets": {
        "x": 1340,
        "y": 60
      },
      "menu_events": {
        "x": 60,
        "y": 280
      },
      "menu_gameplay": {
        "x": 380,
        "y": 280
      },
      "menu_media": {
        "x": 700,
        "y": 280
      },
      "menu_progression": {
        "x": 1020,
        "y": 280
      },
      "demo_markdown": {
        "x": 1340,
        "y": 280
      },
      "demo_variables": {
        "x": 60,
        "y": 500
      },
      "demo_objets": {
        "x": 380,
        "y": 500
      },
      "demo_actions": {
        "x": 700,
        "y": 500
      },
      "demo_events": {
        "x": 1020,
        "y": 500
      },
      "demo_loot": {
        "x": 1340,
        "y": 500
      },
      "loot_commun": {
        "x": 60,
        "y": 720
      },
      "loot_rare": {
        "x": 380,
        "y": 720
      },
      "loot_legendaire": {
        "x": 700,
        "y": 720
      },
      "demo_events_globaux": {
        "x": 1020,
        "y": 720
      },
      "demo_events_globaux_off": {
        "x": 1340,
        "y": 720
      },
      "demo_media": {
        "x": 60,
        "y": 940
      },
      "demo_succes": {
        "x": 380,
        "y": 940
      },
      "succes_collection": {
        "x": 700,
        "y": 940
      },
      "succes_globaux": {
        "x": 1020,
        "y": 940
      },
      "demo_conditions": {
        "x": 1340,
        "y": 940
      },
      "demo_tags": {
        "x": 60,
        "y": 1160
      },
      "demo_tags2": {
        "x": 380,
        "y": 1160
      },
      "demo_modeles": {
        "x": 700,
        "y": 1160
      },
      "demo_timers": {
        "x": 1020,
        "y": 1160
      },
      "demo_timer_block": {
        "x": 1340,
        "y": 1160
      },
      "demo_timer_local": {
        "x": 60,
        "y": 1380
      },
      "timer_local_expire": {
        "x": 380,
        "y": 1380
      },
      "demo_timer_tick": {
        "x": 700,
        "y": 1380
      },
      "demo_timer_tick_expire": {
        "x": 1020,
        "y": 1380
      },
      "demo_timer_global": {
        "x": 1340,
        "y": 1380
      },
      "demo_hud": {
        "x": 60,
        "y": 1600
      },
      "demo_hud_multi": {
        "x": 380,
        "y": 1600
      },
      "demo_hud_conditionnel": {
        "x": 700,
        "y": 1600
      },
      "demo_hud_split": {
        "x": 1020,
        "y": 1600
      },
      "demo_options": {
        "x": 1340,
        "y": 1600
      },
      "demo_video": {
        "x": 60,
        "y": 1820
      },
      "demo_tooltips": {
        "x": 380,
        "y": 1820
      },
      "demo_clickable": {
        "x": 700,
        "y": 1820
      },
      "demo_tilemap": {
        "x": 1020,
        "y": 1820
      },
      "demo_dragdrop": {
        "x": 1340,
        "y": 1820
      },
      "demo_imagemap": {
        "x": 60,
        "y": 2040
      },
      "demo_declencheurs": {
        "x": 380,
        "y": 2040
      },
      "demo_boucles": {
        "x": 1740,
        "y": 120
      },
      "demo_auto_refresh": {
        "x": 700,
        "y": 2040
      },
      "demo_fins": {
        "x": 1020,
        "y": 2040
      },
      "fin_victoire": {
        "x": 1340,
        "y": 2040
      },
      "fin_defaite": {
        "x": 60,
        "y": 2260
      },
      "fin_auto": {
        "x": 380,
        "y": 2260
      },
      "__mroom__|mini_combat|attaque": {
        "x": 205,
        "y": 2432
      },
      "__mroom__|mini_combat|frappe": {
        "x": 419,
        "y": 2432
      },
      "__mroom__|mini_combat|recompense": {
        "x": 205,
        "y": 2568
      },
      "__mexit__|mini_combat|victoire": {
        "x": 612,
        "y": 2432
      },
      "__mexit__|mini_combat|defaite": {
        "x": 612,
        "y": 2516
      }
    },
    "room_sizes": {},
    "room_collapsed": {
      "accueil": true,
      "aide": true,
      "menu_texte": true,
      "menu_variables": true,
      "menu_objets": true,
      "menu_events": true,
      "menu_gameplay": true,
      "menu_media": true,
      "menu_progression": true,
      "demo_markdown": true,
      "demo_variables": true,
      "demo_objets": true,
      "demo_actions": true,
      "demo_events": true,
      "demo_loot": true,
      "loot_commun": true,
      "loot_rare": true,
      "loot_legendaire": true,
      "demo_events_globaux": true,
      "demo_events_globaux_off": true,
      "demo_media": true,
      "demo_succes": true,
      "succes_collection": true,
      "succes_globaux": true,
      "demo_conditions": true,
      "demo_tags": true,
      "demo_tags2": true,
      "demo_modeles": true,
      "demo_timers": true,
      "demo_timer_block": true,
      "demo_timer_local": true,
      "timer_local_expire": true,
      "demo_timer_tick": true,
      "demo_timer_tick_expire": true,
      "demo_timer_global": true,
      "demo_hud": true,
      "demo_hud_multi": true,
      "demo_hud_conditionnel": true,
      "demo_hud_split": true,
      "demo_options": true,
      "demo_video": true,
      "demo_tooltips": true,
      "demo_clickable": true,
      "demo_tilemap": true,
      "demo_dragdrop": true,
      "demo_imagemap": true,
      "demo_declencheurs": true,
      "demo_boucles": true,
      "demo_auto_refresh": true,
      "demo_fins": true,
      "fin_victoire": true,
      "fin_defaite": true,
      "fin_auto": true
    },
    "groups": [],
    "viewport": {
      "zoom": 1,
      "pan_x": 0,
      "pan_y": 0
    }
  },
  "editor": {
    "selected_room_id": null,
    "save_auto": false,
    "vue": "graphe",
    "lang": "fr"
  },
  "yaml_meta": {
    "version": 1,
    "_root_": {
      "key_order": [
        "Nombre_yaml",
        "id",
        "langue",
        "titre",
        "description",
        "markdown",
        "options",
        "tags",
        "modeles",
        "auto_refresh_text",
        "vars",
        "vars_texte",
        "listes",
        "collections",
        "succes",
        "alias_globaux",
        "actions_globales",
        "evenements_globaux",
        "timers_globaux",
        "declencheurs_globaux",
        "salles"
      ],
      "comments_before": {
        "id": "# SHOWCASE JDR-BOT / Tutoriel syntaxe YAML\n# Ce scénario présente toutes les fonctionnalités du moteur.\n# Chaque salle est commentée pour servir de référence aux\n# auteurs qui débutent avec la syntaxe YAML JDR-Bot.\n# Le showcase suit le moteur tel qu'il est aujourd'hui. Les\n# salles sont donc classées par sujet et non par date : pour\n# savoir quand une fonctionnalité est apparue, voir CHANGELOG.\n# Les sections ci-dessous correspondent aux salles de menu du\n# jeu (menu_texte, menu_variables, menu_objets, menu_events,\n# menu_gameplay, menu_media, menu_progression).\n# Écrire le texte\n# ✍️  Formatage Markdown       -> demo_markdown\n# (styles par bloc, blocs sémantiques, taille, police)\n# 🔄 Texte dynamique          -> demo_auto_refresh\n# 💬 Tooltips interactifs     -> demo_tooltips\n# Données et logique\n# 🔢 Variables (nombres / textes / listes / collections) -> demo_variables\n# (de partie, persistantes _p, online _o, record partagé)\n# 🔀 Conditions d'affichage   -> demo_conditions\n# (texte conditionnel, visible-si, grise-si, effet, max)\n# 📦 Objets & Inventaire      -> demo_objets\n# ⚙️  Actions personnalisées   -> demo_actions\n# 🎲 Événements & Aléatoire   -> demo_events / demo_loot\n# ✨ Événements globaux        -> demo_events_globaux\n# 🏷️  Tags & modèles de salles -> demo_tags / demo_modeles\n# Interface et médias\n# 🔊 Sons & Images            -> demo_media\n# 🎬 Vidéos                   -> demo_video\n# 🖼️  Encadrés HUD persistants -> demo_hud\n# 🗺️  Tuiles & Tilemaps        -> demo_tilemap\n# 🖱️  Glisser-déposer          -> demo_dragdrop\n# 👆 Éléments cliquables      -> demo_clickable\n# 🖼️  Image Map / Point & clic -> demo_imagemap\n# 🔗 Options / liens externes -> demo_options\n# Temps et interactions cachées\n# ⏱️  Timers                   -> demo_timers\n# (blocage, local, tick, timer global autonome)\n# ⚡  Déclencheurs cachés      -> demo_declencheurs\n# Progression du joueur\n# 🏆 Succès                   -> demo_succes\n# (collection du scénario, collection globale, notif)\n# 🎯 Fins de partie           -> demo_fins\n# Salles de résultats : fin_victoire, fin_defaite, fin_auto,\n# bonus_visite, soin_urgence…\n# DÉCOUPAGE DU SHOWCASE - FICHIER 1/4\n#\n# Ce scénario est réparti entre quatre fichiers YAML. Le fichier principal\n# contient `Nombre_yaml: 4` (total incluant le principal). Le moteur assemble\n# showcase.yaml, showcase.1.yaml, showcase.2.yaml et showcase.3.yaml dans cet\n# ordre, puis analyse le YAML obtenu.\n#\n# Vous pouvez créer ces fichiers à la main, en UTF-8, dans le même dossier.\n# Gardez le même nom de base et la même extension, avec des numéros consécutifs\n# à partir de .1. Pour créer showcase.zip, placez les quatre YAML à la racine\n# du ZIP ou ensemble dans un même sous-dossier. Aucun projet .jdrproj requis.\n# Le dossier showcase peut aussi être ouvert avec \"Ouvrir un dossier\".\n#\n# Conservez l'indentation du document complet : ne répétez pas une clé comme\n# salles: à chaque fragment et n'ajoutez pas de séparateur YAML --- entre eux.\n# Les fragments numérotés ne sont pas des scénarios autonomes.\n#\n# Pour garder les coupures lors d'un aller-retour dans l'éditeur, placez-les\n# entre deux sections globales ou deux salles. Le moteur exige seulement que\n# le texte réassemblé soit valide ; l'éditeur ne peut pas conserver une coupure\n# au milieu d'un bloc. Les commentaires de la section suivante vont avec elle.\n#\n# L'éditeur propose aussi des séparateurs dans la liste de gauche : ajoutez-les\n# aux endroits voulus, puis exportez le YAML pour obtenir le ZIP de la série.\n#\n# TITRE\n# Le titre est affiché au lancement. Il peut contenir des variables\n# online (v_nom_o_v) pour afficher des stats en temps réel.\n# Attention : Le caractère | est interdit dans le titre. Utiliser / à la place.\n# Id du scénario\n# Identifiant stable, obligatoire dès qu'un scénario utilise des succès\n# ou des variables persistantes (_p) : c'est lui qui relie la progression\n# enregistrée au scénario, et non le nom du fichier.\n# Attention : Ne plus le changer après publication, sinon le jeu considère qu'il\n#    s'agit d'un autre scénario et repart d'une progression vide.\n# Une traduction garde le MÊME id que l'original pour partager sa\n# progression (scripts/showcase/showcase.yaml porte donc aussi id: showcase).\n# - Boucles -> demo_boucles (actions) : répéter, parcourir, stop / continue.\n# - Alignement local -> demo_markdown : balises align et variable.\n# - Grille de liste / split dimensionné -> demo_tilemap / demo_hud_split.\n# - Objet dans un meuble / appel dynamique -> demo_objets / demo_events.\n# - Raccourcis clavier / manette -> demo_boucles.",
        "description": "# DESCRIPTION\n# Affichée au survol de la carte scénario (web/desktop) et dans le\n# header de l'export standalone. Libre, crédits, lien auteur, etc.",
        "markdown": "# MARKDOWN\n# Contrôle le rendu global du texte des salles.\n# story = rendu narratif enrichi (valeur par défaut si la clé est absente)\n# none  = texte brut (formatage inline **gras** *italique* etc. toujours actif)\n# fix   = tout le texte dans un bloc monospace\n# bold/italic/quote/py/yaml/… = enveloppe le texte dans le style correspondant\n# Ce showcase utilise \"none\" pour que le formatage inline soit visible.\n# La salle \"demo_markdown\" montre tous les styles via des blocs ```lang``` inline.",
        "tags": "# TAGS\n# Un tag est un groupe d'éléments réutilisables (événements, choix,\n# objets, init, actions) que l'on peut injecter dans une salle via\n# tag-avant: ou tag-après:\n#\n# tag-avant: [nom]  -> les éléments du tag sont fusionnés avant ceux de la salle\n# tag-après: [nom]  -> les éléments du tag sont fusionnés après ceux de la salle\n#\n# Le moteur voit une salle normale : les tags sont résolus au chargement.\n# Plusieurs tags possibles : tag-avant: [tag_a, tag_b]\n# Un tag peut être utilisé dans autant de salles que souhaité.\n#\n# Attention : init: dans un tag = réinitialisé à chaque entrée dans chaque salle qui l'applique.\n#    C'est le comportement normal d'un init: de salle, prévu pour les variables\n#    de \"session locale\" (ex: coffre_ouvert remis à 0 à chaque nouvelle salle).\n#    Si vous voulez une variable persistante entre salles, utilisez vars: au niveau racine.",
        "auto_refresh_text": "# Style texte global (optionnel)\n# Ces valeurs servent de défaut à tous les textes web/desktop.\n# Une salle, un événement, un HUD ou un bloc texte peut les remplacer localement.\n# Exemple :\n#   taille: 18\n#   police: Georgia\n#   fond: \"#111827\"\n#   couleur-texte: \"#f5f0d8\"\n# Options globales\n# Boutons permanents affichés en haut du jeu.\n#   rafraichir  -> réaffiche la salle courante\n#   inventaire  -> affiche l'inventaire\n#   precedent   -> retour à la salle précédente\n#                 (n'apparaît que si la salle a vers: precedent dans ses choix)\n#   v_nom_v     -> affiche la valeur d'une variable avec son emoji\n#   id_salle    -> accès direct à une salle (n'apparaît pas si on y est déjà)\n#   une URL     -> ouvre un lien externe dans un nouvel onglet (web et desktop).\n#                 C'est la valeur qui décide : si elle commence par http:// ou\n#                 https://, le bouton devient un lien. Le nom de la clé (url1,\n#                 wiki, peu importe) ne sert qu'à distinguer les entrées.\n#                 Le | sépare l'adresse du texte affiché sur le bouton.\n#                 Sur Discord et en terminal, le lien s'affiche en texte.\n# auto_refresh_text: le texte de la salle est re-rendu à chaque tick de timer.\n# Attention : Réglé ici sur false (le défaut) : en le mettant à true globalement, toutes les\n# salles seraient re-rendues chaque seconde dès qu'un timer tourne quelque part,\n# y compris celles qui n'affichent aucune variable. On l'active donc salle par\n# salle avec `auto_refresh: true` (voir demo_auto_refresh), ce qui est le bon\n# réflexe : n'actualiser que ce qui a besoin de l'être.",
        "vars": "# DÉCOUPAGE DU SHOWCASE - FICHIER 2/4 : ÉLÉMENTS GLOBAUX\n# Ce fragment commence avec les variables et rassemble tout ce qui vaut pour\n# l'ensemble du scénario : textes, succès, modèles, tags, alias, actions,\n# événements, timers et déclencheurs globaux. Il complète le fichier principal :\n# ouvert seul, ce n'est volontairement pas un YAML complet.\n#\n# Variables numériques globales\n# Initialisées au lancement de la partie.\n# Deux formes : courte (valeur seule) ou longue (avec description).\n#\n# Le suffixe du nom décide de la durée de vie de la variable :\n#   nom      -> variable de partie : repart à sa valeur initiale à chaque\n#              nouvelle partie. C'est le cas par défaut.\n#   nom_p    -> persistante locale : conservée sur l'appareil du joueur même\n#              après une fin, un abandon ou une nouvelle partie. Idéale pour\n#              les compteurs de visites, les records et les fins découvertes.\n#   nom_o    -> online : partagée entre toutes les parties et tous les joueurs.\n#\n# Les trois se déclarent ici, dans vars: (et dans vars_texte: pour du texte).\n# Les _p sont rattachées à l'id: stable du scénario, pas au nom du fichier.\n# Les _o restent rattachées à la source chargée (chemin ou URL) : deux\n# traductions publiées à des adresses différentes ont donc leurs propres\n# valeurs online, même si elles partagent le même id:.\n#\n# Attention : Éviter v_, _v, t_, _t, o_ dans le nom (délimiteurs du système).\n#    _p et _o ne sont autorisés qu'en suffixe.",
        "vars_texte": "# Variables textuelles globales\n# Stockent du texte (nom du joueur, état narratif, etc.)\n# Référencées dans les textes avec t_nom_t",
        "listes": "# Montre :\n#   - listes : valeurs ordonnées, premier indice à 0.\n#   - collections : propriétés nommées, sans lien avec les objets du jeu.",
        "succes": "# Succès du scénario\n# Chaque entrée est un identifiant, suivi de ses informations.\n#   titre, description, points -> obligatoires\n#   icone                      -> facultatif (🏆 par défaut)\n#   secret: true               -> titre, description, points et icône sont\n#                                masqués tant que le succès n'est pas obtenu\n#\n# Pour débloquer un succès, utiliser l'action succes:identifiant\n#   dans un événement ou une action  ->  faire: \"succes:bienvenue\"\n#   sur un bouton de choix           ->  effet: \"succes:bienvenue\"\n# Un succès déjà obtenu ne se redéclenche pas : on peut donc tenter le\n# déblocage sans condition, à chaque passage, sans rien vérifier.\n#\n# Attention : L'identifiant doit rester stable après publication : c'est lui qui est\n#    enregistré chez le joueur. Le titre, lui, peut être réécrit librement.\n# Les succès sont conservés en dehors des sauvegardes de partie : ils\n# survivent aux fins, aux abandons et aux nouvelles parties.",
        "alias_globaux": "# Alias globaux\n# Déclarés une fois ici : réutilisables dans toutes les salles via commande: nom.\n# Le label s'affiche automatiquement en bouton sans avoir à répéter bouton: partout.\n#\n# Attention : un choix local qui reprend le nom d'un alias global le remplace\n#    dans sa salle. C'est pratique pour spécialiser un retour, mais c'est la\n#    porte à côté si ce n'était pas voulu : le bouton affiche alors le label\n#    de l'alias global et non celui du choix. D'où les noms distincts utilisés\n#    dans ce fichier (retour_menu, retour_succes) partout où le retour ne va\n#    pas à l'accueil.",
        "actions_globales": "# Actions globales\n# Disponibles dans toutes les salles, pas seulement dans une salle.\n# Idéales pour les commandes universelles (aller, examiner, aide...).",
        "evenements_globaux": "# Événements globaux\n# S'exécutent dans toutes les salles (après les événements de salle par défaut).\n# État OFF par défaut : activables via event_global:id:ON dans n'importe quelle salle.\n# Option ordre_evenements_globaux: avant -> les exécute avant ceux de la salle.\n# ordre_evenements_globaux: apres   # \"avant\" ou \"apres\" (défaut : apres)",
        "timers_globaux": "# Timers globaux\n# Continuent même après un changement de salle.\n# Activés via timer_global:id:ON, désactivés via timer_global:id:OFF.\n# À expiration (deadline atteinte), déclenche verifier_cases_speciales\n# (événements de salle + globaux) dans la salle courante du joueur.",
        "declencheurs_globaux": "# Timer global autonome avec texte: / faire: / vers:\n#\n# À l'expiration, le timer exécute lui-même ses\n# actions : sans nécessiter un événement global intermédiaire.\n#\n#   texte: -> affiché dans la salle courante du joueur à l'expiration\n#   faire: -> actions exécutées (variables, event_global, timer_global…)\n#   vers:  -> redirige vers une salle après les actions (optionnel)\n#\n# Exemple commenté (non activé) :\n#\n# - id: compte_rebours_fatal\n#   duree: 60\n#   etat: OFF\n#   texte: \"⏰ Temps écoulé ! La porte se referme...\"\n#   faire:\n#     - \"score.-.20\"\n#     - \"timer_global:compte_rebours_fatal:OFF\"\n#   vers: fin_defaite\n#\n# Ce timer n'a pas besoin d'un événement global \"si v_compte_rebours_fatal_v = 0\"\n# pour vérifier l'expiration : il s'exécute directement.\n# Les deux approches coexistent : \"comptebombe\" ci-dessus passe, lui, par\n# l'événement global alarme_bombe.\n# Déclencheurs globaux\n#\n# Contrairement aux déclencheurs de salle, les déclencheurs globaux sont actifs\n# dans toutes les salles du scénario, en permanence.\n#\n# Syntaxe identique aux déclencheurs de salle : la seule différence est\n# l'emplacement dans le fichier (clé racine declencheurs_globaux:).\n#",
        "salles": "# SALLES\n# DÉCOUPAGE DU SHOWCASE - FICHIER 3/4 : SALLES\n# La clé salles: ouvre ici la liste principale. Ce fragment contient les menus\n# et les démonstrations ordinaires. La même liste continuera dans le fichier 4,\n# sans répéter salles: : le moteur assemble d'abord les fragments, puis lit le\n# YAML reconstitué comme un seul scénario."
      },
      "string_styles": {
        "titre": "\"",
        "description": "|"
      },
      "seq_comments": {
        "actions_globales": {
          "0": "# Navigation libre : aller [destination] (Discord : /action aller [destination])\n# t_action_cible_ok_t = dernière cible valide tapée (= nom de salle reconnu)\n# t_action_cible_t    = dernière cible tapée (valide ou non)",
          "1": "# Score : afficher le score depuis n'importe où"
        },
        "evenements_globaux": {
          "0": "# Bonus visite : +1 score à chaque salle visitée\n# Activé/désactivé depuis demo_events_globaux via event_global:bonus_visite:ON/OFF\n#\n# Les événements globaux supportent les mêmes clés que les événements de salle :\n#   - bouton: \"label\"   -> affiche un bouton cliquable dans toutes les salles\n#   - visible-si:       -> masque ce bouton selon condition\n#   - grise-si:         -> grise ce bouton selon condition\n#   - max: N            -> limite le nombre de déclenchements (fixe ou v_var_v)\n#   - texte: liste      -> texte conditionnel (si:/texte: par item, ex: _max_atteint_)\n#   - timer: / duree:   -> déclenché par expiration de timer plutôt que par salle",
          "1": "# Exemple avec condition : ne s'applique que si PV < 5.\n# Jamais activé dans ce showcase : il sert de modèle de syntaxe\n# (l'activer avec \"event_global:soin_urgence:ON\").",
          "2": "# Alarme liée au timer global \"comptebombe\"\n# Activé automatiquement depuis demo_timer_global : se déclenche quand comptebombe atteint 0\n# vers: redirige le joueur peu importe où il se trouve"
        },
        "timers_globaux": {
          "0": "# Timer \"comptebombe\" : utilisé dans demo_timer_global\n# Activé via timer_global:comptebombe:ON depuis demo_timer_global",
          "1": "# Timer \"encadre_chrono\" : utilisé par la démo HUD persistante.\n# Global pour rester lisible dans les sous-salles HUD (multi-HUD, split...)."
        },
        "declencheurs_globaux": {
          "0": "\n# Séquence globale : taper a->b->c->d->e déclenche un easter egg\n# Actif dans toutes les salles. Les touches doivent être pressées dans l'ordre\n# sans interruption (toute autre touche remet la séquence à zéro)."
        },
        "salles": {
          "0": "\n# accueil : ACCUEIL & NAVIGATION\n#\n# Montre :\n#   - choix avec bouton (commande + bouton + vers)\n#   - bouton sur la salle elle-même (bouton:)\n#   - variables dans le texte (v_nom_v et t_nom_t)\n#   - option \"accueil\" dans les options globales (id de cette salle)\n#   - événements d'entrée qui comptent les lancements et débloquent des succès\n#\n# Voir aussi :\n#   - bouton: peut contenir des variables (ex: \"Score : v_score_v\"), évalué à l'affichage\n#   - un choix sans bouton: reprend le label d'un alias global du même nom\n#     (tous les \"retour\" de ce fichier : voir alias_globaux en bas)",
          "13": "# demo_events : ÉVÉNEMENTS AUTOMATIQUES & ALÉATOIRE\n#\n# Montre :\n#   - init: avec %=X:Y (aléatoire à l'entrée)\n#   - init: avec variables comme bornes (%=v_a_v:v_b_v)\n#   - événements conditionnels en série (chaque face du dé -> texte différent)\n#   - table de loot pondérée (redirection, dans demo_loot)\n#\n# Valeur pondérée (var.+.%val:poids,…) : voir le tag coffre_commun.\n# Comportement séquentiel (chaque événement voit les valeurs laissées par\n# les précédents) : voir le record online de demo_variables.\n#\n# Voir aussi (événements avec bouton:) :\n#   - bouton: \"label\"    -> transforme l'événement en bouton cliquable\n#   - max: N             -> limite les déclenchements (entier fixe ou v_var_v dynamique)\n#   - texte: liste       -> texte conditionnel (si:/texte: par item, accumulation)\n#   - _max_atteint_      -> condition vraie au clic après épuisement du compteur\n#   - visible-si: / grise-si: -> masquer ou griser le bouton selon condition\n#   (visible-si: / grise-si: s'appliquent aussi aux choix: et aux actions:)\n#   - declencher_event:t_evenement_choisi_t : id lu dans une variable textuelle.\n#   - manuel: true : événement appelé explicitement, sans bouton et sans déclenchement à l'entrée.",
          "15": "# Valeur pondérée : même syntaxe appliquée à une variable\n#   faire: \"degats.=.%1:70,2:20,3:10\"\n#   -> degats vaut 1 (70 %), 2 (20 %) ou 3 (10 %)\n# Exemple réel dans ce fichier : le tag coffre_commun.\n# Salles de résultat de loot",
          "32": "# demo_timer_tick : ACTION par TICK\n#\n# tick: exécute une liste de blocs {si?, faire:} à chaque seconde\n# pendant qu'un timer local (ou global) est actif.\n#\n# Syntaxe sur un événement timer local :\n#\n#   - si: ~\n#     timer: mon_timer\n#     duree: \"10\"\n#     vers: salle_expiration\n#     tick:\n#       - si: ~              # pas de condition -> toujours exécuté\n#         faire: \"var.+.1\"\n#       - si: \"v_var_v > 5\"  # exécuté seulement quand var > 5\n#         faire: \"autre.+.1\"\n#\n# Sur un timer global (section timers_globaux:), même syntaxe :\n#   - id: mon_timer_global\n#     duree: 30\n#     tick:\n#       - si: ~\n#         faire: \"var.+.1\"\n#\n# Notes :\n#   - tick: est indépendant de vers: et faire: (qui s'exécutent à l'expiration)\n#   - si le joueur quitte la salle, le timer local et son tick s'annulent\n#   - garde anti-récursion : declencher_event: dans un tick est limité à 10 niveaux",
          "36": "# Sous-salle : plusieurs encadrés simultanés",
          "37": "# Sous-salle : texte conditionnel dans un encadré",
          "38": "# Sous-salle : encadré split (deux zones)\n#   - [[split:40]] réserve 40 % à la zone précédente, le reste à la suivante.\n#   - alignement-vertical: centre place le contenu dans la hauteur du cadre.",
          "39": "# demo_options : OPTIONS & LIENS EXTERNES\n#\n# Montre :\n#   - options: dans les globaux : boutons dans la toolbar\n#   - lien externe : url1: https://...|label\n#   - plusieurs liens : la clé (url1, url2, wiki…) est libre\n#   - fallback examiner : option vers un objet/meuble déclenche examiner\n#   - options description: (clé globale, affichée au survol de la carte)",
          "47": "# Montre :\n#   - repeter : un nombre de passages, indice à partir de 0.\n#   - pour_chaque : un alias et un indice locaux au corps.\n#   - stop / continue : quitter la boucle courante / sauter la suite du passage.\n#   - texte : mêmes boucles en lecture seule, sans effets sur les données.\n#   - raccourci : touches et manette sur une action locale.\n# Attention : 8 niveaux, 1000 passages et 20000 opérations par commande.\n#   - Les automatismes partagent le budget et attendent la fin de la boucle extérieure.\n#   - Texte / HUD : budget distinct renouvelé au rendu.\n#   - Une erreur conserve les effets précédents ; une redirection ou une fin arrête la boucle.\n#   - Les alias et indices disparaissent après la boucle ; un alias peut modifier son élément.",
          "48": "# demo_auto_refresh : TEXTE PRINCIPAL ACTUALISABLE\n#\n# PRINCIPE\n# Par défaut, le texte d'une salle est affiché une seule fois à\n# l'entrée. Avec auto_refresh_text, il est RE-RENDU à chaque tick\n# de timer : les variables sont réévaluées, les conditions inline\n# recalculées : sans que le joueur quitte la salle.\n#\n# ACTIVATION\n# Global (tout le scénario) :\n#   auto_refresh_text: true    -> en tête de fichier YAML\n#\n# Override par salle :\n#   auto_refresh: false        -> désactive pour cette salle\n#                                (même si le global est true)\n#   auto_refresh: true         -> active pour cette salle seulement\n#                                (même si le global est false)\n#   (absent)                   -> hérite du global\n#\n# DÉCLENCHEUR\n# Le texte est re-rendu à chaque tick de timer (local ou global), mais\n# aussi après chaque action du joueur qui le laisse dans la salle : clic\n# sur un bouton d'événement, prendre, examiner, action personnalisée…\n# Sans timer ni action, rien ne se rafraîchit : la fonction ne coûte rien.\n# Exemple d'usage sans timer : demo_variables, dont le texte suit le\n# compteur de sceaux après chaque clic.\n#\n# Ce qui est rafraîchi\n# Uniquement le texte d'entrée de la salle (clé texte:).\n# L'historique des événements déclenchés (boutons cliqués, messages\n# d'action) est conservé intact : seule la zone de texte principal\n# est remplacée.\n# Les compteurs once: ne sont pas incrémentés par le rafraîchissement.\n#\n# Contenu compatible\n# ✅ Variables numériques et textuelles : v_var_v, t_var_t\n# ✅ Conditions inline (texte-si:)\n# ✅ Gras, italique, markdown\n# ✅ Images [[url]], sons <<url>>, vidéos ((url))\n# ✅ Tooltips {{label:?contenu}}, éléments glissables {{label:>id}}\n# ✅ Tilemaps [[grid:NxM]]...[[/grid]]\n# ✅ Image maps (zones cliquables)\n#\n# Exemple minimal\n# auto_refresh_text: true\n# vars:\n#   secondes: 0\n# salles:\n#   - id: chrono\n#     evenements:\n#       - si: ~\n#         timer: tick\n#         duree: 999\n#         tick:\n#           - faire: \"secondes.+.1\"\n#     texte: \"Temps : v_secondes_v s\"\n#     choix:\n#       - bouton: Arrêter\n#         vers: fin"
        }
      },
      "nested_seq_comments": {
        "tags.coffre_commun.evenements": {
          "0": "# Un bouton d'événement reste dans la salle courante : le même tag\n# fonctionne donc tel quel dans demo_tags et dans demo_tags2. Un choix:\n# avec vers: aurait au contraire ramené le joueur vers une salle fixe.\n# visible-si: le bouton disparaît une fois le coffre ouvert.\n#\n# score.+.%5:50,10:30,25:20 est une valeur PONDÉRÉE : +5 (50 %),\n# +10 (30 %) ou +25 (20 %). Les poids sont relatifs."
        },
        "modeles.mini_combat.salles": {
          "2": "# Salle interne de récompense, puis sortie générique \"victoire\" :\n# c'est l'instance qui décide où elle mène (ici fin_modele, le combat\n# suivant ou la suite de la salle appelante)."
        },
        "modeles.mini_combat.salles[0].evenements": {
          "0": "# Si l'ennemi est vaincu -> salle interne \"recompense\""
        },
        "modeles.mini_combat.salles[0].choix": {
          "0": "# L'action de soustraction est dans la salle \"frappe\" (événement),\n# pas dans effet: évite que alias_reaction_meta[\"frapper\"] soit écrasé\n# si le même modèle est instancié plusieurs fois dans la même salle."
        }
      }
    },
    "vars": {
      "score": {
        "comment_before": "# Forme courte"
      },
      "col": {
        "comment_before": "# Variables pour la démonstration tilemap (demo_tilemap)\n# Indexent la tuile sélectionnée dans le HUD dynamique (col 0-7, row 0-15)"
      },
      "tooltip_compteur": {
        "comment_before": "# Compteur pour la démonstration tooltips interactifs (demo_tooltips)"
      },
      "clic_cle": {
        "comment_before": "# Variables pour la démonstration éléments cliquables (demo_clickable)"
      },
      "dd_cle": {
        "comment_before": "# Variables pour la démonstration drag&drop (demo_dragdrop)"
      },
      "visites_p": {
        "comment_before": "# (dd_marteau, dd_pierre, dd_chiffon, dd_lame, dd_bouclier, dd_fiole,\n#  dd_chaudron, dd_epee, dd_enclume, dd_img, dd_dalle = ids drag, pas de variables)\n# Variables persistantes locales (_p) : voir demo_variables\n# Elles ne font pas partie de la sauvegarde de partie et survivent donc\n# à une fin, un abandon ou un nouveau lancement.\n# Le bouton \"Réinitialiser\" du jeu les efface avec les succès du scénario."
      },
      "lancement_compte": {
        "comment_before": "# Marqueur de partie (sans suffixe) : remis à 0 à chaque nouvelle partie.\n# Il évite de recompter un lancement quand le joueur repasse par l'accueil.\n# À la reprise d'une sauvegarde il vaut encore 1, donc la même partie n'est\n# jamais comptée deux fois."
      },
      "vu_collection": {
        "comment_before": "# Marqueurs de visite pour le succès \"visite guidée\" de demo_succes"
      },
      "pv": {
        "comment_before": "# Forme longue (avec description : visible dans l'inventaire via v_score_v§⭐)",
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "description": "\""
        }
      },
      "pvmax": {
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "description": "\""
        }
      },
      "force": {
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "description": "\""
        }
      },
      "chance": {
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "description": "\""
        }
      },
      "desresultat": {
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "description": "\""
        }
      },
      "secondes_refresh": {
        "comment_before": "# Chrono de la démo texte dynamique (demo_auto_refresh)"
      },
      "compteur": {
        "comment_before": "# Variable utilisée dans les conditions avancées",
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "description": "\""
        }
      },
      "bombe_en_cours": {
        "comment_before": "# Flag pour le timer global comptebombe (0 = inactif, 1 = en cours)"
      },
      "ticks_ecoules": {
        "comment_before": "# Compteur pour la démo tick: (demo_timer_tick)"
      },
      "gobelin_pts": {
        "comment_before": "# PV des ennemis pour la démo modèles (demo_modeles)"
      },
      "or": {
        "comment_before": "# Variables pour la démo encadrés HUD (demo_hud)",
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "description": "\""
        }
      },
      "recordscore_o": {
        "comment_before": "# Variables online (_o) : partagées par tous les joueurs\n# Elles se déclarent ici, dans vars:, au même titre que les autres.\n# (nb_parties_o, affichée dans le titre, est fournie par le moteur : elle\n#  n'a pas besoin d'être déclarée.)",
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "description": "\""
        }
      }
    },
    "vars_texte": {
      "nomjoueur": {
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "valeur": "\"",
          "description": "\""
        }
      },
      "combinaison": {
        "comment_before": "# Variable de combinaison pour le craft (demo_actions)",
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "valeur": "\"",
          "description": "\""
        }
      },
      "dernier_sceau_p": {
        "comment_before": "# Variable TEXTE persistante (_p) : même principe que pour les nombres,\n# le suffixe suffit, la déclaration reste dans vars_texte:.",
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "valeur": "\"",
          "description": "\""
        }
      },
      "gobelin_nom": {
        "comment_before": "# Noms des ennemis pour la démo modèles (demo_modeles)",
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "valeur": "\"",
          "description": "\""
        }
      },
      "troll_nom": {
        "key_order": [
          "valeur",
          "description"
        ],
        "string_styles": {
          "valeur": "\"",
          "description": "\""
        }
      }
    },
    "tags": {
      "coffre_commun": {
        "comment_before": "\n# Tag \"coffre_commun\"\n# Simule un coffre avec récompense aléatoire, présent dans plusieurs salles.\n# Sans tags : recopier ce bouton et son init dans chaque salle.\n# Avec tags : déclarer une fois, appliquer partout.\n#\n# Un tag peut contenir : init:, evenements:, choix:, objets:, actions:\n# Les mêmes clés que dans une salle, toutes optionnelles.\n# Exemple avec objets: et actions: :\n#   mon_tag:\n#     objets:\n#       - nom: torche\n#         endroit: \"mur\"\n#         description: \"Une torche allumée.\"\n#         msg_ramassage: \"Vous prenez la torche.\"\n#     actions:\n#       - verbe: allumer\n#         cible: torche\n#         si: ~\n#         texte_ok: \"La torche s'embrase !\"",
        "key_order": [
          "init",
          "evenements"
        ],
        "seq_comments": {
          "evenements": {
            "0": "# Un bouton d'événement reste dans la salle courante : le même tag\n# fonctionne donc tel quel dans demo_tags et dans demo_tags2. Un choix:\n# avec vers: aurait au contraire ramené le joueur vers une salle fixe.\n# visible-si: le bouton disparaît une fois le coffre ouvert.\n#\n# score.+.%5:50,10:30,25:20 est une valeur PONDÉRÉE : +5 (50 %),\n# +10 (30 %) ou +25 (20 %). Les poids sont relatifs."
          }
        }
      },
      "panneau_retour": {
        "comment_before": "# Tag \"panneau_retour\"\n# Boutons de sortie communs aux deux salles de la démo : injectés en\n# tag-après pour qu'ils apparaissent toujours en dernier dans les choix.\n# Un tag ne connaît pas la salle qui l'utilise : il ne doit donc contenir\n# que des destinations valables partout où il est appliqué.",
        "key_order": [
          "choix"
        ]
      }
    },
    "modeles": {
      "mini_combat": {
        "comment_before": "\n# Les salles d'un modèle supportent tag-avant: et tag-après: comme n'importe quelle salle.\n# Exemple :\n#   salles:\n#     - id: attaque\n#       tag-avant: [bouton_retour]   -> injecte le tag dans cette salle du modèle\n# Modèle \"mini_combat\"\n# Simulation d'un combat en 2 salles (attaque + résultat).\n#\n# variables: déclare les noms génériques que chaque instance doit mapper\n#   vers de vraies variables du scénario.\n#   Valeur = valeur par défaut si non mappée par l'instance.\n#\n# sorties: déclare les noms de sorties génériques que chaque instance\n#   doit mapper vers de vraies salles.\n#   Valeur = description de la sortie (informatif, ≠ salle réelle).\n#\n# Attention : Donner aux salles internes des noms différents de ceux des sorties.\n#    Si une salle interne s'appelle comme une sortie, vers: ne sait plus\n#    laquelle des deux est visée. Ici la salle interne \"recompense\" donne\n#    les points, puis emprunte la sortie \"victoire\".",
        "key_order": [
          "variables_generiques",
          "sorties",
          "salles"
        ],
        "seq_comments": {
          "salles": {
            "2": "# Salle interne de récompense, puis sortie générique \"victoire\" :\n# c'est l'instance qui décide où elle mène (ici fin_modele, le combat\n# suivant ou la suite de la salle appelante)."
          }
        }
      }
    },
    "global_events": {
      "bonus_visite": {
        "key_order": [
          "id",
          "etat",
          "si",
          "faire",
          "texte"
        ],
        "comments_inline": {
          "etat": "# OFF par défaut : activé via event_global:bonus_visite:ON"
        },
        "string_styles": {
          "etat": "'",
          "faire": "\"",
          "texte": "\""
        },
        "comment_list_before": "# Bonus visite : +1 score à chaque salle visitée\n# Activé/désactivé depuis demo_events_globaux via event_global:bonus_visite:ON/OFF\n#\n# Les événements globaux supportent les mêmes clés que les événements de salle :\n#   - bouton: \"label\"   -> affiche un bouton cliquable dans toutes les salles\n#   - visible-si:       -> masque ce bouton selon condition\n#   - grise-si:         -> grise ce bouton selon condition\n#   - max: N            -> limite le nombre de déclenchements (fixe ou v_var_v)\n#   - texte: liste      -> texte conditionnel (si:/texte: par item, ex: _max_atteint_)\n#   - timer: / duree:   -> déclenché par expiration de timer plutôt que par salle"
      },
      "soin_urgence": {
        "key_order": [
          "id",
          "etat",
          "si",
          "faire",
          "texte"
        ],
        "string_styles": {
          "etat": "'",
          "si": "\"",
          "faire": "\"",
          "texte": "\""
        },
        "comment_list_before": "# Exemple avec condition : ne s'applique que si PV < 5.\n# Jamais activé dans ce showcase : il sert de modèle de syntaxe\n# (l'activer avec \"event_global:soin_urgence:ON\")."
      },
      "alarme_bombe": {
        "key_order": [
          "id",
          "etat",
          "si",
          "faire",
          "vers",
          "texte"
        ],
        "string_styles": {
          "etat": "'",
          "si": "\"",
          "texte": "\""
        },
        "comment_list_before": "# Alarme liée au timer global \"comptebombe\"\n# Activé automatiquement depuis demo_timer_global : se déclenche quand comptebombe atteint 0\n# vers: redirige le joueur peu importe où il se trouve"
      }
    },
    "global_timers": {
      "_gtmr_0": {
        "key_order": [
          "id",
          "duree",
          "etat"
        ],
        "comments_inline": {
          "duree": "# durée en secondes"
        },
        "string_styles": {
          "etat": "'"
        },
        "comment_list_before": "# Timer \"comptebombe\" : utilisé dans demo_timer_global\n# Activé via timer_global:comptebombe:ON depuis demo_timer_global"
      },
      "_gtmr_1": {
        "key_order": [
          "id",
          "duree",
          "etat"
        ],
        "string_styles": {
          "etat": "'"
        },
        "comment_list_before": "# Timer \"encadre_chrono\" : utilisé par la démo HUD persistante.\n# Global pour rester lisible dans les sous-salles HUD (multi-HUD, split...)."
      }
    },
    "rooms": {
      "accueil": {
        "key_order": [
          "id",
          "bouton",
          "supprimer-encadre",
          "evenements",
          "texte",
          "choix"
        ],
        "comments_before": {
          "bouton": "# bouton: définit le label du bouton associé à cette salle.\n# Attention : Il s'affiche dans chaque salle dont un choix mène ici, en plus du\n#    bouton propre à ce choix s'il en a un. Deux labels différents vers la\n#    même salle donnent donc deux boutons. Ici aucun doublon : les retours\n#    passent par l'alias global \"retour\", qui porte le même label.\n#    Réserver bouton: aux salles qu'on n'atteint que par des choix sans\n#    bouton propre, ou lui donner exactement le même label.",
          "evenements": "# Les variables _p et _o sont déjà chargées quand ces événements passent."
        },
        "string_styles": {
          "bouton": "\"",
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Un seul comptage par partie : le marqueur lancement_compte est une\n# variable de partie normale, donc les retours à l'accueil ne comptent pas.\n# (Le nombre de parties est déjà suivi tout seul par nb_parties_o, il n'y\n#  a donc rien à incrémenter ici pour cela.)",
            "1": "# Tentative systématique : sans effet si le succès est déjà obtenu.",
            "2": "# v_visites_p_v survit aux parties : à partir du 2e lancement, le joueur\n# décroche ce succès secret sans avoir rien eu à faire de particulier.",
            "3": "# Les deux fins ont été vues, éventuellement au cours de parties\n# différentes : c'est tout l'intérêt des variables persistantes."
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "si": "\""
            },
            "comment_list_before": "# Un seul comptage par partie : le marqueur lancement_compte est une\n# variable de partie normale, donc les retours à l'accueil ne comptent pas.\n# (Le nombre de parties est déjà suivi tout seul par nb_parties_o, il n'y\n#  a donc rien à incrémenter ici pour cela.)"
          },
          "_ev_1": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "faire": "\""
            },
            "comment_list_before": "# Tentative systématique : sans effet si le succès est déjà obtenu."
          },
          "_ev_2": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\""
            },
            "comment_list_before": "# v_visites_p_v survit aux parties : à partir du 2e lancement, le joueur\n# décroche ce succès secret sans avoir rien eu à faire de particulier."
          },
          "_ev_3": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\""
            },
            "comment_list_before": "# Les deux fins ont été vues, éventuellement au cours de parties\n# différentes : c'est tout l'intérêt des variables persistantes."
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_4": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_5": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_6": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_7": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_8": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_9": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          }
        },
        "comment_list_before": "\n# accueil : ACCUEIL & NAVIGATION\n#\n# Montre :\n#   - choix avec bouton (commande + bouton + vers)\n#   - bouton sur la salle elle-même (bouton:)\n#   - variables dans le texte (v_nom_v et t_nom_t)\n#   - option \"accueil\" dans les options globales (id de cette salle)\n#   - événements d'entrée qui comptent les lancements et débloquent des succès\n#\n# Voir aussi :\n#   - bouton: peut contenir des variables (ex: \"Score : v_score_v\"), évalué à l'affichage\n#   - un choix sans bouton: reprend le label d'un alias global du même nom\n#     (tous les \"retour\" de ce fichier : voir alias_globaux en bas)"
      },
      "aide": {
        "key_order": [
          "id",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "choix": {
            "0": "# vers: precedent -> retour à la salle d'où on vient\n# Active aussi l'affichage du bouton permanent \"precedent\" dans options:"
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            },
            "comment_list_before": "# vers: precedent -> retour à la salle d'où on vient\n# Active aussi l'affichage du bouton permanent \"precedent\" dans options:"
          }
        }
      },
      "menu_texte": {
        "key_order": [
          "id",
          "supprimer-encadre",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "menu_variables": {
        "key_order": [
          "id",
          "supprimer-encadre",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "menu_objets": {
        "key_order": [
          "id",
          "supprimer-encadre",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "menu_events": {
        "key_order": [
          "id",
          "supprimer-encadre",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_4": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "menu_gameplay": {
        "key_order": [
          "id",
          "supprimer-encadre",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_4": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_5": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "menu_media": {
        "key_order": [
          "id",
          "supprimer-encadre",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "menu_progression": {
        "key_order": [
          "id",
          "supprimer-encadre",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_markdown": {
        "key_order": [
          "id",
          "bouton",
          "fond",
          "texte",
          "evenements",
          "choix"
        ],
        "comments_inline": {
          "fond": "# couleur de fond web/desktop (optionnel) : ex: \"#0d1117\", \"#1a1a2e\""
        },
        "string_styles": {
          "bouton": "\"",
          "fond": "\""
        },
        "seq_comments": {
          "texte": {
            "0": "# taille: et police: s'ajoutent aux blocs texte normaux (pas de type séparé).",
            "5": "# taille: et police: se combinent aussi avec si: sur le même bloc"
          },
          "evenements": {
            "0": "# Blocs sémantiques\n# ```narration ...``` ```dialogue ...``` etc. reçoivent chacun un rendu\n# visuel distinct, quel que soit le markdown: global (ce showcase est en\n# none et les blocs s'affichent quand même). story habille en plus tout\n# le texte des salles d'un cadre narratif.\n# L'apparence (classique, rpg, terminal, aventure) est un choix du joueur, pas une clé YAML auteur."
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "bouton",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "texte": "|"
            },
            "comment_list_before": "# Blocs sémantiques\n# ```narration ...``` ```dialogue ...``` etc. reçoivent chacun un rendu\n# visuel distinct, quel que soit le markdown: global (ce showcase est en\n# none et les blocs s'affichent quand même). story habille en plus tout\n# le texte des salles d'un cadre narratif.\n# L'apparence (classique, rpg, terminal, aventure) est un choix du joueur, pas une clé YAML auteur."
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_variables": {
        "key_order": [
          "id",
          "auto_refresh",
          "texte",
          "init",
          "evenements",
          "actions",
          "choix"
        ],
        "comments_before": {
          "auto_refresh": "# auto_refresh actualise les valeurs et la liste après chaque action."
        },
        "seq_comments": {
          "init": {
            "0": "# Incrémenter le compteur à chaque visite"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ]
          },
          "_ev_1": {
            "key_order": [
              "si",
              "bouton",
              "faire",
              "texte"
            ]
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "actions": {
          "_act_0": {
            "key_order": [
              "verbe",
              "cible",
              "si",
              "faire",
              "texte_ok"
            ],
            "string_styles": {
              "texte_ok": "'"
            }
          },
          "_act_1": {
            "key_order": [
              "verbe",
              "cible",
              "si",
              "faire",
              "texte_ok"
            ]
          },
          "_act_2": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire"
            ]
          },
          "_act_3": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire"
            ]
          },
          "_act_4": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire",
              "texte_ok"
            ]
          },
          "_act_5": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire"
            ]
          }
        },
        "init": {
          "_init_0": {
            "key_order": [
              "var",
              "valeur"
            ],
            "string_styles": {
              "valeur": "\""
            },
            "comment_list_before": "# Incrémenter le compteur à chaque visite"
          }
        }
      },
      "demo_objets": {
        "key_order": [
          "id",
          "actions",
          "texte",
          "objets",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "objets": "# objets: sont déclarés ici et s'appliquent à l'entrée dans la salle.\n# Format : nom, endroit, description, msg_ramassage (+ réactions optionnelles)",
          "evenements": "# prendre/examiner/jeter restent des commandes de base du bot.\n# Elles fonctionnent automatiquement grâce aux objets: déclarés ci-dessus,\n# sans qu'on ait besoin de les redéfinir comme actions personnalisées.\n# -> /prendre grimoire / /examiner grimoire / /jeter grimoire (Discord)\n# -> prendre grimoire / examiner grimoire / jeter grimoire (terminal/web/desktop)\n# Les descriptions d'examen viennent de desc_meuble: et description: des objets."
        },
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "actions": {
            "2": "# vers: coffre transfère une pièce portée ; activer: ne retire rien de l'inventaire.\n# dans: compte seulement les exemplaires présents ; salle: précise une autre salle."
          },
          "objets": {
            "0": "# Objet sur un meuble visible : le joueur voit \"une table\" dans la salle",
            "1": "# meuble-vide: true : le joueur ne peut ni prendre ni examiner cet objet.\n# Déclaré après le grimoire sur la même table, il garde la description\n# de la table une fois le grimoire pris. Sans lui, examiner la table\n# répondrait qu'il n'y a plus rien d'intéressant.",
            "2": "# Objet sur le sol : un nom accentué fonctionne (prendre clé, si: \"clé\").",
            "3": "# endroit: invisible -> ce n'est pas un objet caché à ramasser : il est\n# remis automatiquement et sans message à l'entrée de la salle, dans un\n# inventaire que le joueur ne voit pas. \"prendre\" le refuse.\n# Il sert de drapeau pour les conditions : ici, se souvenir que le\n# joueur est passé par cette salle (testé dans demo_conditions).",
            "4": "# Objets multiples sur le même meuble\n# Déclarer plusieurs fois le même nom crée plusieurs exemplaires.\n# La limite 0 autorise une quantité illimitée, y compris entre plusieurs meubles ou salles.\n# Examiner un meuble affiche le desc_meuble du premier objet encore présent\n# à cet endroit, dans l'ordre de déclaration. Chaque pièce porte donc sa\n# propre description du coffre : le coffre se vide progressivement.\n# 1re pièce du coffre : ses réactions servent pour tout le coffre.\n# nom_affiche : ce que le joueur lit et peut taper (prendre pièce d'or).\n# Le nom piece reste celui des conditions et des effets.",
            "5": "# 2e pièce : même nom, même endroit, description du coffre suivante.",
            "6": "# 3e et dernière pièce du coffre.",
            "7": "# Un autre exemplaire du même objet peut se trouver dans un autre meuble.",
            "8": "# Déclaré après les pièces sur le même coffre : sa description ne\n# s'affiche qu'une fois toutes les pièces prises.\n# Nom différent pour distinguer cet état dans les conditions (si coffreVide).",
            "9": "# Objet qu'on retire à l'entrée (équivalent -nom en .txt)\n# Utile pour \"consommer\" un objet ou réinitialiser un état",
            "10": "# Sans limite précisée : un seul exemplaire peut être porté à la fois.",
            "12": "# Limite explicite : le troisième reste disponible tant que la limite est atteinte.",
            "15": "# Deux objets différents peuvent partager le même nom affiché.\n# L'inventaire les numérote (fiole sans étiquette 1, fiole sans étiquette 2)\n# et le joueur peut taper ce numéro : examiner fiole sans étiquette 2.",
            "17": "# absent: true garde une place déclarée, sans objet présent au démarrage.\n# mettre / poser (put / place) transfère un exemplaire porté vers une place libre.\n# Exemple : mettre pièce d'or dans coffre. Sans meuble, le premier disponible est choisi."
          },
          "evenements": {
            "0": "# Événement conditionnel multi-critères (et) : clé possédée et compteur > 2\n# compteur est le compteur de visites de la salle Variables : une\n# condition peut croiser un objet et une variable venue d'ailleurs.",
            "1": "# Condition quantitative structurée : le bouton apparaît à partir de deux pièces.",
            "2": "# Un effet nom_affiche change le nom lu par le joueur en cours de partie.\n# Les conditions utilisent toujours le nom : fiole_soin, fiole_poison."
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Événement conditionnel multi-critères (et) : clé possédée et compteur > 2\n# compteur est le compteur de visites de la salle Variables : une\n# condition peut croiser un objet et une variable venue d'ailleurs."
          },
          "fondre_pieces": {
            "key_order": [
              "id",
              "bouton",
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Condition quantitative structurée : le bouton apparaît à partir de deux pièces."
          },
          "identifier_fioles": {
            "key_order": [
              "id",
              "bouton",
              "si",
              "visible-si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "si": "\"",
              "visible-si": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Un effet nom_affiche change le nom lu par le joueur en cours de partie.\n# Les conditions utilisent toujours le nom : fiole_soin, fiole_poison."
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "items": {
          "grimoire": {
            "key_order": [
              "nom",
              "endroit",
              "desc_meuble",
              "description",
              "msg_ramassage",
              "reaction_meuble",
              "reaction_prise",
              "reaction_objet"
            ],
            "comments_before": {
              "desc_meuble": "# desc_meuble : affiché quand le joueur examine le meuble (ex: examiner table)",
              "description": "# description : affiché quand le joueur examine l'objet (ex: examiner grimoire)",
              "reaction_meuble": "# reaction_meuble : bouton affiché pour examiner le meuble",
              "reaction_prise": "# reaction_prise : bouton affiché pour prendre l'objet",
              "reaction_objet": "# reaction_objet : bouton affiché pour examiner l'objet lui-même"
            },
            "string_styles": {
              "endroit": "\"",
              "desc_meuble": "\"",
              "description": "\"",
              "msg_ramassage": "\"",
              "reaction_meuble": "\"",
              "reaction_prise": "\"",
              "reaction_objet": "\""
            },
            "comment_list_before": "# Objet sur un meuble visible : le joueur voit \"une table\" dans la salle"
          },
          "table_vide": {
            "key_order": [
              "nom",
              "endroit",
              "meuble-vide",
              "desc_meuble"
            ],
            "string_styles": {
              "endroit": "\"",
              "desc_meuble": "\""
            },
            "comment_list_before": "# meuble-vide: true : le joueur ne peut ni prendre ni examiner cet objet.\n# Déclaré après le grimoire sur la même table, il garde la description\n# de la table une fois le grimoire pris. Sans lui, examiner la table\n# répondrait qu'il n'y a plus rien d'intéressant."
          },
          "clé": {
            "key_order": [
              "nom",
              "endroit",
              "description",
              "msg_ramassage",
              "reaction_prise"
            ],
            "string_styles": {
              "endroit": "\"",
              "description": "\"",
              "msg_ramassage": "\"",
              "reaction_prise": "\""
            },
            "comment_list_before": "# Objet sur le sol : un nom accentué fonctionne (prendre clé, si: \"clé\")."
          },
          "salle_objets_visitee": {
            "key_order": [
              "nom",
              "endroit",
              "description"
            ],
            "string_styles": {
              "description": "\""
            },
            "comment_list_before": "# endroit: invisible -> ce n'est pas un objet caché à ramasser : il est\n# remis automatiquement et sans message à l'entrée de la salle, dans un\n# inventaire que le joueur ne voit pas. \"prendre\" le refuse.\n# Il sert de drapeau pour les conditions : ici, se souvenir que le\n# joueur est passé par cette salle (testé dans demo_conditions)."
          },
          "piece": {
            "key_order": [
              "nom",
              "endroit",
              "limite-inventaire",
              "desc_meuble",
              "description",
              "msg_ramassage",
              "reaction_meuble",
              "reaction_prise"
            ],
            "string_styles": {
              "endroit": "\"",
              "desc_meuble": "\"",
              "description": "\"",
              "msg_ramassage": "\"",
              "reaction_meuble": "\"",
              "reaction_prise": "\""
            },
            "comment_list_before": "# Un autre exemplaire du même objet peut se trouver dans un autre meuble."
          },
          "coffreVide": {
            "key_order": [
              "nom",
              "endroit",
              "desc_meuble",
              "description",
              "msg_ramassage"
            ],
            "string_styles": {
              "endroit": "\"",
              "desc_meuble": "\"",
              "description": "\"",
              "msg_ramassage": "\""
            },
            "comment_list_before": "# Déclaré après les pièces sur le même coffre : sa description ne\n# s'affiche qu'une fois toutes les pièces prises.\n# Nom différent pour distinguer cet état dans les conditions (si coffreVide)."
          },
          "vieillepotion": {
            "key_order": [
              "nom",
              "retirer",
              "endroit"
            ],
            "comment_list_before": "# Objet qu'on retire à l'entrée (équivalent -nom en .txt)\n# Utile pour \"consommer\" un objet ou réinitialiser un état"
          },
          "badge": {
            "key_order": [
              "nom",
              "endroit",
              "desc_meuble",
              "description",
              "msg_ramassage",
              "reaction_meuble",
              "reaction_prise"
            ],
            "string_styles": {
              "endroit": "\"",
              "desc_meuble": "\"",
              "description": "\"",
              "msg_ramassage": "\"",
              "reaction_meuble": "\"",
              "reaction_prise": "\""
            }
          },
          "jeton": {
            "key_order": [
              "nom",
              "endroit",
              "description",
              "msg_ramassage",
              "limite-inventaire"
            ],
            "string_styles": {
              "endroit": "\"",
              "description": "\"",
              "msg_ramassage": "\""
            }
          },
          "fiole_soin": {
            "key_order": [
              "nom",
              "endroit",
              "nom_affiche",
              "desc_meuble",
              "description",
              "msg_ramassage",
              "reaction_meuble"
            ],
            "string_styles": {
              "endroit": "\"",
              "desc_meuble": "\"",
              "description": "\"",
              "msg_ramassage": "\"",
              "reaction_meuble": "\""
            },
            "comment_list_before": "# Deux objets différents peuvent partager le même nom affiché.\n# L'inventaire les numérote (fiole sans étiquette 1, fiole sans étiquette 2)\n# et le joueur peut taper ce numéro : examiner fiole sans étiquette 2."
          },
          "fiole_poison": {
            "key_order": [
              "nom",
              "endroit",
              "nom_affiche",
              "desc_meuble",
              "description",
              "msg_ramassage"
            ],
            "string_styles": {
              "endroit": "\"",
              "desc_meuble": "\"",
              "description": "\"",
              "msg_ramassage": "\""
            }
          },
          "bille": {
            "key_order": [
              "nom",
              "endroit",
              "absent",
              "desc_meuble",
              "description",
              "msg_ramassage",
              "reaction_meuble",
              "reaction_prise"
            ],
            "comment_list_before": "# absent: true garde une place déclarée, sans objet présent au démarrage.\n# mettre / poser (put / place) transfère un exemplaire porté vers une place libre.\n# Exemple : mettre pièce d'or dans coffre. Sans meuble, le premier disponible est choisi."
          },
          "_item_18": {
            "key_order": [
              "endroit",
              "meuble-vide",
              "desc_meuble"
            ]
          }
        },
        "actions": {
          "_act_0": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire"
            ]
          },
          "_act_1": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire"
            ]
          },
          "_act_2": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire",
              "texte_ok"
            ],
            "comment_list_before": "# vers: coffre transfère une pièce portée ; activer: ne retire rien de l'inventaire.\n# dans: compte seulement les exemplaires présents ; salle: précise une autre salle."
          },
          "_act_3": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire",
              "texte_ok"
            ]
          },
          "_act_4": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "si",
              "texte_ok",
              "texte_ko"
            ]
          }
        }
      },
      "demo_actions": {
        "key_order": [
          "id",
          "texte",
          "objets",
          "actions",
          "choix"
        ],
        "comments_before": {
          "objets": "# Objets disponibles dans cette salle"
        },
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "actions": {
            "0": "# Prendre avec condition objet absent (-nom)",
            "2": "# Examiner : même verbe, cibles différentes",
            "4": "# Craft : même verbe/cible, plusieurs conditions (première vraie gagne)\n# Étape 1 : déposer l'herbe en premier",
            "5": "# Étape 2 : ajouter le cristal -> création de la potion",
            "6": "# Fallback : ingrédient inconnu, t_action_cible_t = ce que le joueur a tapé",
            "7": "# Alias d'action : mot-clé raccourci\n# alias: permet au joueur de taper \"alambic\" au lieu de \"inspecter alambic\".\n# Le moteur génère automatiquement l'entrée case[] \"alambic->inspecter:alambic\".",
            "8": "# visible-si: / grise-si: sur une action avec bouton:\n# Les mêmes clés visible-si: et grise-si: s'appliquent aux actions:.\n# Exemple :\n#   - verbe: utiliser\n#     cible: potion\n#     bouton: \"💚 Utiliser la potion\"\n#     visible-si: \"potion\"   -> masqué si le joueur n'a pas la potion\n#     grise-si: \"v_pv_v >= v_pvmax_v\"  -> grisé si PV déjà au max\n# Action avec bouton attaché\n# bouton: affiche une réaction Discord cliquable pour cette action"
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ]
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ]
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers"
            ]
          }
        },
        "items": {
          "herbe": {
            "key_order": [
              "nom",
              "endroit",
              "description",
              "msg_ramassage",
              "reaction_prise"
            ],
            "string_styles": {
              "endroit": "\"",
              "description": "\"",
              "msg_ramassage": "\"",
              "reaction_prise": "\""
            }
          },
          "cristal": {
            "key_order": [
              "nom",
              "endroit",
              "description",
              "msg_ramassage",
              "reaction_prise"
            ],
            "string_styles": {
              "endroit": "\"",
              "description": "\"",
              "msg_ramassage": "\"",
              "reaction_prise": "\""
            }
          }
        },
        "actions": {
          "_act_0": {
            "key_order": [
              "verbe",
              "cible",
              "si",
              "faire",
              "texte_ok",
              "texte_ko"
            ],
            "string_styles": {
              "si": "\"",
              "texte_ok": "\"",
              "texte_ko": "\""
            },
            "comment_list_before": "# Prendre avec condition objet absent (-nom)"
          },
          "_act_1": {
            "key_order": [
              "verbe",
              "cible",
              "si",
              "faire",
              "texte_ok",
              "texte_ko"
            ],
            "string_styles": {
              "si": "\"",
              "texte_ok": "\"",
              "texte_ko": "\""
            }
          },
          "_act_2": {
            "key_order": [
              "verbe",
              "cible",
              "si",
              "texte_ok"
            ],
            "string_styles": {
              "texte_ok": "\""
            },
            "comment_list_before": "# Examiner : même verbe, cibles différentes"
          },
          "_act_3": {
            "key_order": [
              "verbe",
              "cible",
              "si",
              "texte_ok"
            ],
            "string_styles": {
              "texte_ok": "\""
            }
          },
          "_act_4": {
            "key_order": [
              "verbe",
              "cible",
              "si",
              "faire",
              "texte_ok",
              "texte_ko"
            ],
            "string_styles": {
              "si": "\"",
              "texte_ok": "\"",
              "texte_ko": "\""
            },
            "comment_list_before": "# Craft : même verbe/cible, plusieurs conditions (première vraie gagne)\n# Étape 1 : déposer l'herbe en premier"
          },
          "_act_5": {
            "key_order": [
              "verbe",
              "cible",
              "si",
              "faire",
              "texte_ok",
              "texte_ko"
            ],
            "string_styles": {
              "si": "\"",
              "texte_ok": "\"",
              "texte_ko": "\""
            },
            "comment_list_before": "# Étape 2 : ajouter le cristal -> création de la potion"
          },
          "_act_6": {
            "key_order": [
              "verbe",
              "cible",
              "si",
              "texte_ok"
            ],
            "string_styles": {
              "texte_ok": "\""
            },
            "comment_list_before": "# Fallback : ingrédient inconnu, t_action_cible_t = ce que le joueur a tapé"
          },
          "_act_7": {
            "key_order": [
              "verbe",
              "cible",
              "alias",
              "si",
              "texte_ok"
            ],
            "string_styles": {
              "texte_ok": "\""
            },
            "comment_list_before": "# Alias d'action : mot-clé raccourci\n# alias: permet au joueur de taper \"alambic\" au lieu de \"inspecter alambic\".\n# Le moteur génère automatiquement l'entrée case[] \"alambic->inspecter:alambic\"."
          },
          "_act_8": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "si",
              "faire",
              "texte_ok",
              "texte_ko"
            ],
            "string_styles": {
              "bouton": "\"",
              "si": "\"",
              "texte_ok": "\"",
              "texte_ko": "\""
            },
            "comment_list_before": "# visible-si: / grise-si: sur une action avec bouton:\n# Les mêmes clés visible-si: et grise-si: s'appliquent aux actions:.\n# Exemple :\n#   - verbe: utiliser\n#     cible: potion\n#     bouton: \"💚 Utiliser la potion\"\n#     visible-si: \"potion\"   -> masqué si le joueur n'a pas la potion\n#     grise-si: \"v_pv_v >= v_pvmax_v\"  -> grisé si PV déjà au max\n# Action avec bouton attaché\n# bouton: affiche une réaction Discord cliquable pour cette action"
          }
        }
      },
      "demo_events": {
        "key_order": [
          "id",
          "actions",
          "texte",
          "init",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "init": "# init: s'exécute à chaque entrée dans la salle (équivalent L3 en .txt)\n# %=1:6 tire un entier aléatoire entre 1 et 6\n#\n# Formes disponibles dans init: :\n#   var: nom        valeur: X        -> variable numérique\n#   var_texte: nom  valeur: \"texte\"  -> variable textuelle (t_nom_t)\n# Exemple var_texte: (non montré ici, pour référence) :\n#   - var_texte: etat\n#     valeur: \"repos\"\n#     description: \"État du joueur\"",
          "evenements": "# evenements: s'exécutent dans l'ordre après init\n# Attention : comportement séquentiel, chaque événement voit les valeurs\n# modifiées par les précédents. Un événement qui redirige stoppe les suivants."
        },
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "init": {
            "1": "# Aléatoire avec variables comme bornes"
          },
          "evenements": {
            "0": "# Chaque face du dé affiche un texte différent"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Chaque face du dé affiche un texte différent"
          },
          "_ev_1": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "_ev_2": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "_ev_3": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "_ev_4": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "_ev_5": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "appel_dynamique": {
            "key_order": [
              "id",
              "manuel",
              "faire",
              "texte"
            ]
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "comments_inline": {
              "vers": "# retourner dans la même salle relance init"
            },
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_4": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "actions": {
          "_act_0": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire"
            ]
          }
        },
        "init": {
          "_init_0": {
            "key_order": [
              "var",
              "valeur",
              "description"
            ],
            "string_styles": {
              "valeur": "\"",
              "description": "\""
            }
          },
          "_init_1": {
            "key_order": [
              "var",
              "valeur",
              "description"
            ],
            "string_styles": {
              "valeur": "\"",
              "description": "\""
            },
            "comment_list_before": "# Aléatoire avec variables comme bornes"
          }
        },
        "comment_list_before": "# demo_events : ÉVÉNEMENTS AUTOMATIQUES & ALÉATOIRE\n#\n# Montre :\n#   - init: avec %=X:Y (aléatoire à l'entrée)\n#   - init: avec variables comme bornes (%=v_a_v:v_b_v)\n#   - événements conditionnels en série (chaque face du dé -> texte différent)\n#   - table de loot pondérée (redirection, dans demo_loot)\n#\n# Valeur pondérée (var.+.%val:poids,…) : voir le tag coffre_commun.\n# Comportement séquentiel (chaque événement voit les valeurs laissées par\n# les précédents) : voir le record online de demo_variables.\n#\n# Voir aussi (événements avec bouton:) :\n#   - bouton: \"label\"    -> transforme l'événement en bouton cliquable\n#   - max: N             -> limite les déclenchements (entier fixe ou v_var_v dynamique)\n#   - texte: liste       -> texte conditionnel (si:/texte: par item, accumulation)\n#   - _max_atteint_      -> condition vraie au clic après épuisement du compteur\n#   - visible-si: / grise-si: -> masquer ou griser le bouton selon condition\n#   (visible-si: / grise-si: s'appliquent aussi aux choix: et aux actions:)\n#   - declencher_event:t_evenement_choisi_t : id lu dans une variable textuelle.\n#   - manuel: true : événement appelé explicitement, sans bouton et sans déclenchement à l'entrée."
      },
      "demo_loot": {
        "key_order": [
          "id",
          "texte",
          "evenements"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Redirection pondérée : vers une salle selon des poids\n# Syntaxe : %=salle1:poids,salle2:poids,salle3:poids\n# Les poids sont relatifs (pas besoin de totaliser 100).\n# 60% commun, 30% rare, 10% légendaire"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Redirection pondérée : vers une salle selon des poids\n# Syntaxe : %=salle1:poids,salle2:poids,salle3:poids\n# Les poids sont relatifs (pas besoin de totaliser 100).\n# 60% commun, 30% rare, 10% légendaire"
          }
        }
      },
      "loot_commun": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "faire": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "comment_list_before": "# Valeur pondérée : même syntaxe appliquée à une variable\n#   faire: \"degats.=.%1:70,2:20,3:10\"\n#   -> degats vaut 1 (70 %), 2 (20 %) ou 3 (10 %)\n# Exemple réel dans ce fichier : le tag coffre_commun.\n# Salles de résultat de loot"
      },
      "loot_rare": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "faire": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "loot_legendaire": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "faire": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_events_globaux": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# event_global:id:ON active l'événement global \"bonus_visite\"\n# Déclaré dans evenements_globaux: en bas du fichier"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# event_global:id:ON active l'événement global \"bonus_visite\"\n# Déclaré dans evenements_globaux: en bas du fichier"
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_events_globaux_off": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# event_global:id:OFF désactive l'événement global\n# SWITCH inverserait l'état : ON->OFF ou OFF->ON"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# event_global:id:OFF désactive l'événement global\n# SWITCH inverserait l'état : ON->OFF ou OFF->ON"
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_media": {
        "key_order": [
          "id",
          "bouton",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "bouton": "\"",
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Son au chargement de la salle (sans bouton : si: ~ sans bouton:)",
            "1": "# Image",
            "2": "# Bloc texte encadré (pas une image)",
            "3": "# Jouer un 2e son via bouton",
            "4": "# Stopper tous les sons"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "texte"
            ],
            "string_styles": {
              "texte": "|"
            },
            "comment_list_before": "# Son au chargement de la salle (sans bouton : si: ~ sans bouton:)"
          },
          "_ev_1": {
            "key_order": [
              "si",
              "texte"
            ],
            "string_styles": {
              "texte": "|"
            },
            "comment_list_before": "# Image"
          },
          "_ev_2": {
            "key_order": [
              "si",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            },
            "comment_list_before": "# Bloc texte encadré (pas une image)"
          },
          "_ev_3": {
            "key_order": [
              "si",
              "bouton",
              "texte"
            ],
            "comments_before": {
              "texte": "# Stopper tous les sons"
            },
            "string_styles": {
              "bouton": "\"",
              "texte": "|"
            },
            "comment_list_before": "# Jouer un 2e son via bouton"
          },
          "_ev_4": {
            "key_order": [
              "si",
              "bouton",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Stopper tous les sons"
          },
          "_ev_5": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_succes": {
        "key_order": [
          "id",
          "evenements",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Succès de parcours : il attend que les deux collections aient été\n# consultées. Chaque salle pose son marqueur, cet événement les croise."
          },
          "choix": {
            "2": "# Un bouton qui débloque un succès : l'action va dans effet:, et vers:\n# renvoie sur la même salle pour que le joueur voie le texte à jour.\n# commande: doit rester unique parmi les boutons de la salle."
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\""
            },
            "comment_list_before": "# Succès de parcours : il attend que les deux collections aient été\n# consultées. Chaque salle pose son marqueur, cet événement les croise."
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "effet",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            },
            "comment_list_before": "# Un bouton qui débloque un succès : l'action va dans effet:, et vers:\n# renvoie sur la même salle pour que le joueur voie le texte à jour.\n# commande: doit rester unique parmi les boutons de la salle."
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_4": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "succes_collection": {
        "key_order": [
          "id",
          "evenements",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ]
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "succes_globaux": {
        "key_order": [
          "id",
          "evenements",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ]
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_conditions": {
        "key_order": [
          "id",
          "bouton",
          "texte",
          "init",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "init": "# init: peut réinitialiser des variables à chaque visite"
        },
        "string_styles": {
          "bouton": "\""
        },
        "seq_comments": {
          "texte": {
            "0": "# texte: accepte une liste de blocs. Chaque bloc peut être :\n#   - une chaîne simple (toujours affichée)\n#   - { si: condition, texte: \"...\" } (affiché seulement si la condition est vraie)\n# Les blocs sont concaténés avec un saut de ligne automatique.",
            "8": "# salle_objets_visitee est un objet invisible, remis à l'entrée de la\n# salle Objets : un drapeau qui se teste comme n'importe quel objet."
          },
          "evenements": {
            "0": "# visible-si: / grise-si: sur un événement avec bouton:\n# Ces clés s'appliquent aussi aux événements (pas seulement aux choix:).\n#   visible-si: \"condition\"  -> le bouton n'apparaît que si la condition est vraie\n#   grise-si:   \"condition\"  -> le bouton reste visible mais inactif si vraie\n# Exemple (non montré ici pour garder la démo lisible) :\n#   - si: ~\n#     bouton: \"⚔️ Attaquer (visible-si)\"\n#     visible-si: \"v_pv_v > 0\"\n#     faire: \"score.+.1\"\n# max: fixe, ramasser la pièce (2 fois maximum)\n# texte: liste permet d'afficher un texte différent selon condition.\n# _max_atteint_ est vrai quand le compteur vient d'être épuisé.",
            "1": "# max: variable, utiliser une charge\n# Le maximum est lu dans v_charges_v, et chaque utilisation décrémente\n# cette variable : le label \"(v_charges_v restantes)\" suit donc le stock.\n# À 0, le bouton reste cliquable mais affiche le bloc _max_atteint_.",
            "2": "# Perdre / soigner pour tester grise-si",
            "4": "# Recharger les charges"
          },
          "choix": {
            "0": "# visible-si : bouton masqué si condition fausse",
            "1": "# visible-si avec variable",
            "2": "# grise-si : bouton toujours visible, mais inactif si condition vraie\n# Contrairement à visible-si, le bouton reste affiché (grisé).\n# Un texte par défaut est affiché si le joueur clique dessus.",
            "3": "# effet au clic"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "bouton",
              "faire",
              "texte",
              "max"
            ],
            "string_styles": {
              "bouton": "\"",
              "faire": "\""
            },
            "comment_list_before": "# visible-si: / grise-si: sur un événement avec bouton:\n# Ces clés s'appliquent aussi aux événements (pas seulement aux choix:).\n#   visible-si: \"condition\"  -> le bouton n'apparaît que si la condition est vraie\n#   grise-si:   \"condition\"  -> le bouton reste visible mais inactif si vraie\n# Exemple (non montré ici pour garder la démo lisible) :\n#   - si: ~\n#     bouton: \"⚔️ Attaquer (visible-si)\"\n#     visible-si: \"v_pv_v > 0\"\n#     faire: \"score.+.1\"\n# max: fixe, ramasser la pièce (2 fois maximum)\n# texte: liste permet d'afficher un texte différent selon condition.\n# _max_atteint_ est vrai quand le compteur vient d'être épuisé."
          },
          "_ev_1": {
            "key_order": [
              "si",
              "bouton",
              "faire",
              "texte",
              "max"
            ],
            "string_styles": {
              "bouton": "\"",
              "faire": "\""
            },
            "comment_list_before": "# max: variable, utiliser une charge\n# Le maximum est lu dans v_charges_v, et chaque utilisation décrémente\n# cette variable : le label \"(v_charges_v restantes)\" suit donc le stock.\n# À 0, le bouton reste cliquable mais affiche le bloc _max_atteint_."
          },
          "_ev_2": {
            "key_order": [
              "si",
              "bouton",
              "faire",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "bouton": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Perdre / soigner pour tester grise-si"
          },
          "_ev_3": {
            "key_order": [
              "si",
              "bouton",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# Recharger les charges"
            },
            "string_styles": {
              "si": "\"",
              "bouton": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "_ev_4": {
            "key_order": [
              "si",
              "bouton",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Recharger les charges"
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si",
              "visible-si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\"",
              "visible-si": "\""
            },
            "comment_list_before": "# visible-si : bouton masqué si condition fausse"
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si",
              "visible-si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\"",
              "visible-si": "\""
            },
            "comment_list_before": "# visible-si avec variable"
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si",
              "grise-si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\"",
              "grise-si": "\""
            },
            "comment_list_before": "# grise-si : bouton toujours visible, mais inactif si condition vraie\n# Contrairement à visible-si, le bouton reste affiché (grisé).\n# Un texte par défaut est affiché si le joueur clique dessus."
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si",
              "effet"
            ],
            "comments_inline": {
              "effet": "# exécuté au clic, avant le déplacement"
            },
            "string_styles": {
              "commande": "\"",
              "bouton": "\"",
              "effet": "\""
            },
            "comment_list_before": "# effet au clic"
          },
          "_ch_4": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_5": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "init": {
          "_init_0": {
            "key_order": [
              "var",
              "valeur"
            ]
          }
        }
      },
      "demo_tags": {
        "key_order": [
          "id",
          "tag-avant",
          "tag-après",
          "texte",
          "choix"
        ],
        "comments_before": {
          "tag-avant": "# tag-avant: [coffre_commun]\n#   -> chaque liste du tag passe avant la liste du même nom de la salle :\n#     ses événements avant ceux de la salle, ses choix avant ses choix.\n#   -> init: du tag (coffre_ouvert = 0) est également injecté.\n#   Attention : Avant/après joue à l'intérieur de chaque liste, pas entre elles :\n#     les boutons d'événements s'affichent toujours après les choix:.",
          "tag-après": "# tag-après: [panneau_retour]\n#   -> les boutons de sortie sont ajoutés EN dernier, après les choix\n#     propres à cette salle."
        },
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "tag-avant": {
            "0": "# tag-après: [panneau_retour]\n#   -> les boutons de sortie sont ajoutés EN dernier, après les choix\n#     propres à cette salle."
          },
          "choix": {
            "0": "# Choix propres à cette salle. Les boutons de sortie viennent du tag\n# panneau_retour (tag-après) : ils s'ajoutent après ceux-ci."
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            },
            "comment_list_before": "# Choix propres à cette salle. Les boutons de sortie viennent du tag\n# panneau_retour (tag-après) : ils s'ajoutent après ceux-ci."
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          }
        }
      },
      "demo_tags2": {
        "key_order": [
          "id",
          "tag-avant",
          "tag-après",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          }
        }
      },
      "demo_modeles": {
        "key_order": [
          "id",
          "texte",
          "init",
          "modeles",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "evenements": "# Ces evenements et choix s'exécutent après fin_modele du dernier modèle"
        },
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "init": {
            "0": "# Initialise les PV de chaque ennemi à chaque entrée dans cette salle"
          },
          "modeles": {
            "0": "# Instance 1 : combat contre le Gobelin",
            "1": "# Instance 2 : combat contre le Troll (même modèle, variables différentes)"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "init": {
          "_init_0": {
            "key_order": [
              "var",
              "valeur"
            ],
            "comment_list_before": "# Initialise les PV de chaque ennemi à chaque entrée dans cette salle"
          },
          "_init_1": {
            "key_order": [
              "var",
              "valeur"
            ]
          }
        }
      },
      "demo_timers": {
        "key_order": [
          "id",
          "supprimer-encadre",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_4": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_timer_block": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_timer_local": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# timer: dans un événement -> timer local lié à la salle\n# Déclenché à l'entrée (si: ~ = toujours)\n# Si le joueur quitte la salle, le timer s'annule automatiquement\n# À expiration : vers: redirige vers une salle, ou faire: exécute une action\n#   ex: faire: \"score.+.5\" -> modifie une variable sans changer de salle"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "timer",
              "duree",
              "vers",
              "texte"
            ],
            "string_styles": {
              "duree": "\"",
              "texte": "\""
            },
            "comment_list_before": "# timer: dans un événement -> timer local lié à la salle\n# Déclenché à l'entrée (si: ~ = toujours)\n# Si le joueur quitte la salle, le timer s'annule automatiquement\n# À expiration : vers: redirige vers une salle, ou faire: exécute une action\n#   ex: faire: \"score.+.5\" -> modifie une variable sans changer de salle"
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "timer_local_expire": {
        "key_order": [
          "id",
          "texte",
          "evenements"
        ],
        "string_styles": {
          "texte": "|"
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "vers"
            ],
            "string_styles": {
              "faire": "\""
            }
          }
        }
      },
      "demo_timer_tick": {
        "key_order": [
          "id",
          "texte",
          "encadre",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Réinitialiser le compteur à l'entrée",
            "1": "# timer: local de 3 minutes (180s)\n# tick: incrémente ticks_ecoules chaque seconde"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "faire": "\""
            },
            "comment_list_before": "# Réinitialiser le compteur à l'entrée"
          },
          "_ev_1": {
            "key_order": [
              "si",
              "timer",
              "duree",
              "vers",
              "texte",
              "tick"
            ],
            "string_styles": {
              "duree": "\"",
              "texte": "\""
            },
            "comment_list_before": "# timer: local de 3 minutes (180s)\n# tick: incrémente ticks_ecoules chaque seconde"
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si",
              "supprimer-encadre"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          }
        },
        "comment_list_before": "# demo_timer_tick : ACTION par TICK\n#\n# tick: exécute une liste de blocs {si?, faire:} à chaque seconde\n# pendant qu'un timer local (ou global) est actif.\n#\n# Syntaxe sur un événement timer local :\n#\n#   - si: ~\n#     timer: mon_timer\n#     duree: \"10\"\n#     vers: salle_expiration\n#     tick:\n#       - si: ~              # pas de condition -> toujours exécuté\n#         faire: \"var.+.1\"\n#       - si: \"v_var_v > 5\"  # exécuté seulement quand var > 5\n#         faire: \"autre.+.1\"\n#\n# Sur un timer global (section timers_globaux:), même syntaxe :\n#   - id: mon_timer_global\n#     duree: 30\n#     tick:\n#       - si: ~\n#         faire: \"var.+.1\"\n#\n# Notes :\n#   - tick: est indépendant de vers: et faire: (qui s'exécutent à l'expiration)\n#   - si le joueur quitte la salle, le timer local et son tick s'annulent\n#   - garde anti-récursion : declencher_event: dans un tick est limité à 10 niveaux"
      },
      "demo_timer_tick_expire": {
        "key_order": [
          "id",
          "supprimer-encadre",
          "texte",
          "evenements"
        ],
        "string_styles": {
          "texte": "|"
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "vers"
            ],
            "string_styles": {
              "faire": "\""
            }
          }
        }
      },
      "demo_timer_global": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Si le timer est déjà en cours, afficher le temps restant sans le relancer",
            "1": "# timer_global: ON -> active le timer global \"comptebombe\"\n# event_global: ON -> active l'alarme qui se déclenche à l'expiration\n# bombe_en_cours passe à 1 -> empêche cet événement de se réexécuter à l'expiration\n# (à l'expiration, verifier_cases_speciales repasse par cette salle avant les globaux)"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Si le timer est déjà en cours, afficher le temps restant sans le relancer"
          },
          "_ev_1": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "texte": "\""
            },
            "comment_list_before": "# timer_global: ON -> active le timer global \"comptebombe\"\n# event_global: ON -> active l'alarme qui se déclenche à l'expiration\n# bombe_en_cours passe à 1 -> empêche cet événement de se réexécuter à l'expiration\n# (à l'expiration, verifier_cases_speciales repasse par cette salle avant les globaux)"
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_hud": {
        "key_order": [
          "id",
          "encadre",
          "texte",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "encadre": "# encadre: au niveau de la salle -> posé à l'entrée de la salle.\n# Il persiste tant qu'une autre salle ne le remplace ou ne le supprime pas.\n# Un encadré est identifié par sa position : chaque position = une zone d'écran.\n#\n# Positions disponibles :\n#   haut / bas / gauche / droite\n#   haut-gauche / haut-droite / bas-gauche / bas-droite\n#\n# Taille :\n#   taille: 30    -> raccourci (30 % de la zone de jeu dans l'axe principal)\n#   largeur: 25   -> largeur explicite en % (indépendant de hauteur)\n#   hauteur: 15   -> hauteur explicite en % (indépendant de largeur)\n#   Si ni taille ni largeur/hauteur -> valeurs par défaut selon la position :\n#     coins : compact quasi-carré, bandes : larges, panneaux : colonnes.\n#\n# Redimensionnement :\n#   redimensionnable: true   -> ajoute une poignée de resize côté joueur.\n#   Par défaut, un HUD n'est pas redimensionnable.\n#   Alias EN possible : resizable: true\n#   Si un event ou un choix réémet/remplace le même HUD, remettre la clé\n#   sur ce nouvel encadre: pour conserver la poignée après mise à jour.\n#\n# Timer global \"encadre_chrono\" de 120 s : activé à l'entrée de la salle.\n# v_encadre_chrono_v = secondes restantes, visible aussi dans les sous-salles HUD.\n# Le timer global est utilisé ici parce que les encadrés peuvent persister entre salles."
        },
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Timer global réinitialisé puis activé à l'entrée (si: ~ = toujours).\n# La variable v_encadre_chrono_v contient les secondes restantes.",
            "1": "# encadre: sur un événement -> mis à jour au moment du clic.\n# Utile pour refléter immédiatement les nouvelles valeurs de variables."
          },
          "choix": {
            "3": "# supprimer-encadre: sur un choix -> supprime l'encadré au moment de la transition.\n# \"all\" supprime tous les encadrés actifs.\n# On peut aussi cibler une position précise : supprimer-encadre: [haut-droite]"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            },
            "comment_list_before": "# Timer global réinitialisé puis activé à l'entrée (si: ~ = toujours).\n# La variable v_encadre_chrono_v contient les secondes restantes."
          },
          "_ev_1": {
            "key_order": [
              "si",
              "faire",
              "bouton",
              "texte",
              "encadre"
            ],
            "string_styles": {
              "faire": "\"",
              "bouton": "\"",
              "texte": "\""
            },
            "comment_list_before": "# encadre: sur un événement -> mis à jour au moment du clic.\n# Utile pour refléter immédiatement les nouvelles valeurs de variables."
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si",
              "supprimer-encadre"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            },
            "comment_list_before": "# supprimer-encadre: sur un choix -> supprime l'encadré au moment de la transition.\n# \"all\" supprime tous les encadrés actifs.\n# On peut aussi cibler une position précise : supprimer-encadre: [haut-droite]"
          },
          "_ch_4": {
            "key_order": [
              "commande",
              "vers",
              "si",
              "supprimer-encadre"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_hud_multi": {
        "key_order": [
          "id",
          "encadre",
          "texte",
          "choix"
        ],
        "comments_before": {
          "encadre": "# Liste de plusieurs encadrés : chaque position = un encadré indépendant.\n# Les quatre coins peuvent coexister simultanément.\n# haut-gauche et haut-droite peuvent coexister entre eux (idem bas-gauche/bas-droite).\n# Mais : un encadré \"haut\" remplacerait haut-gauche et haut-droite.\n#        un encadré \"haut-gauche\" remplacerait \"haut\" (même logique)."
        },
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si",
              "supprimer-encadre"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          }
        },
        "comment_list_before": "# Sous-salle : plusieurs encadrés simultanés"
      },
      "demo_hud_conditionnel": {
        "key_order": [
          "id",
          "encadre",
          "texte",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "encadre": "# texte: dans un encadré accepte une liste de blocs conditionnels.\n# La liste est réévaluée à chaque affichage : idéal pour des jauges dynamiques."
        },
        "string_styles": {
          "texte": "|"
        },
        "nested_seq_comments": {
          "encadre.texte": {
            "0": "# Attention : Les blocs s'additionnent : chaque bloc dont la condition est\n# vraie est affiché, comme dans le texte d'une salle. Pour une jauge\n# à un seul état, les conditions ne doivent donc pas se recouvrir :\n# d'où les intervalles \"in 1-3\" / \"in 4-6\" plutôt que \"<= 3\" / \"<= 6\"\n# (avec 2 PV, ces derniers afficheraient critique, Blessé et En forme)."
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "bouton",
              "texte",
              "encadre"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\"",
              "bouton": "\"",
              "texte": "\""
            }
          },
          "_ev_1": {
            "key_order": [
              "si",
              "faire",
              "bouton",
              "texte",
              "encadre"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\"",
              "bouton": "\"",
              "texte": "\""
            },
            "nested_seq_comments": {
              "encadre.texte": {
                "0": "# Même liste que l'encadré de salle, réémise après l'action."
              }
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si",
              "supprimer-encadre"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          }
        },
        "comment_list_before": "# Sous-salle : texte conditionnel dans un encadré"
      },
      "demo_hud_split": {
        "key_order": [
          "id",
          "evenements",
          "encadre",
          "texte",
          "choix"
        ],
        "comments_before": {
          "encadre": "# [[split]] dans le texte: de l'encadré divise l'encadré en deux zones.\n# Tout ce qui précède [[split]] = zone 1, tout ce qui suit = zone 2.\n# Les images [[url]] sont aussi supportées dans chaque zone.\n# Ordre des zones selon la position :\n#   gauche/droite -> zone haut / zone bas\n#   haut/bas      -> zone gauche / zone droite"
        },
        "string_styles": {
          "texte": "|"
        },
        "events": {
          "hud_proportions": {
            "key_order": [
              "id",
              "bouton",
              "encadre",
              "texte"
            ]
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si",
              "supprimer-encadre"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          }
        },
        "comment_list_before": "# Sous-salle : encadré split (deux zones)\n#   - [[split:40]] réserve 40 % à la zone précédente, le reste à la suivante.\n#   - alignement-vertical: centre place le contenu dans la hauteur du cadre."
      },
      "demo_options": {
        "key_order": [
          "id",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "comment_list_before": "# demo_options : OPTIONS & LIENS EXTERNES\n#\n# Montre :\n#   - options: dans les globaux : boutons dans la toolbar\n#   - lien externe : url1: https://...|label\n#   - plusieurs liens : la clé (url1, url2, wiki…) est libre\n#   - fallback examiner : option vers un objet/meuble déclenche examiner\n#   - options description: (clé globale, affichée au survol de la carte)"
      },
      "demo_video": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Vidéo en boucle avec contrôles",
            "1": "# Autoplay muted",
            "2": "# Sans contrôles",
            "3": "# Vidéo de plateforme : une simple URL de page suffit.",
            "4": "# Texte non-vidéo entre ((...)) -> reste du texte",
            "5": "# HUD vidéo",
            "6": "# Supprimer le HUD"
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "bouton",
              "texte"
            ],
            "comments_before": {
              "texte": "# Autoplay muted"
            },
            "string_styles": {
              "bouton": "\"",
              "texte": "|"
            },
            "comment_list_before": "# Vidéo en boucle avec contrôles"
          },
          "_ev_1": {
            "key_order": [
              "si",
              "bouton",
              "texte"
            ],
            "comments_before": {
              "texte": "# Sans contrôles"
            },
            "string_styles": {
              "bouton": "\"",
              "texte": "|"
            },
            "comment_list_before": "# Autoplay muted"
          },
          "_ev_2": {
            "key_order": [
              "si",
              "bouton",
              "texte"
            ],
            "comments_before": {
              "texte": "# Vidéo de plateforme : une simple URL de page suffit."
            },
            "string_styles": {
              "bouton": "\"",
              "texte": "|"
            },
            "comment_list_before": "# Sans contrôles"
          },
          "_ev_3": {
            "key_order": [
              "si",
              "bouton",
              "texte"
            ],
            "comments_before": {
              "texte": "# Texte non-vidéo entre ((...)) -> reste du texte"
            },
            "string_styles": {
              "bouton": "\"",
              "texte": "|"
            },
            "comment_list_before": "# Vidéo de plateforme : une simple URL de page suffit."
          },
          "_ev_4": {
            "key_order": [
              "si",
              "texte"
            ],
            "string_styles": {
              "texte": "|"
            },
            "comment_list_before": "# Texte non-vidéo entre ((...)) -> reste du texte"
          },
          "_ev_5": {
            "key_order": [
              "si",
              "bouton",
              "texte",
              "encadre"
            ],
            "string_styles": {
              "bouton": "\"",
              "texte": "\""
            },
            "comment_list_before": "# HUD vidéo"
          },
          "_ev_6": {
            "key_order": [
              "si",
              "bouton",
              "texte",
              "supprimer-encadre"
            ],
            "string_styles": {
              "bouton": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Supprimer le HUD"
          },
          "_ev_7": {
            "key_order": [
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_tooltips": {
        "key_order": [
          "id",
          "auto_refresh",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# :!tt_image déclenche cet événement local au premier survol/clic du mot \"miroir\".\n# Le texte de l'event peut contenir une image [[...]] comme n'importe quel texte.",
            "1": "# Exemple sans bulle : {{levier:!tt_compteur}} déclenche juste un effet.",
            "2": "# visible-si faux -> le mot \"coffret\" s'affiche comme texte ordinaire.\n# grise-si vrai  -> le mot \"coffret\" est visible, stylé tooltip grisé, mais inactif."
          }
        },
        "events": {
          "tt_image": {
            "key_order": [
              "id",
              "si",
              "once",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# Exemple sans bulle : {{levier:!tt_compteur}} déclenche juste un effet."
            },
            "string_styles": {
              "faire": "\"",
              "texte": "|"
            },
            "comment_list_before": "# :!tt_image déclenche cet événement local au premier survol/clic du mot \"miroir\".\n# Le texte de l'event peut contenir une image [[...]] comme n'importe quel texte."
          },
          "tt_compteur": {
            "key_order": [
              "id",
              "si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Exemple sans bulle : {{levier:!tt_compteur}} déclenche juste un effet."
          },
          "tt_coffret": {
            "key_order": [
              "id",
              "si",
              "visible-si",
              "grise-si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "visible-si": "\"",
              "grise-si": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# visible-si faux -> le mot \"coffret\" s'affiche comme texte ordinaire.\n# grise-si vrai  -> le mot \"coffret\" est visible, stylé tooltip grisé, mais inactif."
          },
          "tt_donner_clef": {
            "key_order": [
              "id",
              "si",
              "bouton",
              "visible-si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "visible-si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "tt_deverrouiller": {
            "key_order": [
              "id",
              "si",
              "bouton",
              "visible-si",
              "grise-si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "visible-si": "\"",
              "grise-si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "tt_reinit_etat": {
            "key_order": [
              "id",
              "si",
              "bouton",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "texte": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_clickable": {
        "key_order": [
          "id",
          "bouton",
          "encadre",
          "texte",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "encadre": "# Les éléments dont l'état doit changer en temps réel sont placés dans\n# un HUD bas : le texte principal reste dans l'historique, tandis que\n# l'encadré est réémis avec les variables courantes après chaque action."
        },
        "string_styles": {
          "bouton": "\"",
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# once: true -> se déclenche une seule fois par partie.\n# Après le premier clic, l'élément reste visible dans l'historique\n# mais le moteur bloque tout clic suivant.",
            "1": "# visible-si: false -> le mot \"coffre\" s'affiche comme du texte ordinaire,\n# sans soulignement ni surbrillance : aucun clic possible.\n# visible-si: true -> cliquable, vert, déclenche l'event.",
            "2": "# grise-si: true -> le mot \"mecanisme\" reste visible et reconnaissable\n# comme élément cliquable, mais il est grisé et aucun clic ne part.\n# grise-si: false -> cliquable, vert, déclenche l'event.",
            "3": "# Bouton utilitaire pour faire passer l'exemple grisé à l'état actif.",
            "4": "# vers: dans un event cliquable -> redirige directement au clic.\n# Fonctionne aussi avec faire: avant le vers: (effet + redirection).",
            "5": "# Image cliquable : le label est une URL d'image.\n# Le moteur la détecte à l'extension et la rend cliquable visuellement."
          }
        },
        "events": {
          "prendre_cle": {
            "key_order": [
              "id",
              "si",
              "once",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# visible-si: false -> le mot \"coffre\" s'affiche comme du texte ordinaire,\n# sans soulignement ni surbrillance : aucun clic possible.\n# visible-si: true -> cliquable, vert, déclenche l'event."
            },
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# once: true -> se déclenche une seule fois par partie.\n# Après le premier clic, l'élément reste visible dans l'historique\n# mais le moteur bloque tout clic suivant."
          },
          "ouvrir_coffre": {
            "key_order": [
              "id",
              "si",
              "visible-si",
              "once",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# grise-si: true -> le mot \"mecanisme\" reste visible et reconnaissable\n# comme élément cliquable, mais il est grisé et aucun clic ne part.\n# grise-si: false -> cliquable, vert, déclenche l'event."
            },
            "string_styles": {
              "visible-si": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# visible-si: false -> le mot \"coffre\" s'affiche comme du texte ordinaire,\n# sans soulignement ni surbrillance : aucun clic possible.\n# visible-si: true -> cliquable, vert, déclenche l'event."
          },
          "activer_mecanisme": {
            "key_order": [
              "id",
              "si",
              "grise-si",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# Bouton utilitaire pour faire passer l'exemple grisé à l'état actif."
            },
            "string_styles": {
              "grise-si": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# grise-si: true -> le mot \"mecanisme\" reste visible et reconnaissable\n# comme élément cliquable, mais il est grisé et aucun clic ne part.\n# grise-si: false -> cliquable, vert, déclenche l'event."
          },
          "deverrouiller_mecanisme": {
            "key_order": [
              "id",
              "si",
              "bouton",
              "grise-si",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# vers: dans un event cliquable -> redirige directement au clic.\n# Fonctionne aussi avec faire: avant le vers: (effet + redirection)."
            },
            "string_styles": {
              "bouton": "\"",
              "grise-si": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Bouton utilitaire pour faire passer l'exemple grisé à l'état actif."
          },
          "vers_accueil": {
            "key_order": [
              "id",
              "si",
              "vers"
            ],
            "comment_list_before": "# vers: dans un event cliquable -> redirige directement au clic.\n# Fonctionne aussi avec faire: avant le vers: (effet + redirection)."
          },
          "clic_panda": {
            "key_order": [
              "id",
              "si",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            },
            "comment_list_before": "# Image cliquable : le label est une URL d'image.\n# Le moteur la détecte à l'extension et la rend cliquable visuellement."
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_tilemap": {
        "key_order": [
          "id",
          "texte",
          "encadre",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "texte": "# Variables pour la tuile dynamique\n# col et row sont déclarées globalement (initialisées à 0).\n# Les boutons de cette salle les modifient ; le HUD se met à jour\n# automatiquement à chaque événement.\n# visible-si: borne les valeurs dans les limites du tileset (8 cols, 16 rows).",
          "encadre": "# HUD haut-droite : mini-carte 3×3 avec coins dynamiques\n# Les 4 coins utilisent {col}:{row}, mis à jour à chaque événement.\n# Les autres cellules sont fixes (eau, pierre, herbe)."
        },
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Boutons de navigation : modifient col/row et rafraîchissent le HUD"
          }
        },
        "events": {
          "tm_col_plus": {
            "key_order": [
              "id",
              "si",
              "bouton",
              "visible-si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "visible-si": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Boutons de navigation : modifient col/row et rafraîchissent le HUD"
          },
          "tm_col_moins": {
            "key_order": [
              "id",
              "si",
              "bouton",
              "visible-si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "visible-si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "tm_row_plus": {
            "key_order": [
              "id",
              "si",
              "bouton",
              "visible-si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "visible-si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          },
          "tm_row_moins": {
            "key_order": [
              "id",
              "si",
              "bouton",
              "visible-si",
              "faire",
              "texte"
            ],
            "string_styles": {
              "bouton": "\"",
              "visible-si": "\"",
              "faire": "\"",
              "texte": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_dragdrop": {
        "key_order": [
          "id",
          "bouton",
          "montrer-type",
          "interaction-ko",
          "encadre",
          "texte",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "montrer-type": "# montrer-type: true sur cette salle uniquement -> styles distincts source/cible/both.\n# Retirer cette ligne pour que tous les éléments aient le même style discret.",
          "interaction-ko": "# interaction-ko: texte de fallback affiché quand aucun event ne correspond\n# à la paire (source, cible) déposée. Sans cette ligne -> silencieux.",
          "encadre": "# HUD bas : réémis après chaque event -> variables toujours à jour en temps réel.\n# Les cas visible-si et grise-si y sont affichés pour voir leur état changer en direct."
        },
        "string_styles": {
          "bouton": "\"",
          "interaction-ko": "\"",
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "\n# Cas 1 : source -> cible, once: true\n# once: true -> ne fonctionne qu'une fois par partie.\n# texte-ko: -> affiché quand once est épuisé (porte déjà ouverte).",
            "1": "# Cas 2 : both (pierre) + source pure (marteau)\n# Un élément \"both\" peut être glissé et recevoir un dépôt.\n# pierre -> marteau : la pierre racle le marteau (source both -> cible source)\n# marteau -> pierre : le marteau frappe la pierre (source pur -> cible both)\n# pierre -> pierre : auto-drop both->both, le moteur détecte quand même la paire",
            "4": "# Cas 3 : une source, deux cibles différentes\n# Le chiffon peut être déposé sur la lame et sur le bouclier.\n# Les deux events sont indépendants.",
            "6": "# Cas 4 : visible-si (dans le HUD)\n# Quand visible-si est faux, {{fiole}} devient du texte ordinaire dans le HUD :\n# plus de soulignage, plus de curseur grab, impossible à glisser.\n# Le HUD se réémettant après chaque event, l'effet est visible en temps réel.",
            "7": "# Cas 5 : grise-si (dans le HUD)\n# Quand grise-si est vrai, {{épée}} est visible mais grisée dans le HUD\n# (couleur muted, opacité réduite, curseur not-allowed) -> drop silencieux.\n# Quand faux (après avoir nettoyé lame ou bouclier), l'épée redevient active.",
            "8": "# Cas 6 : image comme source\n# Le label {{[[image.png]]:>id}} rend l'image draggable.\n# Même syntaxe pour une cible : {{[[image.png]]:$id}}"
          }
        },
        "events": {
          "dd_cle_porte": {
            "key_order": [
              "id",
              "si",
              "source",
              "cible",
              "once",
              "texte_ko",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# Cas 2 : both (pierre) + source pure (marteau)\n# Un élément \"both\" peut être glissé et recevoir un dépôt.\n# pierre -> marteau : la pierre racle le marteau (source both -> cible source)\n# marteau -> pierre : le marteau frappe la pierre (source pur -> cible both)\n# pierre -> pierre : auto-drop both->both, le moteur détecte quand même la paire"
            },
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "\n# Cas 1 : source -> cible, once: true\n# once: true -> ne fonctionne qu'une fois par partie.\n# texte-ko: -> affiché quand once est épuisé (porte déjà ouverte)."
          },
          "dd_pierre_marteau": {
            "key_order": [
              "id",
              "si",
              "source",
              "cible",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            },
            "comment_list_before": "# Cas 2 : both (pierre) + source pure (marteau)\n# Un élément \"both\" peut être glissé et recevoir un dépôt.\n# pierre -> marteau : la pierre racle le marteau (source both -> cible source)\n# marteau -> pierre : le marteau frappe la pierre (source pur -> cible both)\n# pierre -> pierre : auto-drop both->both, le moteur détecte quand même la paire"
          },
          "dd_marteau_pierre": {
            "key_order": [
              "id",
              "si",
              "source",
              "cible",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            }
          },
          "dd_pierre_pierre": {
            "key_order": [
              "id",
              "si",
              "source",
              "cible",
              "texte"
            ],
            "comments_before": {
              "texte": "# Cas 3 : une source, deux cibles différentes\n# Le chiffon peut être déposé sur la lame et sur le bouclier.\n# Les deux events sont indépendants."
            },
            "string_styles": {
              "texte": "\""
            }
          },
          "dd_chiffon_lame": {
            "key_order": [
              "id",
              "si",
              "source",
              "cible",
              "faire",
              "texte"
            ],
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Cas 3 : une source, deux cibles différentes\n# Le chiffon peut être déposé sur la lame et sur le bouclier.\n# Les deux events sont indépendants."
          },
          "dd_chiffon_bouclier": {
            "key_order": [
              "id",
              "si",
              "source",
              "cible",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# Cas 4 : visible-si (dans le HUD)\n# Quand visible-si est faux, {{fiole}} devient du texte ordinaire dans le HUD :\n# plus de soulignage, plus de curseur grab, impossible à glisser.\n# Le HUD se réémettant après chaque event, l'effet est visible en temps réel."
            },
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            }
          },
          "dd_fiole_chaudron": {
            "key_order": [
              "id",
              "si",
              "source",
              "cible",
              "visible-si",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# Cas 5 : grise-si (dans le HUD)\n# Quand grise-si est vrai, {{épée}} est visible mais grisée dans le HUD\n# (couleur muted, opacité réduite, curseur not-allowed) -> drop silencieux.\n# Quand faux (après avoir nettoyé lame ou bouclier), l'épée redevient active."
            },
            "string_styles": {
              "visible-si": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Cas 4 : visible-si (dans le HUD)\n# Quand visible-si est faux, {{fiole}} devient du texte ordinaire dans le HUD :\n# plus de soulignage, plus de curseur grab, impossible à glisser.\n# Le HUD se réémettant après chaque event, l'effet est visible en temps réel."
          },
          "dd_epee_enclume": {
            "key_order": [
              "id",
              "si",
              "source",
              "cible",
              "grise-si",
              "faire",
              "texte"
            ],
            "comments_before": {
              "faire": "# Cas 6 : image comme source\n# Le label {{[[image.png]]:>id}} rend l'image draggable.\n# Même syntaxe pour une cible : {{[[image.png]]:$id}}"
            },
            "string_styles": {
              "grise-si": "\"",
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Cas 5 : grise-si (dans le HUD)\n# Quand grise-si est vrai, {{épée}} est visible mais grisée dans le HUD\n# (couleur muted, opacité réduite, curseur not-allowed) -> drop silencieux.\n# Quand faux (après avoir nettoyé lame ou bouclier), l'épée redevient active."
          },
          "dd_img_dalle": {
            "key_order": [
              "id",
              "si",
              "source",
              "cible",
              "faire",
              "texte"
            ],
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Cas 6 : image comme source\n# Le label {{[[image.png]]:>id}} rend l'image draggable.\n# Même syntaxe pour une cible : {{[[image.png]]:$id}}"
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "demo_imagemap": {
        "key_order": [
          "id",
          "init",
          "encadre",
          "texte",
          "zones",
          "evenements",
          "choix"
        ],
        "comments_before": {
          "encadre": "# L'image map est dans le HUD haut pour rester visible quand les events répondent.\n# Le texte de la salle contient uniquement l'intro : les réponses s'affichent en bas.",
          "zones": "# Définition des zones interactives pour la carte \"taverne\""
        },
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Parler au barman",
            "1": "# Examiner la salle",
            "2": "# Sortir (retour accueil)",
            "3": "# Lire l'avis (once: true, une seule fois par partie)\n# Une fois lu, la zone reste cliquable mais l'event ne se\n# redéclenche plus (once: true = max: 1 global à la partie).",
            "4": "# Toucher une bouteille (once: zone)\n# Même couleur dans le masque pour toutes les bouteilles,\n# mais chaque bouteille est une composante connexe distincte.\n# once: zone -> une seule fois par zone physique isolée.\n# once: zone-salle -> idem mais reset au changement de salle.\n# Le compteur s'incrémente indépendamment pour chaque bouteille.",
            "5": "# Félicitations (déclenché manuellement, once: salle)\n# N'apparaît que quand toutes les bouteilles ont été touchées.\n# si: évalué après l'incrément (@@declencher_event vient après .+.1)\n# once: salle empêche la répétition pendant la visite, et se réarme\n# à la suivante, comme les bouteilles.",
            "6": "# Interroger le barman (grise-si = inerte avant d'avoir parlé)\n# grise-si: la zone est visible et le tooltip s'affiche,\n# mais le clic ne fait rien tant que im_parle = 0.",
            "7": "# Survol-event pur (pas de clic, pas de highlight)\n# Déclenché au survol uniquement : aucun texte visible.\n# Utile pour mettre à jour des variables en arrière-plan : ici un\n# compteur de survols, affiché dans l'encadré du bas.",
            "8": "# Examiner le trophée (visible-si)\n# visible-si: faux -> zone totalement invisible et inerte.\n# Devient disponible seulement après avoir lu l'avis."
          }
        },
        "nested_seq_comments": {
          "zones.taverne.couleurs": {
            "0": "# Zone rouge : parler au barman (clic simple)",
            "1": "# Zone bleue foncée : examiner la salle (tooltip + clic)",
            "2": "# Zone verte : sortir (fin de démo)",
            "3": "# Zone jaune (avis de recherche (once: true) une seule fois par partie)",
            "4": "# Zone cyan : bouteilles (once: zone-salle), une fois par bouteille physique\n# Même couleur, même event, mais chaque bouteille est une composante\n# connexe distincte -> le compteur s'incrémente zone par zone",
            "5": "# Zone violet clair : barman (grise-si si on n'a pas encore parlé)\n# Le clic est inerte tant que im_parle = 0, mais le tooltip reste visible",
            "6": "# Zone violet foncé : survol-event pur (pas de clic, pas de highlight)\n# Déclenche un event silencieux au survol de cette zone de l'image",
            "7": "# Zone beige : trophée (visible-si : seulement si l'avis a été lu)\n# Si la condition est fausse : la zone est invisible et inerte"
          },
          "zones.taverne.couleurs[0]::inline": {
            "couleur-affichage": "\n\n          # Zone bleue foncée : examiner la salle (tooltip + clic)\n"
          },
          "zones.taverne.couleurs[1]::inline": {
            "couleur-affichage": "\n\n          # Zone verte : sortir (fin de démo)\n"
          },
          "zones.taverne.couleurs[2]::inline": {
            "couleur-affichage": "\n\n          # Zone jaune (avis de recherche (once: true) une seule fois par partie)\n"
          }
        },
        "events": {
          "im_parler_barman": {
            "key_order": [
              "id",
              "si",
              "texte",
              "faire"
            ],
            "comments_before": {
              "faire": "# Examiner la salle"
            },
            "string_styles": {
              "texte": "\"",
              "faire": "\""
            },
            "comment_list_before": "# Parler au barman"
          },
          "im_examiner": {
            "key_order": [
              "id",
              "si",
              "texte"
            ],
            "string_styles": {
              "texte": "|"
            },
            "comment_list_before": "# Examiner la salle"
          },
          "im_sortir": {
            "key_order": [
              "id",
              "si",
              "texte",
              "vers"
            ],
            "comments_before": {
              "vers": "# Lire l'avis (once: true, une seule fois par partie)\n# Une fois lu, la zone reste cliquable mais l'event ne se\n# redéclenche plus (once: true = max: 1 global à la partie)."
            },
            "string_styles": {
              "texte": "\""
            },
            "comment_list_before": "# Sortir (retour accueil)"
          },
          "im_lire_avis": {
            "key_order": [
              "id",
              "si",
              "once",
              "texte",
              "faire"
            ],
            "comments_before": {
              "texte": "# Toucher une bouteille (once: zone)\n# Même couleur dans le masque pour toutes les bouteilles,\n# mais chaque bouteille est une composante connexe distincte.\n# once: zone -> une seule fois par zone physique isolée.\n# once: zone-salle -> idem mais reset au changement de salle.\n# Le compteur s'incrémente indépendamment pour chaque bouteille."
            },
            "string_styles": {
              "texte": "|",
              "faire": "\""
            },
            "comment_list_before": "# Lire l'avis (once: true, une seule fois par partie)\n# Une fois lu, la zone reste cliquable mais l'event ne se\n# redéclenche plus (once: true = max: 1 global à la partie)."
          },
          "im_toucher_bouteille": {
            "key_order": [
              "id",
              "si",
              "once",
              "texte",
              "faire"
            ],
            "comments_before": {
              "texte": "# Félicitations (déclenché manuellement, once: salle)\n# N'apparaît que quand toutes les bouteilles ont été touchées.\n# si: évalué après l'incrément (@@declencher_event vient après .+.1)\n# once: salle empêche la répétition pendant la visite, et se réarme\n# à la suivante, comme les bouteilles."
            },
            "string_styles": {
              "texte": "\""
            },
            "comment_list_before": "# Toucher une bouteille (once: zone)\n# Même couleur dans le masque pour toutes les bouteilles,\n# mais chaque bouteille est une composante connexe distincte.\n# once: zone -> une seule fois par zone physique isolée.\n# once: zone-salle -> idem mais reset au changement de salle.\n# Le compteur s'incrémente indépendamment pour chaque bouteille."
          },
          "im_felicitations": {
            "key_order": [
              "id",
              "manuel",
              "si",
              "once",
              "texte"
            ],
            "comments_before": {
              "texte": "# Interroger le barman (grise-si = inerte avant d'avoir parlé)\n# grise-si: la zone est visible et le tooltip s'affiche,\n# mais le clic ne fait rien tant que im_parle = 0."
            },
            "string_styles": {
              "si": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Félicitations (déclenché manuellement, once: salle)\n# N'apparaît que quand toutes les bouteilles ont été touchées.\n# si: évalué après l'incrément (@@declencher_event vient après .+.1)\n# once: salle empêche la répétition pendant la visite, et se réarme\n# à la suivante, comme les bouteilles."
          },
          "im_interroger_barman": {
            "key_order": [
              "id",
              "si",
              "grise-si",
              "texte"
            ],
            "comments_before": {
              "texte": "# Survol-event pur (pas de clic, pas de highlight)\n# Déclenché au survol uniquement : aucun texte visible.\n# Utile pour mettre à jour des variables en arrière-plan : ici un\n# compteur de survols, affiché dans l'encadré du bas."
            },
            "string_styles": {
              "grise-si": "\"",
              "texte": "|"
            },
            "comment_list_before": "# Interroger le barman (grise-si = inerte avant d'avoir parlé)\n# grise-si: la zone est visible et le tooltip s'affiche,\n# mais le clic ne fait rien tant que im_parle = 0."
          },
          "im_hover_taverne": {
            "key_order": [
              "id",
              "si",
              "faire"
            ],
            "string_styles": {
              "faire": "\""
            },
            "comment_list_before": "# Survol-event pur (pas de clic, pas de highlight)\n# Déclenché au survol uniquement : aucun texte visible.\n# Utile pour mettre à jour des variables en arrière-plan : ici un\n# compteur de survols, affiché dans l'encadré du bas."
          },
          "im_examiner_trophee": {
            "key_order": [
              "id",
              "si",
              "visible-si",
              "texte"
            ],
            "string_styles": {
              "visible-si": "\"",
              "texte": "|"
            },
            "comment_list_before": "# Examiner le trophée (visible-si)\n# visible-si: faux -> zone totalement invisible et inerte.\n# Devient disponible seulement après avoir lu l'avis."
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "init": {
          "_init_0": {
            "key_order": [
              "var",
              "valeur"
            ]
          },
          "_init_1": {
            "key_order": [
              "var",
              "valeur"
            ]
          },
          "_init_2": {
            "key_order": [
              "var",
              "valeur"
            ]
          },
          "_init_3": {
            "key_order": [
              "var",
              "valeur"
            ]
          }
        }
      },
      "demo_declencheurs": {
        "key_order": [
          "id",
          "init",
          "texte",
          "encadre",
          "evenements",
          "choix",
          "declencheurs"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "declencheurs": {
            "0": "\n# TYPE : konami\n# Séquence prédéfinie ↑↑↓↓←→←→BA. Aucune config supplémentaire.\n# once: false -> se redéclenche à l'infini (valeur par défaut)",
            "1": "# TYPE : idle\n# Déclenché après N secondes sans aucune action du joueur.\n# Le compteur repart à zéro à chaque action (clic, touche, saisie).\n# once: salle -> se réarme à chaque visite de cette salle",
            "2": "# TYPE : commande\n# Phrase exacte tapée dans le champ de saisie.\n# Insensible à la casse et aux accents (NFD).\n# Intercepte la phrase avant qu'elle parte comme commande normale.",
            "3": "# TYPE : clicks\n# N clics sur un élément de l'interface.\n# cible accepte : hud, hud:haut, hud:bas, hud:gauche, hud:droite,\n#   hud:centre, hud:haut-gauche, hud:haut-droite,\n#   hud:bas-gauche, hud:bas-droite, titre, fond",
            "4": "# TYPE : commande (exemple simple, un seul mot)\n# Un mot seul suffit. Utile pour des commandes secrètes courtes\n# sans syntaxe verbe+cible. La saisie est consommée par le\n# déclencheur : la commande n'est pas interprétée par le moteur.\n# once: true -> ne fonctionne qu'une seule fois par partie.",
            "5": "# TYPE : combo (plusieurs étapes dans l'ordre)\n# Chaque étape peut être de n'importe quel type.\n# Ici : touche Haut, puis touche Bas, puis phrase \"open\" tapée.\n# Si une touche attendue est ratée -> retour à l'étape 0.\n# La phrase de la dernière étape est aussi consommée (non transmise)."
          }
        },
        "events": {
          "dec_konami_event": {
            "key_order": [
              "id",
              "manuel",
              "si",
              "texte",
              "faire"
            ],
            "string_styles": {
              "texte": "\"",
              "faire": "\""
            }
          },
          "dec_idle_event": {
            "key_order": [
              "id",
              "manuel",
              "si",
              "texte",
              "faire"
            ],
            "string_styles": {
              "texte": "\"",
              "faire": "\""
            }
          },
          "dec_commande_event": {
            "key_order": [
              "id",
              "manuel",
              "si",
              "texte",
              "faire"
            ],
            "string_styles": {
              "texte": "\"",
              "faire": "\""
            }
          },
          "dec_hud_event": {
            "key_order": [
              "id",
              "manuel",
              "si",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            }
          },
          "dec_phrase_event": {
            "key_order": [
              "id",
              "manuel",
              "si",
              "texte",
              "faire"
            ],
            "string_styles": {
              "texte": "\"",
              "faire": "\""
            }
          },
          "dec_combo_event": {
            "key_order": [
              "id",
              "manuel",
              "si",
              "texte",
              "faire"
            ],
            "string_styles": {
              "texte": "\""
            }
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "triggers": {
          "_act_0": {
            "key_order": [
              "trigger",
              "faire"
            ],
            "comment_list_before": "\n# TYPE : konami\n# Séquence prédéfinie ↑↑↓↓←→←→BA. Aucune config supplémentaire.\n# once: false -> se redéclenche à l'infini (valeur par défaut)"
          },
          "_act_1": {
            "key_order": [
              "trigger",
              "faire",
              "once"
            ],
            "comment_list_before": "# TYPE : idle\n# Déclenché après N secondes sans aucune action du joueur.\n# Le compteur repart à zéro à chaque action (clic, touche, saisie).\n# once: salle -> se réarme à chaque visite de cette salle"
          },
          "_act_2": {
            "key_order": [
              "trigger",
              "faire"
            ],
            "comment_list_before": "# TYPE : commande\n# Phrase exacte tapée dans le champ de saisie.\n# Insensible à la casse et aux accents (NFD).\n# Intercepte la phrase avant qu'elle parte comme commande normale."
          },
          "_act_3": {
            "key_order": [
              "trigger",
              "faire"
            ],
            "comment_list_before": "# TYPE : clicks\n# N clics sur un élément de l'interface.\n# cible accepte : hud, hud:haut, hud:bas, hud:gauche, hud:droite,\n#   hud:centre, hud:haut-gauche, hud:haut-droite,\n#   hud:bas-gauche, hud:bas-droite, titre, fond"
          },
          "_act_4": {
            "key_order": [
              "trigger",
              "faire",
              "once",
              "texte-ko"
            ],
            "string_styles": {
              "texte-ko": "\""
            },
            "comment_list_before": "# TYPE : commande (exemple simple, un seul mot)\n# Un mot seul suffit. Utile pour des commandes secrètes courtes\n# sans syntaxe verbe+cible. La saisie est consommée par le\n# déclencheur : la commande n'est pas interprétée par le moteur.\n# once: true -> ne fonctionne qu'une seule fois par partie."
          },
          "_act_5": {
            "key_order": [
              "trigger",
              "faire"
            ],
            "string_styles": {
              "faire": "\""
            },
            "nested_seq_comments": {
              "trigger.combo[0]::inline": {
                "sequence": "# étape 1 : appuyer sur Haut\n"
              },
              "trigger.combo[1]::inline": {
                "sequence": "# étape 2 : appuyer sur Bas\n"
              },
              "trigger.combo[2]::inline": {
                "commande": "# étape 3 : taper \"open\" dans le champ\n"
              }
            },
            "comment_list_before": "# TYPE : combo (plusieurs étapes dans l'ordre)\n# Chaque étape peut être de n'importe quel type.\n# Ici : touche Haut, puis touche Bas, puis phrase \"open\" tapée.\n# Si une touche attendue est ratée -> retour à l'étape 0.\n# La phrase de la dernière étape est aussi consommée (non transmise)."
          }
        },
        "init": {
          "_init_0": {
            "key_order": [
              "var",
              "valeur"
            ]
          },
          "_init_1": {
            "key_order": [
              "var",
              "valeur"
            ]
          },
          "_init_2": {
            "key_order": [
              "var",
              "valeur"
            ]
          },
          "_init_3": {
            "key_order": [
              "var",
              "valeur"
            ]
          },
          "_init_4": {
            "key_order": [
              "var",
              "valeur"
            ]
          }
        },
        "deep_inline_comments": {
          "declencheurs[5].trigger.combo[0]::inline": {
            "sequence": "# étape 1 : appuyer sur Haut\n"
          },
          "declencheurs[5].trigger.combo[1]::inline": {
            "sequence": "# étape 2 : appuyer sur Bas\n"
          },
          "declencheurs[5].trigger.combo[2]::inline": {
            "commande": "# étape 3 : taper \"open\" dans le champ\n"
          }
        }
      },
      "demo_boucles": {
        "key_order": [
          "id",
          "texte",
          "actions",
          "choix"
        ],
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers"
            ]
          }
        },
        "actions": {
          "_act_0": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire",
              "texte_ok",
              "raccourci",
              "afficher-raccourci"
            ]
          },
          "_act_1": {
            "key_order": [
              "verbe",
              "cible",
              "bouton",
              "faire"
            ]
          }
        },
        "comment_list_before": "# Montre :\n#   - repeter : un nombre de passages, indice à partir de 0.\n#   - pour_chaque : un alias et un indice locaux au corps.\n#   - stop / continue : quitter la boucle courante / sauter la suite du passage.\n#   - texte : mêmes boucles en lecture seule, sans effets sur les données.\n#   - raccourci : touches et manette sur une action locale.\n# Attention : 8 niveaux, 1000 passages et 20000 opérations par commande.\n#   - Les automatismes partagent le budget et attendent la fin de la boucle extérieure.\n#   - Texte / HUD : budget distinct renouvelé au rendu.\n#   - Une erreur conserve les effets précédents ; une redirection ou une fin arrête la boucle.\n#   - Les alias et indices disparaissent après la boucle ; un alias peut modifier son élément."
      },
      "demo_auto_refresh": {
        "key_order": [
          "id",
          "auto_refresh",
          "init",
          "evenements",
          "texte",
          "choix"
        ],
        "comments_before": {
          "auto_refresh": "# auto_refresh: true -> seule cette salle est re-rendue à chaque tick.\n# Le réglage global (auto_refresh_text:) est sur false : on active le\n# rafraîchissement là où il sert, plutôt que partout.",
          "init": "# init: remet le chrono à 0 à chaque visite de la salle.\n# Variable propre à cette démo : réutiliser \"compteur\" (le compteur de\n# visites de demo_variables) mélangerait les deux démonstrations.",
          "evenements": "# Le timer tick local incrémente secondes_refresh chaque seconde.\n# duree: 60 -> le timer expire après 60 s et renvoie vers cette salle\n# (ce qui remet aussi le chrono à 0 via init:)",
          "texte": "# Le texte ci-dessous est RE-RENDU à chaque tick.\n# v_secondes_refresh_v affiche toujours la valeur courante.\n# Les blocs texte-si: recalculent leur condition à chaque refresh."
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "timer",
              "duree",
              "vers",
              "tick"
            ]
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        },
        "init": {
          "_init_0": {
            "key_order": [
              "var",
              "valeur"
            ]
          }
        },
        "comment_list_before": "# demo_auto_refresh : TEXTE PRINCIPAL ACTUALISABLE\n#\n# PRINCIPE\n# Par défaut, le texte d'une salle est affiché une seule fois à\n# l'entrée. Avec auto_refresh_text, il est RE-RENDU à chaque tick\n# de timer : les variables sont réévaluées, les conditions inline\n# recalculées : sans que le joueur quitte la salle.\n#\n# ACTIVATION\n# Global (tout le scénario) :\n#   auto_refresh_text: true    -> en tête de fichier YAML\n#\n# Override par salle :\n#   auto_refresh: false        -> désactive pour cette salle\n#                                (même si le global est true)\n#   auto_refresh: true         -> active pour cette salle seulement\n#                                (même si le global est false)\n#   (absent)                   -> hérite du global\n#\n# DÉCLENCHEUR\n# Le texte est re-rendu à chaque tick de timer (local ou global), mais\n# aussi après chaque action du joueur qui le laisse dans la salle : clic\n# sur un bouton d'événement, prendre, examiner, action personnalisée…\n# Sans timer ni action, rien ne se rafraîchit : la fonction ne coûte rien.\n# Exemple d'usage sans timer : demo_variables, dont le texte suit le\n# compteur de sceaux après chaque clic.\n#\n# Ce qui est rafraîchi\n# Uniquement le texte d'entrée de la salle (clé texte:).\n# L'historique des événements déclenchés (boutons cliqués, messages\n# d'action) est conservé intact : seule la zone de texte principal\n# est remplacée.\n# Les compteurs once: ne sont pas incrémentés par le rafraîchissement.\n#\n# Contenu compatible\n# ✅ Variables numériques et textuelles : v_var_v, t_var_t\n# ✅ Conditions inline (texte-si:)\n# ✅ Gras, italique, markdown\n# ✅ Images [[url]], sons <<url>>, vidéos ((url))\n# ✅ Tooltips {{label:?contenu}}, éléments glissables {{label:>id}}\n# ✅ Tilemaps [[grid:NxM]]...[[/grid]]\n# ✅ Image maps (zones cliquables)\n#\n# Exemple minimal\n# auto_refresh_text: true\n# vars:\n#   secondes: 0\n# salles:\n#   - id: chrono\n#     evenements:\n#       - si: ~\n#         timer: tick\n#         duree: 999\n#         tick:\n#           - faire: \"secondes.+.1\"\n#     texte: \"Temps : v_secondes_v s\"\n#     choix:\n#       - bouton: Arrêter\n#         vers: fin"
      },
      "demo_fins": {
        "key_order": [
          "id",
          "texte",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_2": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_3": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\"",
              "bouton": "\""
            }
          },
          "_ch_4": {
            "key_order": [
              "commande",
              "vers",
              "si"
            ],
            "string_styles": {
              "commande": "\""
            }
          }
        }
      },
      "fin_victoire": {
        "key_order": [
          "id",
          "texte",
          "evenements"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Le record n'est remplacé que s'il est battu : une affectation sans\n# condition écraserait un meilleur score par un moins bon.",
            "1": "# fin: victoire -> déclenche la fin de partie (équivalent 999 en .txt).\n# faire: et fin: se combinent dans le même événement : les actions sont\n# exécutées d'abord, la partie se termine ensuite. Le succès et le\n# compteur persistant sont donc bien enregistrés.\n# fin_victoire_p survit à la fin de partie : c'est ce qui permet au\n# succès secret \"les deux faces\" de se déclencher au lancement suivant."
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\""
            },
            "comment_list_before": "# Le record n'est remplacé que s'il est battu : une affectation sans\n# condition écraserait un meilleur score par un moins bon."
          },
          "_ev_1": {
            "key_order": [
              "si",
              "faire",
              "fin",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            },
            "comment_list_before": "# fin: victoire -> déclenche la fin de partie (équivalent 999 en .txt).\n# faire: et fin: se combinent dans le même événement : les actions sont\n# exécutées d'abord, la partie se termine ensuite. Le succès et le\n# compteur persistant sont donc bien enregistrés.\n# fin_victoire_p survit à la fin de partie : c'est ce qui permet au\n# succès secret \"les deux faces\" de se déclencher au lancement suivant."
          }
        }
      },
      "fin_defaite": {
        "key_order": [
          "id",
          "texte",
          "evenements"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# fin: defaite -> équivalent 998 en .txt\n# Une défaite débloque un succès elle aussi."
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "fin",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            },
            "comment_list_before": "# fin: defaite -> équivalent 998 en .txt\n# Une défaite débloque un succès elle aussi."
          }
        }
      },
      "fin_auto": {
        "key_order": [
          "id",
          "texte",
          "evenements"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Fin conditionnelle : victoire si score > 20, défaite sinon\n# Attention : Les événements s'arrêtent au premier qui redirige ou termine.\n# Donc : mettre le cas \"victoire\" en premier avec sa condition,\n# puis le cas \"défaite\" sans condition (toujours vrai si on arrive là).\n# Chaque fin enregistre son compteur et son succès, comme les deux\n# portes de la salle \"Fins de partie\"."
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire"
            ],
            "string_styles": {
              "si": "\"",
              "faire": "\""
            },
            "comment_list_before": "# Fin conditionnelle : victoire si score > 20, défaite sinon\n# Attention : Les événements s'arrêtent au premier qui redirige ou termine.\n# Donc : mettre le cas \"victoire\" en premier avec sa condition,\n# puis le cas \"défaite\" sans condition (toujours vrai si on arrive là).\n# Chaque fin enregistre son compteur et son succès, comme les deux\n# portes de la salle \"Fins de partie\"."
          },
          "_ev_1": {
            "key_order": [
              "si",
              "faire",
              "fin",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "texte": "\""
            }
          },
          "_ev_2": {
            "key_order": [
              "si",
              "faire",
              "fin",
              "texte"
            ],
            "string_styles": {
              "texte": "\""
            }
          }
        }
      },
      "mini_combat::attaque": {
        "key_order": [
          "id",
          "texte",
          "evenements",
          "choix"
        ],
        "string_styles": {
          "texte": "|"
        },
        "seq_comments": {
          "evenements": {
            "0": "# Si l'ennemi est vaincu -> salle interne \"recompense\""
          },
          "choix": {
            "0": "# L'action de soustraction est dans la salle \"frappe\" (événement),\n# pas dans effet: évite que alias_reaction_meta[\"frapper\"] soit écrasé\n# si le même modèle est instancié plusieurs fois dans la même salle."
          }
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "vers",
              "texte"
            ],
            "string_styles": {
              "si": "\"",
              "texte": "\""
            },
            "comment_list_before": "# Si l'ennemi est vaincu -> salle interne \"recompense\""
          }
        },
        "choices": {
          "_ch_0": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            },
            "comment_list_before": "# L'action de soustraction est dans la salle \"frappe\" (événement),\n# pas dans effet: évite que alias_reaction_meta[\"frapper\"] soit écrasé\n# si le même modèle est instancié plusieurs fois dans la même salle."
          },
          "_ch_1": {
            "key_order": [
              "commande",
              "bouton",
              "vers",
              "si"
            ],
            "string_styles": {
              "bouton": "\""
            }
          }
        }
      },
      "mini_combat::frappe": {
        "key_order": [
          "id",
          "texte",
          "evenements"
        ],
        "string_styles": {
          "texte": "\""
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "texte",
              "vers"
            ],
            "comments_before": {
              "vers": "# Salle interne de récompense, puis sortie générique \"victoire\" :\n# c'est l'instance qui décide où elle mène (ici fin_modele, le combat\n# suivant ou la suite de la salle appelante)."
            },
            "string_styles": {
              "faire": "\"",
              "texte": "\""
            }
          }
        }
      },
      "mini_combat::recompense": {
        "key_order": [
          "id",
          "texte",
          "evenements"
        ],
        "string_styles": {
          "texte": "\""
        },
        "events": {
          "_ev_0": {
            "key_order": [
              "si",
              "faire",
              "vers"
            ]
          }
        },
        "comment_list_before": "# Salle interne de récompense, puis sortie générique \"victoire\" :\n# c'est l'instance qui décide où elle mène (ici fin_modele, le combat\n# suivant ou la suite de la salle appelante)."
      }
    }
  },
  "yaml_separators": [
    "global:interface",
    "global:triggers",
    "room:demo_auto_refresh"
  ]
}
