Hey peeps,
I wanted to play around with the dialogue manager and made a simple conversation between the NPC and the player. The NPC would have different starting lines, depending on whether the player "accepted" a task or not.
Here´s the summary (image below):
After NPC says "how you doing" I set the quest state to unnasigned
When Player selects "great (take quest), I set the quest state to assigned
I then linked the 2nd NPC starting line "Thanks for accepting the q" with the condition quest == assigned
However even after the player accepts the quest, the nps uses the same lines that are called during the condition "quest unassigned". I tried it then again with bool variables, but that also doesn´t help.
I checked the conditions and scripts tab, to make sure the quest state was being changed or checked. So I´m a bit confused, what am I doing wrong?
NPCS starting lines don´t change via conditions
Re: NPCS starting lines don´t change via conditions
UPDATE:
Lines change now using altered quest conditions
But for some reason they don´t change when I use bools? Anyone any idea?
Lines change now using altered quest conditions
But for some reason they don´t change when I use bools? Anyone any idea?
Re: NPCS starting lines don´t change via conditions
Hi,
What are the values of your Conditions and Script fields? (In the conversation(s) that don't work.)
What are the values of your Conditions and Script fields? (In the conversation(s) that don't work.)
Re: NPCS starting lines don´t change via conditions
Hi Tony,
for some reason the bools work now, after I restarted unity (I´m not sure what happened).
The first conversation line had "Variable["Talked"] == false" and the other "Variable["Talked"] == true".
At the end of the first conversation, the players responde had the script "Variable["Talked"] = true",
But again, now it´s working again.
for some reason the bools work now, after I restarted unity (I´m not sure what happened).
The first conversation line had "Variable["Talked"] == false" and the other "Variable["Talked"] == true".
At the end of the first conversation, the players responde had the script "Variable["Talked"] = true",
But again, now it´s working again.
Re: NPCS starting lines don´t change via conditions
Hi,
I'm glad it's working. Perhaps the wrong database was assigned, or something like that. If you notice any new issues, just let me know.
I'm glad it's working. Perhaps the wrong database was assigned, or something like that. If you notice any new issues, just let me know.