Any way to quickly put every node of a quest to True?

Announcements, support questions, and discussion for Quest Machine.
Post Reply
maxvsthegames
Posts: 20
Joined: Sun Apr 04, 2021 11:54 am

Any way to quickly put every node of a quest to True?

Post by maxvsthegames »

Hi!
I'm creating some debugs to help me test my game and I was looking for a way to quickly put all nodes of a quest to True.

Basically, my plan is to press a certain button to skip to a certain area of the game (to simulate that I've played the game until that point), but I would also need all of the Main Quests up to that point to be completed (since many dialogues condition are depending on the state of the main quests).

I know I can set the entire quest to success with SetQuestState, but most of my dialogue condition are looking at specific Node States and those are not updated when I use SetQuestState to "success".

I was wondering if there was a quicker way than to basically use SetQuestNodeState for every state of every quest I need to update for this debug.

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

Re: Any way to quickly put every node of a quest to True?

Post by Tony Li »

Hi,

No, there isn't. But I can add that to a list of features to add.

The main reason it isn't in there right now is because quests can branch. For example, you could have a quest to defeat an NPC in battle or befriend him. In this case, you wouldn't want to set the Defeat node and the Befriend node both true.
maxvsthegames
Posts: 20
Joined: Sun Apr 04, 2021 11:54 am

Re: Any way to quickly put every node of a quest to True?

Post by maxvsthegames »

Yeah, that makes sense.

Alright, I'll do it manually then!
Thanks!
Post Reply