Destroy Quest giver object when all quests are complete

Announcements, support questions, and discussion for Quest Machine.
Post Reply
Mach4
Posts: 28
Joined: Thu Jul 22, 2021 4:16 pm

Destroy Quest giver object when all quests are complete

Post by Mach4 »

Hi Tony -

I am trying to destroy the quest giver once all quests have been complete. If it were only 1 quest, I can use the "On trigger exit" event using the "Trigger Event" Component. Just not sure how to do this with multiple quests.


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

Re: Destroy Quest giver object when all quests are complete

Post by Tony Li »

Hi Rick,

If the quests are written in the Quest Editor (not procedurally-generated) and are sequential (Do quest A, then do quest B, then do quest C), then you could configure the last quest to deactivate the quest giver. In the last quests' Success node > True state > Actions, add an Activate/Deactivate GameObject action, and assign the quest giver to it.
Mach4
Posts: 28
Joined: Thu Jul 22, 2021 4:16 pm

Re: Destroy Quest giver object when all quests are complete

Post by Mach4 »

That worked !

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

Re: Destroy Quest giver object when all quests are complete

Post by Tony Li »

Glad to help!
Post Reply