This video covers one of the many ways to go about creating a Quest System in Unity. The Quest System focuses on RPG-style quests and includes persisting the state of all quests between playthroughs.
I hope this helps and best of luck! 🙂
This video is sponsored by Unity. Check out what the 2022 LTS has to offer via the below link!
https://on.unity.com/3OyB0jd
► Quest System Playlist
All videos I've currently done for the Quest System series can be found in this playlist.
https://www.youtube.com/watch?v=UyTJLDGcT64&list=PL3viUl9h9k7-oX3Sz8VvyKCIN24XOXNZR
► TIMESTAMPS
0:00 Intro
1:22 Disclaimer and Prerequisite Knowledge
2:43 Sponsorship
3:48 Defining a Quest
5:17 How we'll Store Static (non-changing) Data
6:03 How Quest Steps will work
8:34 How we'll Manage State Data
9:31 How we'll Manage Quests
12:26 Running through an example
15:34 Project Overview
18:51 Storing Static (non-changing) Data
21:51 Creating a Quest Step
24:54 Managing State Data
27:46 Managing Quests
30:04 Creating Quest Management Events
32:38 Creating the Quest Point
37:12 Creating the Quest Icon Visual
40:07 Managing Quest Requirements
42:39 Starting a Quest
43:31 Advancing a Quest
45:10 Finishing a Quest
45:57 Ensure Multiple Steps are Working
46:24 How we'll Persist Quest State
49:48 Managing Quest Step State
54:31 Saving Quest Data
56:03 Loading Quest Data
59:03 Disabling Persistence for Development
59:35 Creating One More Quest
1:02:50 Outro
► GITHUB PROJECT
The '2-quest-system-implemented' branch contains the code by the end of this tutorial.
https://github.com/shapedbyrainstudios/quest-system
► RESOURCES
Save & Load System Tutorial Series (also covers Serialization/Deserialization)
https://www.youtube.com/watch?v=aUi9aijvpgs&list=PL3viUl9h9k7-tMGkSApPdu4hlUBagKial
Excellent video for an introduction into Unity Events
https://www.youtube.com/watch?v=gx0Lt4tCDE0
Excellent video on Unity's new Input System
https://www.youtube.com/watch?v=m5WsmlEOFiA&t
Unity Lifecycle methods documentation
https://docs.unity3d.com/Manual/ExecutionOrder.html
Excellent video on Unity Prefabs
https://www.youtube.com/watch?v=EH5epbeX3ek
Excellent video covering the basics of Scriptable Objects
https://www.youtube.com/watch?v=aPXvoWVabPY
► MUSIC
The backing music for this video is by Panda Beats.
Website: https://pandabeatsmusic.com/
YouTube Channel: https://www.youtube.com/@PandaBeatsMusic
Playlist:
https://www.youtube.com/watch?v=ejGmSTVKJrU&list=PLPEwKpHq_H2Csme-WtKAON7ha7E4bRhxx
► DISCORD
Come ask questions, suggest a video topic, or just hang out!
📱Discord ➔ https://discord.gg/99gcnaHFf9
► THE PATH OF REN
Wishlist The Path of Ren on Steam!
🎮 Steam (The Path of Ren) ➔ https://store.steampowered.com/app/1619920
► SOCIAL MEDIA LINKS
🐦 Twitter ➔ https://twitter.com/ShapedByRain
📷 Instagram ➔ https://instagram.com/ShapedByRainStudios
🕑 TikTok ➔ https://tiktok.com/@ShapedByRainStudios
🌐 Website ➔ https://ShapedByRainStudios.com
► SUPPORT
Any support is much appreciated! I may receive a commission on any assets purchased using the below Unity Asset Store link.
🛍️ Unity Asset Store Affiliate Link ➔ https://assetstore.unity.com/?aid=1100lrxm5
☕ Buy me a coffee! (Ko-fi) ➔ https://ko-fi.com/ShapedByRainStudios
#gamedev #quests #unity