
The one part of this project I was scared of doing is working on the quests system.
Since quests are very situational I wasn't sure how to make simple scripts that would take care of everything.
However now I have updated the dialogue system I think I am only a few steps away from this.
I wanted to be able to decide what the npc would say depending on whatever items you have in your inventory.
Now it will check if you have the required items for the conversation.
If not, you will get different texts. π¬
Which you can see below.
I put the required items in an array, meaning I can decide how many different items are required.
And how many of each item.
Which I demonstrated by having "Cheese" and "Eggs" as separate items.
Coins and ramen are listed separately, since they are key items and not part of the inventory.
The "inventory" is just a dictionary.
I also put the whole dialogue resource into an array, so I can have characters with multiple different dialogues.
Although I haven't coded that part yet, it only checks 0 right now.
I just need to link this to the save system somehow and then it should be a good start for the quest system.
Later on I will also make dialogue dependent on story progression and whatever costume the player is wearing at the moment. π
Has the required items:

Lacks some or all of the required items:
