How to set variables in Dialogic 2 using code #1390
Answered
by
creativecorvus3
creativecorvus3
asked this question in
Q&A
-
I am trying to set a variable's new value through code in the new Dialogic 2 and Godot 4 engine. In the past you would do... Dialogic.set_variable("name", new_text) How would you set variables in the new Dialogic through code? |
Beta Was this translation helpful? Give feedback.
Answered by
creativecorvus3
Jan 1, 2023
Replies: 1 comment
-
Okay I missed it. So ill just post the answer here for anyone looking for it. The answer was shown in the actual godot engine instead of the wiki page so... How to write new variable in code is to Dialogic.VAR.MyGroup.MySubGroup.MyVariable for me it would be |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
creativecorvus3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay I missed it. So ill just post the answer here for anyone looking for it. The answer was shown in the actual godot engine instead of the wiki page so...
How to write new variable in code is to
Dialogic.VAR.MyGroup.MySubGroup.MyVariable
for me it would be
Dialogic.VAR.Player.name = new_text