2 of the same item required?

Hi guys,


I'm having a bit of a problem 🙁  I'm using a conditional branch conditional branch for when my character has collected a certain item.


My problem is that it only checks that I have the item and now how much of the item 🙁  


For example: My character is supposed to collect +10 wood for the fireplace and I put a conditional branch for wood, but it has nothing for how much wood is needed and it just takes what wood I have instead of the amount needed.


I  did a screen shot of the contents to give you a basic idea of what I might be doing wrong.


Please help me guys I've been struggling on this for about 2 hours now (and still continuing...) and it would really be nice if I could get an answer on how to do this. Is there something I'm missing or what?

Problem.jpg
Set a variable equal to the amount of wood in the inventory (in the variable settings, there is a Game Data option), then use the conditional to check the variable. For example, if wood > 10, do the thing.
Set a variable equal to the amount of wood in the inventory (in the variable settings, there is a Game Data option), then use the conditional to check the variable. For example, if wood > 10, do the thing.



I got too confused and decided to just use scripting. But thanks anyway for trying ^-^
Nothing confusing about it.


Control Variables: [select variable] > Game Data (click on ...) > Item X in inventory (select item from dropdown)


This will set the variable to the quantity of that item you have in inventory.  Then you just do a Conditional Branch to see if the variable is equal to or greater than 2.
Nothing confusing about it.


Control Variables: [select variable] > Game Data (click on ...) > Item X in inventory (select item from dropdown)


This will set the variable to the quantity of that item you have in inventory.  Then you just do a Conditional Branch to see if the variable is equal to or greater than 2.



wow Shaz 0.0 I love your scripts they are so useful I used 1 earlier
that's not a script. That's just event commands 🙂

Original thread: https://forums.rpgmakerweb.com/threads/2-of-the-same-item-required.71914/