Quest question

I have no idea what happened to the other thread I was working on.

Anyway, the problem is this - I go to a dungeon and some poor sap is behind bars. The door is locked (of course), and I have to go through an arduous process to get the key to open it. One of the conditions to getting the clue to find the key is to get him food and water. So I run to the nearest town and get the food and water. And of course, they are two separate items, and not just food and water together, so that makes things very complicated, because if I have either the food or water, I want him to immediately consume it and ask for the remaining (or both) if I do not have all the items before he gives me the clue. The question is, how can I "store" the value of the food and/or water if I have to run back and get one, the other, or both to satisfy the conditions?

Oh, and once I do open the iron door, the guy joins my party and that quest hoopla is over (I hard self-switches do that?), and I am at a loss about that, too.

Perhaps this idea is too ambitious for a complete newbie to the game, but I am excited!

jail.jpg
No the idea is not too complex - everything there is basic eventing.


However, you need to learn how to use switches and variables before you can make any quest event, because switches and variables are needed to store the process of the quest.


Follow the link in my signature and do the tutorials linked there, this will get you up to make your own games as fast as possible.
The sample game answers a lot of my questions. Oh, and a little search on Youtube helped, too. I also find it amazing what the default tileset could do. I also purchased the DS and DS+, so that should expand things dramatically, but as you said, one thing at a time.
So this is solved?
The quest is not solved, if that's what you mean, but I suppose there's not much else to say other than perhaps me showing the solution when it is done.
I guess the question is, does this topic need to stay open? Do you still need more help, and with what aspects? Or can it be closed up since you have something that will let you continue working?
Actually, I am making progress, and could use some guidance. I figured how to have the prisoner consume the food and drink as a single item and it moves on to the next part of the quest. However, where it got really complicated was I can also have food and drink as separate items, and the prisoner can consume one or the other, but must consume both before going on with the quest. So that makes it three items in total, right? So somehow, if the food or drink is missing, the quest will not go on. If the food and drink item is not there, the quest cannot go on.

So what I did was set three variables, one for food and water, one for food, and one for drink. Where I got confused was, in the conditional branch, do I nest the branches to check if the food and water are present? Also, can all three items use the same self-switch, or does the food and water item need its own self switch while the food and water as separate items need another switch? I am assuming no, because the end result is the food and drink is consumed regardless.

Maybe I am wrong here; thanks for your help.
Use switches. First they must have the food in their inventory, then they must NOT have the food in their inventory. At that point, turn on one switch. They must have the water in their inventory, then they must NOT have the water in their inventory. At that point, turn on another switch. At the next point in the quest, have the page conditioned by both switches.
I'm not making much sense about your recent post. First of all, is there a specific item that is needed as 'food' and 'drink' or can the player find any type of food or drink and give it to the prisoner? If It's 2 special 'quest items' it would be easier to just use 1 variable and have the food and the drink item add a +1 value to that variable when the prisoner consume it. Then it doesnt matter if the player brings the water alone, the food alone, or the food and water together since the quest will only be completed if the correct value of the variable is present.

I'm not sure what you meant with the items needing different self switches or switches though? All you need to do is to add a new event page for the prisoner and make sure that the items are lost.
Yes, I can understand where it can be confusing, because I am confused too. I am making a lot of uninformed assumptions, which is not a very intelligent thing to do. In fact, I was told to read to gain better understanding. I think that is the better way to go. I think this issue is resolved. Thanks one and all for the guidance.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/quest-question.21620/