Page 1 of 1

I don't want to use Faction,Domain,Urgency Functions. How could I generate the Quest directly by script?

Posted: Fri Dec 22, 2023 11:38 am
by Chanon
Hi
How could I generate the Quest directly by script?
I need to generate many quests at a time.
Already watch Procedural Quest Generation but I think it's not what I want.

Re: I don't want to use Faction,Domain,Urgency Functions. How could I generate the Quest directly by script?

Posted: Fri Dec 22, 2023 11:59 am
by Tony Li
Hi,

Quest Machine's procedural quest generator uses "smart objects" in the scene to know what the current world state is, and what types of quests it can generate.

If you instead want to generate new quests at runtime using your own C# code without all that, use the QuestBuilder class. It's similar to StringBuilder but for quests. There's more info on page 65 of the manual, and there's an example script is in Quest Machine ► Templates ► QuestBuilderExample.cs.