Skip to content

Quests ~ Prerequisite System Redesign

Jacob Serfaty edited this page Apr 30, 2022 · 8 revisions

Overview

The current quest prerequisite system is extremely limiting. Right now, quest prerequisites only consist of stat requirements (health and level requirements) that are stored in the stat_req_t struct. We intend to change this system into a fully-fledged prerequisite system that also allows tasks and quests to be pre-requisites of other quests, which is a key feature in RPG games. Additionally, we intend to expand this system's use-cases. Right now, the stat requirement system isn't fully integrated into the Quest module. Even though all of the functions for initializing and checking stat requirements exist, they are never called. This redesign will involve reworking these checks to work with the new quest and task prerequisites and then implementing these checks into the quest completion checks (more info below). Lastly, this redesign will also expand the prerequisite system to work for achievements in addition to quests. By allowing achievements to have other achievements and quests as prerequisites separate from the overall quest tree, complex quest structures, such as quests involving non-linear achievements, become possible.

Clone this wiki locally