Quest Machine - Quest node state action is not called

Announcements, support questions, and discussion for Quest Machine.
Post Reply
Sadiq25
Posts: 2
Joined: Tue Aug 09, 2022 9:56 am

Quest Machine - Quest node state action is not called

Post by Sadiq25 »

Hi.

We are new to the Quest Machine and Dialgue System tools (we use integration). In the quest machine, when a quest becomes successfull, action is called and message is sent. But when a node becomes "true", the action is not called. The node "Talk to Ivan" indeed becomes true, because then the quest becomes successfull, and message Reward 2 is sent. But Reward 1 is never sent (the action on the quest node True state). See images for reference.
Attachments
Editor.png
Editor.png (19.07 KiB) Viewed 629 times
Quest_node.png
Quest_node.png (43.4 KiB) Viewed 629 times
Quest.png
Quest.png (40.38 KiB) Viewed 629 times
User avatar
Tony Li
Posts: 20778
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine - Quest node state action is not called

Post by Tony Li »

Hi,

Thanks for using Quest Machine and the Dialogue System!

How are you setting the "Talk to Ivan" node true? What are the node's completion conditions?

After completing the quest, please inspect the player's Quest Journal component with the Quest Editor window open. In the Quest Journal's Quests lists, select the quest. The Quest Editor window will show the status of the nodes. Is the "Talk to Ivan" node in the True state?
Sadiq25
Posts: 2
Joined: Tue Aug 09, 2022 9:56 am

Re: Quest Machine - Quest node state action is not called

Post by Sadiq25 »

Problem solved. In the dialog action, in Lua, I used both SetQuestState to successful and Sen message "talked to ivan". So the first one just set the quest to successful and skipped setting node to true. Solved.
User avatar
Tony Li
Posts: 20778
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine - Quest node state action is not called

Post by Tony Li »

Great! I'm glad you found a good solution.
Post Reply