In this tutorial we’ll set up another quest to get an NPC some items.
This tutorial is part 4 of a mini-series covering quests. You can find the start of this series here.
This is a continuation of the crafting quest set up in part 3. This time, we’ll be tasked with collecting materials for equipment recipes. As before, you’ll need the crafting tutorial mini-series for this quest (at least part 1, 2 and 3).
This tutorial is based on the ORK 4 Unity Quickstart 3D tutorials and uses the previous quest tutorials and the crafting tutorials, but can be used in any project.
Quest #
We’ll start with setting up the quest.
The crafting NPC will give the player a second quest. Finishing the first quest will allow the player to start the second quest at the NPC, asking the player to fetch a sword and iron for equipment crafting (rewarding the player with equipment recipes).
Open the ORK editor and navigate to Content > Quests, we’ll add a new quest.
Collect Equipment Materials #
The second quest requires the player to collect a sword and iron for equipment recipes. The items will be defined in a quest task.
Add a new quest and change the following settings.
- Name
Set to: Collect Equipment Materials
Base Settings #
- Content Type
Select: Fetching Quests
Quest Text #
- Default Content
Set to: The crafting enthusiast now wants a sword and some iron in order to teach us about equipment crafting.
Rewards > Item Rewards #
Upon completion, the player will receive the remaining potion recipes – the regular Potion Recipe has already been given to the player by the crafting NPC before the quest.
We’ll add:
- high potion recipe
- magic potion recipe
- revive potion recipe
- cure potion recipe
Click on Add Item Reward.
- Type
Select: Crafting Recipe - Crafting Recipe
Select: Enhanced Sword Recipe
Coy Item Reward 0.
- Crafting Recipe
Select: Enhanced Staff Recipe
Coy Item Reward 1.
- Crafting Recipe
Select: Iron Armor Recipe
Quest Tasks #
Next, we’ll set up the quest tasks for the quest.
The quest will have 2 tasks – one for collecting the required items and one to return to the NPC and deliver the items.
Navigate to Content > Quest Tasks, we’ll add new tasks.
Find Equipment Materials #
The equipment tasks will use a similar setup as the potion tasks. The player has to collect 1 sword and 3 iron.
Add a new quest task.
- Name
Set to: Find Equipment Materials
Base Settings #
- Quest
Select: Collect Equipment Materials
Activate Requirements #
- Auto Activate
Enable
Finish Requirements #
- Auto Finish
Enable
Click on Add Requirement to add a finish requirement for this task.
- Requirement
Select: Item - Type
Select: Equipment - Equipment
Select: Sword - Quantity
Set to: 1 - Collect
Enable
The player must collect a new sword, a sword already in the inventory is not used.
Click on Add Requirement.
- Requirement
Select: Item - Type
Select: Item - Item
Select: Iron - Quantity
Set to: 3
Deliver Equipment Materials #
This task will automatically start when the Find Equipment Materials task finished. The task doesn’t automatically finish, that’ll be handled in the crafting NPC’s schematic.
Add a new task.
- Name
Set to: Deliver Equipment Materials
Base Settings #
- Quest
Select: Collect Equipment Materials
We’ll also update the quest text.
- Update Quest Text
Enable - Replace Text
Enable - Default Content (Quest Text)
Set to: We’ve found the required equipment materials, let’s return to the crafting enthusiast.
Activate Requirements #
We’ll automatically activate the task when the other task was finished.
- Auto Activate
Enable
Click on Add Requirement.
- Requirement
Select: Finished Task - Finished Task
Select: Find Equipment Materials
Finish Requirements #
- Finish Quest
Enable
Save Changes #
That’s all we need to set up in the editor.
Don’t forget to save your changes by clicking on Save Settings at the bottom of the editor.
Crafting NPC Schematic #
Open the schematic editor and open the CraftingNPC schematic again.
We’ll simply copy all nodes of the first quest and adjust them to using quest 2. Select all nodes of the first quest (from Quest Status Fork node onward) and copy them. If you’ve used a node group for the first quest, you’ll most likely also want to add the copied nodes into a separate node group.
The final schematic will look like this:
Make the following changes in the copied nodes.
Quest Status Fork #
This node is connected to the Finished slot of the first quest’s Quest Status Fork node.
- Quest
Select: Collect Equipment Materials
Show Dialogue #
This node is connected to the Not Added slot of the Quest Status Fork node.
- Text (Message Content)
Set to: Would you like to craft some equipment?
I can teach more about this if you bring me some ingredients.
Quest Choice #
- Quest
Select: Collect Equipment Materials
Add Quest #
- Quest
Select: Collect Equipment Materials
Show Dialogue #
This node is connected to the Success slot of the Add Quest node and the Active and Inactive slots of the Quest Status Fork node.
- Text (Message Content)
Set to: Bring me the materials and I’ll teach you how to craft equipment.
Check Quest Conditions #
- Quest Task
Select: Deliver Equipment Materials
Has In Inventory #
Item 0 #
- Type
Select: Equipment - Equipment
Select: Sword
Item 1 #
- Item
Select: Iron - Quantity
Set the value to: 3
Item 2 #
Click on Remove to remove the item.
Show Dialogue #
This is the dialogue connected to the Success slot of the Has In Inventory node.
- Text (Message Content)
Set to: You’ve got the materials?
Great!
<#>Here’s how you can craft or enhance equipment … mumble mumble mumble …
<#>And that’s all that is to it.
Oh, and you can keep the materials!
Change Task Status #
- Quest Task
Select: Deliver Equipment Materials
Save Changes #
And that’s it for the second crafting quest.
Click on Save Schematic to save the changes we’ve made to the CraftingNPC schematic.
Testing #
It’s time to test the second quest – hit play, finish the first quest and start the second quest.
Collect the needed items via the shop, fighting enemies or using the player combatant’s inspector.
The next part of the crafting mini-series will add quest mark HUDs.





