**Language / Langue :** [[fr:yaml:evenements-globaux|FR]] | **EN** ====== Global Events, Global Aliases and Global Actions (YAML) ====== ===== global_events: ===== Global events can run in every room. They are OFF by default unless ''state: ON'' is set. global_events: - id: visit_bonus state: OFF if: ~ do: "score.+.1" text: "Visit bonus: +1 score!" Enable or disable them from any event or choice: do: "event_global:visit_bonus:ON" do: "event_global:visit_bonus:OFF" do: "event_global:visit_bonus:SWITCH" Trigger directly: do: "trigger_event:visit_bonus" ===== Global Event Buttons ===== global_events: - id: call_help state: ON if: ~ button: "Call for help" visible-if: "v_hp_v < 5" do: "hp.+.3" text: "An ally appears! +3 HP." ===== global_aliases: ===== global_aliases: back: "Home" help: "Help" Any choice with ''command: back'' can reuse this label without repeating ''button:''. ===== global_actions: ===== global_actions: - verb: go target: all if: ~ do: "t_action_cible_ok_t" text_ko: "Unknown destination: t_action_cible_t." ===== global_events_order: ===== global_events_order: before Accepted values are ''before'' and ''after''. Default is ''after''.