Skip to content

how can i use AutoLoad variables in Dialogic? #1453

Answered by zaknafean
seed071608 asked this question in Q&A
Discussion options

You must be logged in to vote

So what you need to do is use dialogic definitions to bridge between GDScript and Dialogic. This is thankfully pretty simple, but is a multistep process, so here it goes.

Step 1 Create the definition in Dialogic. You can name this whatever you want

Feel free to give it a default value for testing

Step 2 Set the definition in GDScript. This is pretty straight forward.

Dialogic.set_variable('active-item-count', '5 Bananas')

The link has been made! Now how do you use it?

Step 3 Use the definition in Dialogic
Very simple again just use brackets!

And it will look a little something like this

You can change the value of a definition with the Set Value Event

And you can get the current val…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@seed071608
Comment options

Answer selected by Jowan-Spooner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants