Page 1 of 1

Destroy Quest giver object when all quests are complete

Posted: Sat Oct 09, 2021 11:19 am
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

Re: Destroy Quest giver object when all quests are complete

Posted: Sat Oct 09, 2021 1:19 pm
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.

Re: Destroy Quest giver object when all quests are complete

Posted: Sat Oct 09, 2021 2:28 pm
by Mach4
That worked !

Thank you

Re: Destroy Quest giver object when all quests are complete

Posted: Sat Oct 09, 2021 2:56 pm
by Tony Li
Glad to help!