Skip to content

4.5 Global Values

BDC_Patrick edited this page Dec 9, 2025 · 14 revisions

Global Value System

The Dialog backend comes with a Global Value System, giving you a bunch of Variables you can define by Name.

Variable Types

Supported Data Types
  • Integer
  • Integer64
  • Float (Double)
  • String
  • Name
  • Vector
  • Vector2D
  • IntPoint
  • Boolean
  • GameplayTag
  • Actor-Reference

Setter and Getter

Setter and Getter Overview

Each Variable comes with a Setter and a Getter Function.

You are able to set and get the values of your Globals within any Blueprint by calling the corresponding function of the Blueprint Function Libraries.


Configuration & Usage

Context Description
Project Settings

You can define and set default values in the project Settings. These are loaded on Subsystem Startup.

The System also offers a Function to Get and Set a whole Structure of all GlobalValues, useful for Saving to and Loading from a SaveGame Slot.

In Dialogues

GlobalValues are essential for handling Dialog Flow:

  • Branch Node: Compares GlobalValues against each other.
  • Event Node: Returns a specific collection of values to Event receivers.
  • Beacon Node: Creates or modifies GlobalValues during the Dialog Flow.
  • Messages: Using Message Commands, you can replace text with the actual value of a variable.

Int to Float and String?! (Conversion)

Visual Description
Convert Global Value

To convert a GlobalValue from type A into Type B, you can use the predefined Subsystem function:

ConvertGlobalValue

This function lets you convert all valid variables (except for Actor References) into another type.

This can also be done automatically by the Beacon Node inside a Dialog.

Documentation Index

I. What is the Dialog Backend?
II. Setting up
III. Binding UI
IV. The Subsystem
V. The Components
VI. Dispatchers
VII. Others

Demo available: Demo Page

Clone this wiki locally