Skip to content

Cannot retrieve or set Dialogic 2 internal variables #2496

Discussion options

You must be logged in to vote

Figured out the problem:

When using Dialogic 2's set_variable and get_variable functions within Godot, I was trying to do this -

Dialogic.VAR.set_variable("name of my variable", new_value)

However, by default Dialogic appends "Var" to the front of the String of the name of any variable defined within it via the Variables tab, so what ended up working was -

Dialogic.VAR.set_variable("Var name of my variable", new_value)

As for the rest, I had thought I needed to have my dice rolling function output something other than a null value because I didn't understand how signals worked yet. Dialogic.VAR.variable_was_set.emit('new value") worked just fine after those changes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Asura-Kaishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant