Preventing quest from being offer-able indefinitely

Announcements, support questions, and discussion for Quest Machine.
Post Reply
jlhacode
Posts: 77
Joined: Fri Jul 03, 2020 6:23 am

Preventing quest from being offer-able indefinitely

Post by jlhacode »

Hi, how do we prevent a quest from ever being offer-able? There's quest that I want to give to a player via dialogue, and I don't want the quest indicator to ever show for it.

A hack solution I found was to add a 'Parents: All True' offer condition to the quest asset, but I don't feel right using it.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Preventing quest from being offer-able indefinitely

Post by Tony Li »

Hi,

Try setting the quest's state to Disabled.

Alternatively, you could write a very simple custom quest condition that just always returns false.
jlhacode
Posts: 77
Joined: Fri Jul 03, 2020 6:23 am

Re: Preventing quest from being offer-able indefinitely

Post by jlhacode »

Hi Tony,

Setting the quest to disabled does exactly what I want, thank you!

One more quick question. How do we utilize QuestIndicatorState.Interact and QuestIndicatorState.Talk?
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Preventing quest from being offer-able indefinitely

Post by Tony Li »

jlhacode wrote: Wed Jun 23, 2021 12:26 pmHow do we utilize QuestIndicatorState.Interact and QuestIndicatorState.Talk?
Set them manually using the Set Indicator quest action in a quest's Actions list, or by calling the QuestIndicatorManager's SetIndicatorState() method in C#.

The quest giver's QuestIndicatorManager has two dropdowns:
  • Has Quest To Offer State
  • Has Quest But Cannot Offer State
These are used automatically when the quest is in the relevant state, but otherwise Quest Machine assumes you'll use the methods above to set indicators.
jlhacode
Posts: 77
Joined: Fri Jul 03, 2020 6:23 am

Re: Preventing quest from being offer-able indefinitely

Post by jlhacode »

Perfectly explained, thanks again Tony!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Preventing quest from being offer-able indefinitely

Post by Tony Li »

Glad to help!
Post Reply