Settings: - Generate quest on start - Max quests:

Announcements, support questions, and discussion for Quest Machine.
Post Reply
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Settings: - Generate quest on start - Max quests:

Post by GorkaGames »

For a better understanding on the logic behind the procedural quests:
What do exactly means and whats the difference in different cases for:
- Generate quest on start
- Max quests:

on the quest generator settings.

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

Re: Settings: - Generate quest on start - Max quests:

Post by Tony Li »

Hi,

On the Quest Generator Entity component:
  • Generate Quest On Start will generate one quest as soon as the component starts (e.g., as soon as the scene starts). It first waits 2 frames in case spawners need to spawn entities.
  • Max Quests To Generate will only allow the quest giver's list of quests to contain this many generated quests. Even if you keep calling QuestGeneratorEntity.GenerateQuest() or click the component's Generate Quest button in the inspector, it will not add more generated quests when it reaches this limit. The quest list can contain additional hand-written quests.
GorkaGames
Posts: 178
Joined: Fri Sep 21, 2018 8:38 pm

Re: Settings: - Generate quest on start - Max quests:

Post by GorkaGames »

Tony Li wrote: Fri Nov 23, 2018 12:04 pm Hi,

On the Quest Generator Entity component:
  • Generate Quest On Start will generate one quest as soon as the component starts (e.g., as soon as the scene starts). It first waits 2 frames in case spawners need to spawn entities.
  • Max Quests To Generate will only allow the quest giver's list of quests to contain this many generated quests. Even if you keep calling QuestGeneratorEntity.GenerateQuest() or click the component's Generate Quest button in the inspector, it will not add more generated quests when it reaches this limit. The quest list can contain additional hand-written quests.
ok, but in Generate Quest On Start will keep generating quests after the first attempt at the start? That's what i was referring to....

ok, but in Max Quests To Generate, if there are 5 quest generated, I understand that there are only 3 listed, but if you complete some of them, the other 2 will show up later?
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Settings: - Generate quest on start - Max quests:

Post by Tony Li »

GorkaGames wrote: Fri Nov 23, 2018 12:36 pmok, but in Generate Quest On Start will keep generating quests after the first attempt at the start? That's what i was referring to....
No. This checkbox will only try to generate one quest the first time the component starts.

If you call QuestGeneratorEntity.StartDialogueWithPlayer(), it will check if the NPC has a quest. If not, it will try to generate a quest before starting the dialogue.

You can manually tell the NPC to generate a quest by calling QuestGeneratorEntity.GenerateQuest(). If the list is not full, it will immediately generate a quest.
GorkaGames wrote: Fri Nov 23, 2018 12:36 pmok, but in Max Quests To Generate, if there are 5 quest generated, I understand that there are only 3 listed, but if you complete some of them, the other 2 will show up later?
No. Only the first 3 quests will be added to the list. If you try to generate more quests, they will not be generated.
Post Reply