MZ How to set up a gather quest?

Hey, so this a truly basic question, but I've never had to implement this in over a year of using RMMZ, so I've actually no idea how set it up.

How do I set up a quest where the player needs to have so much of a certain item?
For example, say I had Wolf enemies that could drop Wolf Pelts. Then I had an NPC who asked 'Give me 10 Wolf Pelts and I'll give you a reward.'

How would I set that up? Like, how will the game check to see if there are 10 or more Wolf Pelts in the inventory? Conditional branches, variables?

It's such a common feature in rpgs, but I can't seem to get it to work.
the answer is the control variable command.

you give a variable the current number of whatever item you wish to check in inventory, and then use conditional branch to see if the number is high enough.

(item in inventury is one of the many, many game data options in control variable.
you know, the line that defaults to map id but contains much more functions than that.
the answer is the control variable command.

you give a variable the current number of whatever item you wish to check in inventory, and then use conditional branch to see if the number is high enough.

(item in inventury is one of the many, many game data options in control variable.
you know, the line that defaults to map id but contains much more functions than that.
Got it, thanks. I'll play around with it and see what possibilities there are.
I haven't looked at this for a long time and I would probably do something different now, but maybe this short tutorial will help a bit. I think it might cover the basic concepts of what you want to do.



Good luck!
A tip for keeping things organised, as I assume your going to have a few more quests that require X.

You can use 1 Variable for all these quests that require X amount of items.

You don't need to make (v1)Quest 1 Item,(v2)Quest 2 Item, (v3)Quest 3 Item, etc.

Just set so that the game checks X item and set it to Variable ID X "Item checker" while handing in a quest.

and then after the check is done, set the "Item Checker" variable to 0 after each interaction.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-up-a-gather-quest.179652/