QTE Sequence Not Changing Variable
Posted: Sun May 28, 2023 1:49 pm
Howdy, having a small issue with QTEs and the Private Hart demo conversation doesn't have a QTE in it as mentioned in the documentation so I'm wondering if my formatting is just wrong because I don't have anything to compare it to.
I'm trying to set up a single QTE to work basically as an optional interjection. If the player presses it, it does a thing, if not, it continues as normal. I set up a variable for this called "swing," I've tried using it as a text variable and a number variable but both seem to have the same issue.
No matter what I have my initial value set as or my scripts are to change it, it seems that both pressing and missing the QTE default to a blank value for the variable. This doesn't seem to be reflected in the variable viewer either, the only way I know is that messing around with the variables and changing their values always has the same result: the dialogue nodes will act as if the value is empty.
Here's the setup I've mostly been testing with:
"swing" initial value = 0
First node's sequence:
QTE(0, 5, swing, 1);
Blank node with None() as its sequence
Left node:
Conditions:
Variable["swing"] == 1
Right node:
Conditions:
Variable["swing"] ~= 1
When I try this, both hitting and missing the QTE go to the node where the value of "swing" is not 1.
Here's another setup I tried to test this:
"swing" initial value = 0
First node's sequence:
QTE(0, 5, swing, 0);
Blank node with None() as its sequence
Left node:
Conditions:
Variable["swing"] == 0
Right node:
Conditions:
Variable["swing"] == 1
When I try this (or even switching the initial value) the conversation closes without going to either node (as if the value is neither 1 nor 0).
I have also tried both of these setups with a text variable, using "yes" and "no" or just "yes" and "~yes"
Wondering if you might have any insight into this one.
I'm trying to set up a single QTE to work basically as an optional interjection. If the player presses it, it does a thing, if not, it continues as normal. I set up a variable for this called "swing," I've tried using it as a text variable and a number variable but both seem to have the same issue.
No matter what I have my initial value set as or my scripts are to change it, it seems that both pressing and missing the QTE default to a blank value for the variable. This doesn't seem to be reflected in the variable viewer either, the only way I know is that messing around with the variables and changing their values always has the same result: the dialogue nodes will act as if the value is empty.
Here's the setup I've mostly been testing with:
"swing" initial value = 0
First node's sequence:
QTE(0, 5, swing, 1);
Blank node with None() as its sequence
Left node:
Conditions:
Variable["swing"] == 1
Right node:
Conditions:
Variable["swing"] ~= 1
When I try this, both hitting and missing the QTE go to the node where the value of "swing" is not 1.
Here's another setup I tried to test this:
"swing" initial value = 0
First node's sequence:
QTE(0, 5, swing, 0);
Blank node with None() as its sequence
Left node:
Conditions:
Variable["swing"] == 0
Right node:
Conditions:
Variable["swing"] == 1
When I try this (or even switching the initial value) the conversation closes without going to either node (as if the value is neither 1 nor 0).
I have also tried both of these setups with a text variable, using "yes" and "no" or just "yes" and "~yes"
Wondering if you might have any insight into this one.