ORK Framework Logo - RPG Editor for Unity
  • ORK 4 BETA
  • Features
  • Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK

ORK 4 Documentation

  • Getting Started
    • Welcome
    • First Steps (Unity)
  • Features
    • The Status System
    • Schematics
    • Schematic Nodes
    • Dialogue Importer
    • Variables
    • Selected Data
  • Components
    • Battle Components
    • Combatant Components
    • Control Components
    • Cursor Prefab Components
    • Game Starters
    • Interactable Components
    • Move AI Components
    • Scene Setup Components
  • Editor
    • The ORK 4 Editor
    • Sections & Sub-Sections
    • Node Editor
    • Schematic Editor
    • Asset Sources
    • Unity Overlay Toolbar
  • Section: System
    • System Settings
    • Languages
    • Organizer Types
    • Game States & Conditions
    • General Condition Templates
    • Object Pools
    • Prefab Savers
    • Scene Connections
  • Section: Controls
    • Game Controls
    • Interaction Settings
    • Player Controls
    • Camera Controls
    • Input Keys
    • Control Maps
    • Camera Positions
    • Battle Camera
  • Section: Gameplay
    • Game Settings
    • Formulas
    • Difficulties
    • Shortcut Slots & Settings
    • Custom Settings & Global Custom Settings
    • Global Machines
    • Machine Templates
  • Section: Status
    • Status Values
    • Status Effects
    • Attack Modifiers
    • Defence Modifiers
    • Abilities & Ability Developments
    • Status Developments
    • Research Trees
    • Damage Types
    • Status Bonuses & Templates
    • Status Condition Templates
  • Section: Inventory
    • Inventory Settings
    • Inventory Containers
    • Currencies
    • Items
    • AI Rulesets
    • Crafting Recipes
    • Equipment Slots & Slot Set Templates
    • Equipment & Available Equipment Templates
    • Shops
    • Loot
  • Section: Combatants
    • Combatants
    • Combatant Groups
    • Class Slots
    • Classes
    • Factions & Faction Benefits
    • Animations
    • Move AIs
    • Formations
    • Action Combos
  • Section: Battles
    • Battle Systems
    • Turn Based Battles
    • Active Time Battles
    • Real Time Battles
    • Phase Battles
    • Battle Spots
    • Battle AIs
    • Battle Actions Settings
    • Special Commands Settings
    • Target Settings
    • Target Selection Templates
    • Battle Range Templates
    • Battle Grid Settings
    • Battle Grid Highlights
    • Battle Grid Cell Types
    • Battle Grid Formations
  • Section: Content
    • Content Types
    • Music
    • Sound Templates
    • Areas
    • Teleports
    • Quests & Quest Tasks
    • Logs & Log Texts
    • Object Contents
  • Section: UI
    • UI Settings
    • UI Layers
    • UI Layouts
    • UI Boxes
    • HUDs
    • Notifications
    • Cursor Settings
  • Section: Menus
    • Start Menu
    • Save Game Settings
    • Option Categories
    • Menu Screens
    • Menu Requirements
    • Battle Menus
    • Loot Dialogues
    • Item Collection
    • Combatant Selections
    • Quantity Selections
    • Shop Layouts
  • Section: Texts
    • Text Settings
    • Formatting Settings
    • Flying Texts
    • Use Cost Display
    • Status Preview Display
    • Bonus Display
    • Status Change Display
    • Console Settings & Console Types
    • Text Codes
  • Sections: Editor
    • Editor Settings
    • Backups
    • Variables
    • Plugins
  • Scripting
    • Access Handler
    • Custom Nodes
    • Custom Save Data
    • Custom Component Save Data

ORK 4 Tutorials

  • ORK 4 Unity Quickstart Tutorials (3D)
    • ORK 4 Unity Quickstart 3D
    • 01 Initial ORK Setup
    • 02 Player Setup
    • 03 Music & Scenes
    • 04 UI System Setup
    • 05 UI Boxes
    • 06 Flying Texts
    • 07 Status Values
    • 08 Status Effects
    • 09 First Abilities
    • 10 Fighter Setup
    • 11 First Enemies & Battle AI
    • 12 Battle System Setup
    • 13 Animating Battle Start and End
    • 14 Random Battles
    • 15 Animating Actions
    • 16 Player Battle HUD
    • 17 Elemental Attacks
    • 18 Animating More Actions
    • 19 Inventory & Loot
    • 20 Equipment
    • 21 Loot, Start Equipment & Viewers
    • 22 Magic Abilities
    • 23 Caster Setup
    • 24 More Enemies
    • 25 Start Menu & Save Games
    • 26 Menu Screens
    • 27 Interactions
    • 28 Item Collectors
    • Quickstart Extended
  • Battle Tutorials
    • Adding Active Time Battles
    • Adding Phase Battles
    • Hit & Miss
    • Critical Hits
    • Cast Time
    • Grid 01: Battle Grid Setup
    • Grid 02: Highlights
    • Grid 03: Cell Types
    • Grid 04: Move Command
    • Grid 05: Scene Grid Setup
    • Grid 06: Battle Ready
    • Grid 07 Use & Affect Ranges
    • Grid 08: Better Camera Control
  • Gameplay Tutorials
    • Multiple Interaction Controllers
    • Player Group Spawn & Follow
    • Spawn Hunting Enemies
    • Gamepad Controls (Unity Input System)
    • Combined Inputs
    • Quests 01: Menu Screen
    • Quests 02: Hunting
    • Quests 03: Collect Potion Materials
    • Quests 04: Collect Equipment Materials
    • Quests 05: Quest Mark HUDs
    • Crafting 01: Menu Screen
    • Crafting 02: Materials & Recipes
    • Crafting 03: Getting Materials
    • Crafting 04: Proficiency & Critical Outcome
    • Shop
    • Inventory Containers
  • Schematics Tutorials
    • UI Animation Schematics
    • Flying Text Animation Schematics
    • HUD Conditional Schematics
  • UI Tutorials
    • Unity UI: Initial Setup
    • Unity UI: Status Value UI Setup
    • Unity UI: Status Effect UI Setup
    • Unity UI: Shortcut UI Setup
    • Unity UI: Dragging Notification
    • Unity UI: Interaction HUD
    • Unity UI: Shortcut HUD
    • Unity UI: Turn Order HUD
    • Unity UI: Cast Time HUD
    • Unity UI: Quest HUD
    • Unity UI: Tooltip HUD
    • Unity UI: Move Range HUD

ORK 4 Extensions

  • Plugins
    • Save Game Compression Plugin
  • Schematic Nodes
    • Footstepper Nodes (Unity)
  • Scripts
    • A* Pathfinding Movement Component (Unity)
    • PolyNav 2D Movement Component (Unity)
    • Cinemachine Camera Control Type (Unity)
    • Rewired Input Key (Unity)
    • Unity Legacy Input Key (Unity)
    • Core GameKit Wrapper (Unity)
    • Pool Boss Wrapper (Unity)
View Categories
  • Guide
  • ORK 4
  • ORK 4 Tutorials
  • Gameplay Tutorials

Quests 02: Hunting

In this tutorial we’ll set up quests that task the player to hunt specific enemies.

This tutorial is part 2 of a mini-series covering quests. You can find the start of this series here.

The quests will be available at a guard NPC, opening the hunting quest board menu screen.

This tutorial is based on the ORK 4 Unity Quickstart 3D tutorials and uses the quest menu setup, but can be used in any project.

Content Type #

One of our quests will use a content type to hunt all combatants of a type instead of specific combatants. We’ll use the content type on all enemies that spawn in the dungeon.

Open the ORK editor, navigate to Content > Content Types and add a new content type.

  • Name
    Set to: Dungeon Enemies

Quests #

A quest serves as a container for one or multiple quest tasks. We’ll first set up a number of quests and add tasks to them afterwards.

Navigate to Content > Quests, we’ll change the Default quest and add additional quests.

0: Hunt Wasps #

This quest will send us hunting down a couple of wasps. We’ll just need to kill them, not report back that we did it.

  • Name
    Set to: Hunt Wasps

Base Settings #

  • Content Type
    Select: Hunting Quests
  • Repeatable
    Enable
    The quest can be started again after it was finished.

Quest Text #

  • Default Content
    Set to: Wasps have been plaguing the townsfolk.
    Kill them.

Rewards > Experience Rewards #

We’ll receive some experience for finishing the quest.

Click on Add Experience Reward.

  • Combatant Scope
    Select: Group
    All group members will get the experience.
  • Status Value
    Select: EXP
  • Reward Value
    Select: Value > Value
    Set the value to: 5

1: Hunt Snakes #

Copy the Hunt Wasps quest and change the following settings.

  • Name
    Set to: Hunt Snakes

Quest Text #

  • Default Content
    Set to: Snakes are scaring the children.
    Kill them.

Rewards > Experience Rewards #

  • Reward Value
    Set the value to: 8

Rewards > Item Rewards #

We’ll also receive a revive potion in addition to the experience.

Click on Add Item Reward.

  • Type
    Select: Item
  • Item
    Select: Cure Potion

2: Hunt in the Dungeon #

This quest will target combatants of a content type instead of a specific combatant.

We’ll also only make this quest available if the other 2 hunting quests are finished.

Copy the Hunt Snakes quest and change the following settings.

  • Name
    Set to: Hunt in the Dungeon

Base Settings > Availability Conditions #

The availability conditions are used to check if a quest should be available to the player.

We’ll check if the Hunt Wasps and Hunt Snakes quests are already finished.

  • Use Conditions
    Enable

Click on Add Condition.

  • Condition Type
    Select: Quest
  • Needed
    Select: All
    All added quest conditions must be valid.
    The other option is One, i.e. only one must be valid.

Click on Add Quest Condition.

  • Quest
    Select: Hunt Wasps
  • Check Status
    Select: Was Finished

Copy the quest condition and change the following setting:

  • Quest
    Select: Hunt Snakes

Quest Text #

  • Default Content
    Set to: The monsters in the dungeon are a nuisance to deal with.
    Kill them.

Rewards > Experience Rewards #

  • Initial Value
    Set to: 20

Rewards > Item Rewards #

We’ll change the reward to give us gold.

  • Type
    Select: Currency
  • Currency
    Select: Gold
  • Quantity
    Select: Value > Value
    Set the value to: 300

Quest Tasks #

Next, we’ll set up the tasks for our quests.

Navigate to Content > Quest Tasks, we’ll change the Default task and add additional tasks.

0: Kill Wasps #

This task will automatically activate (it’s the first and only task of it’s quest) and automatically finish when we killed 2 wasps – and also finish the quest.

  • Name
    Set to: Kill Wasps

Base Settings #

  • Quest
    Select: Hunt Wasps

Activate Requirements #

  • Auto Activate
    Enable
    The task will automatically activate if the requirements are met.
    Since we don’t add any requirements to the activate requirements, it’ll activate when the quest is added.

Finish Requirements #

  • Auto Finish
    Enable
    The task will automatically finish if all requirements are met.
  • Finish Quest
    Enable
    Finishing this task will also finish our quest (giving the quest’s rewards).

Click on Add Requirement to add a finish requirement for this task.

  • Requirement
    Select: Enemy Kill
  • Kill Type
    Select: Combatant
  • Combatant
    Select: Wasp
  • Quantity
    Set to: 2

1: Kill Snakes #

Copy the Kill Wasps task and change the following settings.

  • Name
    Set to: Kill Snakes

Base Settings #

  • Quest
    Select: Hunt Snakes

Finish Requirements > Requirement 0 #

  • Combatant
    Select: Snake
  • Quantity
    Set to: 3

2: Kill in the Dungeon #

Copy the Kill Snakes task and change the following settings.

  • Name
    Set to: Kill in the Dungeon

Base Settings #

  • Quest
    Select: Hunt in the Dungeon

Finish Requirements > Requirement 0 #

  • Kill Type
    Select: Content Type
  • Content Type
    Select: Dungeon Enemies
  • Quantity
    Set to: 10

Updating Combatants #

Before adding our quests to the scene, we’ll still need to update the dungeon enemies to use the content type we’ve set up.

Navigate to Combatants > Combatants and change the following settings for:

  • Rat
  • Spider
  • Skeleton
  • Slime

Base Settings #

  • Content Type
    Select: Dungeon Enemies

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.

Hunting Quest Board Schematic #

We’ll continue by setting up the NPC’s schematic that’ll open the quest board.

Open the schematic editor.

Settings #

We’ll block the player and camera control while the schematic is running, and add a speaker for dialogues.

  • Block Player Control
    Enable
  • Block Camera Control
    Enable

Speakers #

The NPC we’ll get our hunting quests from is a guard.

Click on Add Speaker.

  • Object (Speaker Object)
    Select: Machine Object
    I.e. the object the schematic is running on will be the guard.
  • Custom Object Content
    Enable
    We’ll define the content right here instead of using an object content set up in the ORK editor.
    In case you use NPCs that appear in multiple schematics, it’s best to use defined object content instead.
  • Name
    Set to: Guard

Check Quest Conditions #

Add Node > Game > Quest > Check Quest Conditions

We’ll check if any hunting quest (via content type) is available (i.e. not yet added and availability conditions valid).

Click on Add Quest Type Condition.

  • Content Type
    Select: Hunting Quests
  • Check Status
    Select: Available

Show Dialogue #

Add Node > Dialogue > Show Dialogue

We’ll display a dialogue in case the quest condition failed.

This node is connected to the Failed slot of the Check Quest Condition node.

  • Dialogue Type
    Select: Message
  • UI Box
    Select: Dialogue
  • Use Speaker
    Enable
  • Speaker
    Select: Speaker 0: Guard
  • Text (Message Content)
    Set to: Sorry, I’ve got nothing new for you.

Show Dialogue #

Copy the previous Show Dialogue node, we’ll now add a choice dialogue in case quests are available.

This node is connected to the Success slot of the Check Quest Condition node.

  • Dialogue Type
    Select: Choice
  • Text (Message Content)
    Set to: Hi there, good citizen!
    Interested in slaying some monsters for rewards?

Choice Settings #

Click on Add Choice.

  • Text (Choice 0)
    Set to: Sure

Click on Add Choice again.

  • Text (Choice 1)
    Set to: No thanks

Call Menu Screen #

Add Node > UI > Screen > Call Menu Screen

This node is used to open a menu screen – we’ll use it to open our Hunting Quest Board menu.

This node is connected to the Choice 0 slot of the previous Show Dialogue node.

  • Menu Screen
    Select: Hunting Quest Board
  • Wait
    Enable
    The schematic will continue after the menu was closed.

Show Dialogue #

Copy the first Show Dialogue node (i.e. the message, not the choice dialogue).

This node is connected to the Next slot of the Call Menu Screen node.

  • Text (Message Content)
    Set to: Good luck out there!

And that’s it for the schematic – save it, e.g. as GuardHuntingQuests.

Guard NPC #

Finally, it’s time to add the guard NPC that’ll give the player the hunting quests.

Open the World scene and add the prefab Knight_Male near the town’s entrance (on the town’s side). You can find the NPC prefabs in Assets/Tutorial Assets/Prefabs/NPCs/.

I’m also changing the rotation on the Y-axis by 180° to let the guard face south toward the path.

Machine (Schematic) #

All that’s left is to add the schematic to the NPC using a Machine (Schematic) component.

Use the component menu to add the component.

Start Settings #

We want to start the schematic by interacting with the NPC.

Click on Interact to add set the start types to Interact.

If you want, you can also add mouse interaction, click on Add Start Type.

  • Start Type
    Select: Interaction > Mouse Up As Button

In case you’ve followed the interaction HUD tutorial, you can also set the organizer type to use the correct HUD.

  • Organizer Type
    Select: Talk Interaction

We’ll use the Object Turn Settings to let the player and NPC face each other.

  • Turn Starting Object
    Enable
    This’ll turn the player (the one that started the interaction).
  • Turn Component Object
    Enable
    This’ll turn the object the component is on (i.e. the guard NPC).
  • Reset Rotation
    Enable

    This’ll let the component object return to it’s previous rotation, i.e. the guard will look back toward the path.

Asset Settings #

  • Schematic Asset
    Select: GuardHuntingQuests

And that’s it, save the changes you’ve made in the scene.

Testing #

Hit play and talk to the guard.

Start quests in the guard’s quest board.

And kill enough enemies to finish the quest.

The next part of the quest mini-series will add an item fetch quest.

Quest HUD (Optional) #

Add a Quest type HUD to give the player more information (beside the menu screen).

See this UI tutorial for a setup example.

Table of Contents
  • Content Type
  • Quests
    • 0: Hunt Wasps
      • Base Settings
      • Quest Text
      • Rewards > Experience Rewards
    • 1: Hunt Snakes
      • Quest Text
      • Rewards > Experience Rewards
      • Rewards > Item Rewards
    • 2: Hunt in the Dungeon
      • Base Settings > Availability Conditions
      • Quest Text
      • Rewards > Experience Rewards
      • Rewards > Item Rewards
  • Quest Tasks
    • 0: Kill Wasps
      • Base Settings
      • Activate Requirements
      • Finish Requirements
    • 1: Kill Snakes
      • Base Settings
      • Finish Requirements > Requirement 0
    • 2: Kill in the Dungeon
      • Base Settings
      • Finish Requirements > Requirement 0
  • Updating Combatants
    • Base Settings
  • Save Changes
  • Hunting Quest Board Schematic
    • Settings
      • Speakers
    • Check Quest Conditions
    • Show Dialogue
    • Show Dialogue
      • Choice Settings
    • Call Menu Screen
    • Show Dialogue
  • Guard NPC
    • Machine (Schematic)
      • Start Settings
      • Asset Settings
  • Testing
  • Quest HUD (Optional)
Sitemap
  • ORK 4 BETA
  • Features
  • Showcase
  • Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2 Hub
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK
  • Contact
  • Blog
  • Makinom
  • gamingislove.com
Categories
  • News (73)
  • ORK 2 (137)
    • Tutorial (137)
      • Game tutorial (50)
      • Gameplay (32)
      • How-to (55)
  • Release (156)
Search

© 2015 Gaming is Love e.U.

Disclosure: This site may contain affiliate links, which means I may receive a commission if you click a link and purchase something that I have recommended. While clicking these links won’t cost you any money, they will help me fund my development projects while recommending great assets!