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

Announcements, support questions, and discussion for Quest Machine.
Post Reply
Chanon
Posts: 1
Joined: Fri Dec 22, 2023 11:34 am

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

Post 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.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Post Reply