Skip to content

About

Unity quest system: NPC quests, kill/collect/reach/talk objectives, quest chain, quest log and save/load

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quest System

A quest system for a first person game, made in Unity (URP). The test world is a small village with three people, a field with wolves, herbs to pick and a boss.

Note: Logic build mein AI ki help li gayi hai.

Controls

Key / mouse Action
W A S D Move
Shift Run
Space Jump
Left mouse button Shoot (to kill the wolves)
E Talk to a person / pick up a herb
J Open / close the quest log
F9 Delete the save and start a new game
Esc Close a window

Features

  • Quests are data: every quest is a QuestData ScriptableObject (text, objectives, who gives it, which quest must be done first).
  • Take it from a person, give it back to the same person. The mark above the head shows what he has for you: yellow ! new quest, green ? ready to hand in, grey ? you are still working on it.
  • Four kinds of objectives: kill, collect, reach a place and talk to someone. Enemies, items, places and NPCs only report what happened (GameEvents), and QuestManager moves the objectives forward, so the world does not know anything about quests.
  • Quest chain: Wolves in the Field -> Scout the Ridge -> The Alpha. A quest can only be taken when the one before it is completed. You can carry three quests at the same time.
  • Quest log (J) and a tracker on the right side of the screen, with short messages for every step.
  • Save and load: the quests and your position are saved to a json file whenever a quest changes, and loaded when the game starts.
  • Herbs can only be picked while a quest needs them and grow back after a while, wolves come back after a while, so you can never get stuck.

Run it

  1. Unity 6000.3.25f1 (Universal 3D / URP).
  2. Open Assets/Scenes/SampleScene.unity and press Play.

About

Unity quest system: NPC quests, kill/collect/reach/talk objectives, quest chain, quest log and save/load

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages