Skip to content

4.5 Global Values

BDC_Patrick edited this page Nov 11, 2025 · 14 revisions

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

Variable Types

The Types are as follow:
• Integer
• Integer64
• Float (Double)
• String
• Name
• Vector
• Vector2D
• IntPoint
• Boolean
• GameplayTag
• Actor-Reference

Setter and Getter

[Image of Setter and Getter]
Each Variable comes with a Setter and a Getter Function.
So you are able to set and get the values of your Globals within any Blueprint, by Getting the Dialog Backend Subsystem, and calling the corresponding function.

Values in Settings

You also can define and set default values in the project Settings, too.
Those will get loaded on Subsystem Startup.
The System also offers a Function to Get and Set a whole Structure of all Globalvalues, for Saving to and Loading from the Game Slot.

Globals in Dialogues

To handle Dialog Flow, you need to use the GlobalValues
The Branch uses Globalvalues to compare against each other.
The Event returns a specific collection of values to the Event receivers.
The Beacon is able to create/modify Globalvalues in Dialog Flow.

Also using the Message Commands, you can have these replaced by the actual value of your choice.

Int to Float and string?!

To convert a GlobalValue from type A into Type B, you can create a predefined function of the Subsystem.
Function Name: ConvertGlobalValue
This Function lets you convert all valid variables (except for Actor References) into another one.
This can also be done 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