Page 1 of 1
Preventing quest from being offer-able indefinitely
Posted: Tue Jun 22, 2021 6:38 pm
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.
Re: Preventing quest from being offer-able indefinitely
Posted: Tue Jun 22, 2021 8:46 pm
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.
Re: Preventing quest from being offer-able indefinitely
Posted: Wed Jun 23, 2021 12:26 pm
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?
Re: Preventing quest from being offer-able indefinitely
Posted: Wed Jun 23, 2021 1:04 pm
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.
Re: Preventing quest from being offer-able indefinitely
Posted: Wed Jun 23, 2021 2:23 pm
by jlhacode
Perfectly explained, thanks again Tony!
Re: Preventing quest from being offer-able indefinitely
Posted: Wed Jun 23, 2021 3:01 pm
by Tony Li
Glad to help!