So I’m working on a quest system and I think I’m on the right track I have the ui part of it down however I’m not really sure how I’d track the progress of it.
I made a module script for my quests I’ll probably end up changing it, but this is what I currently have
local quests = {
["Test Quest 1"] = {
["Description"] = "Kill 10 enemies",
["Objective"] = "",
["Rewards"] = {
},
},
["Test Quest 2"] = {
["Description"] = "Get 100 gold",
["Objective"] = "",
["Rewards"] = {
},
},
["Test Quest 3"] = {
["Description"] = "Get to level 5",
["Objective"] = "",
["Rewards"] = {
},
},
}
return quests
And so my plan is whenever the player accepts a quest I’ll add it to their player data so that I can save their progress and what quests they have, but how would keep track of their progress and like whatever or like check when they finished it? Like how would I check if the player reaches level 5 or if the player gets 100 gold etc do I have to make a large chain of ifs? or… hopefully that makes sense