Page 1 of 1
Settings: - Generate quest on start - Max quests:
Posted: Fri Nov 23, 2018 11:45 am
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,
Re: Settings: - Generate quest on start - Max quests:
Posted: Fri Nov 23, 2018 12:04 pm
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.
Re: Settings: - Generate quest on start - Max quests:
Posted: Fri Nov 23, 2018 12:36 pm
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?
Re: Settings: - Generate quest on start - Max quests:
Posted: Fri Nov 23, 2018 2:06 pm
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.