Quests: Rewarding!


With the little work I did yesterday, I knew I had more work to do on the quest manager. I decided to just jump right in and make some changes myself while also working with Gemini for larger changes. I started by updating my playerstat manager when dealing with experience. I added a new XP group "Player" for the player's level. And I updated my quest rewards, to denote the specific skill being rewarded experience.

Then I updated the quest completion function to add money. That was an easy one. Then I asked Gemini to make a small change to the function to iterate through the list of experience rewards and call another function (on my playerstats manager) to add the exp. It took a few tries to get it right.

Once that was good, I just copied it and made a few changes for my item rewards. Can't exactly test it, but it seems to be okay. Still a lot more to do though. Like, there's the ability to remove items from the player's inventory which I haven't done yet. Actually, I just decided to do that really quick while typing this up.

But, I still have to deal with more, like the quest tracking. That's a big one!

Leave a comment

Log in with itch.io to leave a comment.