Setting Active Quest Nodes to Inactive

Announcements, support questions, and discussion for Quest Machine.
Post Reply
User avatar
ds2497
Posts: 80
Joined: Wed Jun 14, 2023 2:13 am

Setting Active Quest Nodes to Inactive

Post by ds2497 »

Hi there,

I was wondering if Quest Machine has a feature to set all currently active nodes to inactive.

Scenario:
I have a quest flow that looks like this:
1. Help Mary build a house
2. Help Mary farm
...
N. Help Mary pick flowers

During the quest, if Mary dies (sorry, this example is a bit sad), the quest should activate the "Bury Mary" node and hide all quest hints that are related to helping Mary.

I know I can manually use SetQuestNodeState to set each node to inactive, but doing so for multiple nodes would be tedious. Is there a better way to handle this?

Thanks!
User avatar
Tony Li
Posts: 22871
Joined: Thu Jul 18, 2013 1:27 pm

Re: Setting Active Quest Nodes to Inactive

Post by Tony Li »

That is a great idea! That action doesn't exist yet, but I'll try to sneak it into QM version 2.2.51. If not, I'll provide a patch after 2.2.51 comes out next week.
Post Reply