Variable stopped working
-
- Posts: 28
- Joined: Sun May 28, 2023 8:30 pm
Variable stopped working
I was working on adding a rudimentary quest, and my previously working variable stopped triggering converation. The variable still shows up in the Variables of the Dialogue screen. But apparently it no longer wants to function. Any ideas?
- Attachments
-
- Clipboard03.png (178.48 KiB) Viewed 509 times
-
- Clipboard02.png (164.02 KiB) Viewed 509 times
-
- Clipboard01.png (473.12 KiB) Viewed 509 times
Re: Variable stopped working
Hi,
It might be the sync options in the Adventure Creator Bridge component.
When the conversation starts, "Copy AC Variables To Dialogue System" copies the values of all AC variables to the Dialogue System's Variable[] table. Presumably this includes "GumInLock".
When the conversation ends, "Copy Dialogue System to AC Variables" copies the values of the Dialogue System's Variable[] table back to AC, overwriting the current values of the AC variables.
During the conversation, you can change the Dialogue System version of GumInLock, and those changes will be copied back to the corresponding AC variable at the end of the conversation.
However, if you change the AC variable while the conversation is active, that change will get overwritten by the Dialogue System's Variable[] table when the conversation ends.
It might be the sync options in the Adventure Creator Bridge component.
When the conversation starts, "Copy AC Variables To Dialogue System" copies the values of all AC variables to the Dialogue System's Variable[] table. Presumably this includes "GumInLock".
When the conversation ends, "Copy Dialogue System to AC Variables" copies the values of the Dialogue System's Variable[] table back to AC, overwriting the current values of the AC variables.
During the conversation, you can change the Dialogue System version of GumInLock, and those changes will be copied back to the corresponding AC variable at the end of the conversation.
However, if you change the AC variable while the conversation is active, that change will get overwritten by the Dialogue System's Variable[] table when the conversation ends.
-
- Posts: 28
- Joined: Sun May 28, 2023 8:30 pm
Re: Variable stopped working
Ive been editing the To Dialogue System and Back to AC checks, but havent had any luck. Ive tried creating a new variable in the Dialogue Variables, and same issue.
Last edited by Eldritch_Horror on Sun Jun 11, 2023 2:54 pm, edited 1 time in total.
-
- Posts: 28
- Joined: Sun May 28, 2023 8:30 pm
Re: Variable stopped working
I have noticed that if I inspect the lock to change the variable to true, then talk to the character there's no lock dialogue option. If I exit the conversation, then start it again, then there lock dialogue option is there.
Re: Variable stopped working
Hi,
If you're watching the Dialogue System variable's value in the Dialogue Editor's Variables section, it won't change at runtime. That's the initial starting value. To see the current runtime value, use the Watches section (select Menu > Add All Runtime Variables) or the separate Variable Viewer window accessible through menu item Tools > Pixel Crushers > Dialogue System > Tools > Variable Viewer.
As a test, try UNticking the Adventure Creator Bridge component's Sync Settings > Back To AC > Copy Dialogue System To AC Variables checkbox. This will prevent the Dialogue System from overwriting AC's variable values.
If you're watching the Dialogue System variable's value in the Dialogue Editor's Variables section, it won't change at runtime. That's the initial starting value. To see the current runtime value, use the Watches section (select Menu > Add All Runtime Variables) or the separate Variable Viewer window accessible through menu item Tools > Pixel Crushers > Dialogue System > Tools > Variable Viewer.
As a test, try UNticking the Adventure Creator Bridge component's Sync Settings > Back To AC > Copy Dialogue System To AC Variables checkbox. This will prevent the Dialogue System from overwriting AC's variable values.