Quest Generation (Domains)

Announcements, support questions, and discussion for Quest Machine.
dlevel
Posts: 183
Joined: Wed Nov 16, 2016 6:17 pm

Re: Quest Generation (Domains)

Post by dlevel »

It worked! Setting on 0 did the trick, scratch my previous message
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Generation (Domains)

Post by Tony Li »

I see you changed the script name. Any other changes?

Any errors in the Console?
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Generation (Domains)

Post by Tony Li »

If no errors, it's possible that the Quest Domains aren't present at the time that this method runs. You could add a debug line to print the Quest Domains that it found.
dlevel
Posts: 183
Joined: Wed Nov 16, 2016 6:17 pm

Re: Quest Generation (Domains)

Post by dlevel »

It worked, look my previous message :) thank you once again for your perfect support!
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Generation (Domains)

Post by Tony Li »

Awesome! Glad to help.
dlevel
Posts: 183
Joined: Wed Nov 16, 2016 6:17 pm

Re: Quest Generation (Domains)

Post by dlevel »

ok I have made it! I have my enemies as entities, and quests generated all over the place :D now as I'm using ORK, the only thing I can't understand on the Procedurally Generated Quests, is how to give rewards (EXP, Items) to the player. :S
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Generation (Domains)

Post by Tony Li »

Quest Machine's ORK integration ships with two reward systems: ORK Currency Reward System and ORK Exp Reward System. You can add one or both to a quest giver. When the quest giver generates a quest, it will use the reward systems to add reward actions to the quest based on the "point" value of the quest.

A quest's point value is based on the number of targets times their level. For example, say the quest is to Kill 3 Orcs. Say you've set the Orc EntityType's Level to 5. Then the quest's point value is 3 x 5 = 15.

If the quest giver has an ORK Exp Reward System, it will add an ORK Give Exp Quest Action, with the Exp value set to 15.

If the quest giver has an ORK Currency Reward System, it will add an ORK Give Currency Quest Action to give 15 of whatever currency you specify.

If you want to give items, you can make a copy of the ORKCurrencyRewardSystem script -- for example called ORKItemRewardSystem -- and customize it to add an ORK Item Quest Action instead. Some of the other integrations, particularly the ones for inventory systems such as Inventory Engine and Inventory Pro, have a similar reward system script with a list to which you can assign items and their point values. The script then chooses an item with an appropriate point value and adds the quest action to give it to the player.
dlevel
Posts: 183
Joined: Wed Nov 16, 2016 6:17 pm

Re: Quest Generation (Domains)

Post by dlevel »

Ok that is pretty straight forward. One more (last) thing, I'm trying to alter the Kill action so I have to kill more than 1 of the same enemy, normally I change the Required Value in the counter in completion conditions correct? It always shows 0/1 (HUD {#COUNTERNAME}/{#COUNTERGOAL} killed) whatever number I put there
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Generation (Domains)

Post by Tony Li »

Would you please post a screenshot of your Kill action with these sections expanded:
  • Task Text > Active
  • Completion Conditions
dlevel
Posts: 183
Joined: Wed Nov 16, 2016 6:17 pm

Re: Quest Generation (Domains)

Post by dlevel »

here you go:

https://ibb.co/7YXxTMN

whatever I have in required field, I kill one and the quest finishes too.
Post Reply