How to check item amount?

Hello again,

Here is what i want to do :

step1>allow player to enter a number via "Numeric Input Processing Command" to choose how much iron they want to smelt
step2>check if the number entered match the amount of the iron the player has (less or equal)
step3>if the amount match then "do something"

I don't know how to do step 2 ^^ all i know is the first step store the number entered on a variable, but i don't know how to compare it to amount the player has.
Set a second variable equal to the number of iron (Control Variables > Game Data), then compare the two.
Set a second variable equal to the number of iron (Control Variables > Game Data), then compare the two.
Isn't the item on "Game Data" only check if the item is present?
You're thinking of Conditional Branch, which has the option to check whether a particular item exists in the inventory. Control Variables can give you the number.
I forgot to set the condition to "Smaller or equal to" xD lmao, thanks for the help.
You're thinking of Conditional Branch, which has the option to check whether a particular item exists in the inventory. Control Variables can give you the number.

Sorry I forgot one step, how to subtract the amount entered? Using the "change item" command
I found the solution xD damn I speak so early (type)
Thread closed IgnoreMe
[pirate]IgnoreMe[/pirate]

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-item-amount.103460/