[Solved] If statemens on Dialogue Entries
Posted: Fri Jul 13, 2018 1:36 pm
Hello,
I've been trying to use if statements in the Dialogue Entry's Text and Script sections with no success. What I'm trying to do is access a boolean variable called "Test" and choose an outcome based on wether it is true or false.
Here's my Dialogue Text:
I've also tried putting it on the Script's box, using the result to set a text variable, also with no success.
Is my lua syntax wrong?
I've been trying to use if statements in the Dialogue Entry's Text and Script sections with no success. What I'm trying to do is access a boolean variable called "Test" and choose an outcome based on wether it is true or false.
Here's my Dialogue Text:
Code: Select all
Test is true: [lua( if (Variable["Test"]==true) then "Yes" else "Nope" end )]
Is my lua syntax wrong?