Lua variable conditions

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
chud575
Posts: 50
Joined: Thu May 11, 2017 10:57 am

Lua variable conditions

Post 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?
chud575
Posts: 50
Joined: Thu May 11, 2017 10:57 am

Re: Lua variable conditions

Post by chud575 »

you know what - scratch that, I'm accessing the variable before it gets set. Not sure how thats happening yet but ok.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Lua variable conditions

Post 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.
chud575
Posts: 50
Joined: Thu May 11, 2017 10:57 am

Re: Lua variable conditions

Post by chud575 »

pretty sure that's what it was yeah
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Lua variable conditions

Post by Tony Li »

Hi,

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