Quests with multiple variable conditions
Posted: Fri Oct 18, 2019 3:58 pm
Hi!
I have a handful of quests (about 15) that are active at the start of the game.
Each of these quests requires the player to reach a certain level in various player stats. (Each of these stats are currently stored in variables such as Knowledge, Strength, etc...)
For example: When the player reaches 3 Knowledge and 5 strength, they will "complete" the quest and receive a bonus (such as +10 Knowledge added), send an alert message to the player, and mark the quest complete in the journal.
What I am struggling with, is how to consistently check for these variable conditions so that the game knows when the quest is complete. I looked over the Condition Observer, but that seems to be pretty inefficient if I am constantly checking the conditions of 15+ items.
If there a better way to handle this situation? Maybe using quests for this type of thing is the wrong approach completely?
Hope this made sense. Thanks in advance!
I have a handful of quests (about 15) that are active at the start of the game.
Each of these quests requires the player to reach a certain level in various player stats. (Each of these stats are currently stored in variables such as Knowledge, Strength, etc...)
For example: When the player reaches 3 Knowledge and 5 strength, they will "complete" the quest and receive a bonus (such as +10 Knowledge added), send an alert message to the player, and mark the quest complete in the journal.
What I am struggling with, is how to consistently check for these variable conditions so that the game knows when the quest is complete. I looked over the Condition Observer, but that seems to be pretty inefficient if I am constantly checking the conditions of 15+ items.
If there a better way to handle this situation? Maybe using quests for this type of thing is the wrong approach completely?
Hope this made sense. Thanks in advance!