Page 1 of 1

Lua variable conditions

Posted: Fri Feb 23, 2018 9:30 am
by chud575
Howdy,

So, I confirmed that I'm receiving the correct values for a variable when I access it during a dialogue,

I have two branches, with the following conditions:

Variable["DiceValue"] >= 10
Variable["DiceValue"] < 9

But the condition always 'fails' (<9) even when the value is greater than 10. What am I doing wrong here?

Re: Lua variable conditions

Posted: Fri Feb 23, 2018 9:45 am
by chud575
you know what - scratch that, I'm accessing the variable before it gets set. Not sure how thats happening yet but ok.

Re: Lua variable conditions

Posted: Fri Feb 23, 2018 11:02 am
by Tony Li
Could it be related to: Conversations Evaluate Conditions One Extra Level Ahead

Conversations need to evaluate an extra step ahead to accommodate certain continue button modes.

Re: Lua variable conditions

Posted: Fri Feb 23, 2018 12:56 pm
by chud575
pretty sure that's what it was yeah

Re: Lua variable conditions

Posted: Fri Feb 23, 2018 2:44 pm
by Tony Li
Hi,

Sorry, I know that often throws people. Unfortunately it has to work that way for those pesky continue button modes.