Conversation does not match the variables? or conditions problem?
Posted: Wed Jun 15, 2022 6:16 am
Hi
In the database, I have created a variable named "HP"; and some conversations.
And I use a dialogue trigger to start a bark action, the bark source are these conversations, bark order with random.
Then I give these conversations two kinds of conditions:
1: 30 < Variable["HP"] and Variable["HP"] <= 50, I call these conversations "kind A"
2: Variable["HP"] <= 30, I call these conversations "kind B"
I set "HP" with a float value when a button click. At this point I expect, when I set 30<"HP"<50, "kind A" conversations will be trigger, and when "HP"<30, "kind B" will be trigger.
But in I test demo, there are all random……In the case that I have checked the database with debug message and the variables are correct.
In the database, I have created a variable named "HP"; and some conversations.
And I use a dialogue trigger to start a bark action, the bark source are these conversations, bark order with random.
Then I give these conversations two kinds of conditions:
1: 30 < Variable["HP"] and Variable["HP"] <= 50, I call these conversations "kind A"
2: Variable["HP"] <= 30, I call these conversations "kind B"
I set "HP" with a float value when a button click. At this point I expect, when I set 30<"HP"<50, "kind A" conversations will be trigger, and when "HP"<30, "kind B" will be trigger.
But in I test demo, there are all random……In the case that I have checked the database with debug message and the variables are correct.