Variables of Objects in Inventory

Hi, I'd like to know how to check how many items the player has in their inventory using a conditional derivation, since I don't have any knowledge of JavaScript.

I mean, I want to verify that the player has a certain amount of an item in their inventory. Example: If the player has 10 flowers.
Welcome!

Why do you need a script call for that? It's right in Control Variables:

1702090767904.png


Then you do a Conditional Branch checking if that variable is >= 10.

If there's some reason you really need to do it via code, I Googled "rpg maker mv script call item quantity":
control variable : game data : item x in inventory
conditional branch variable >= number

EDIT: Ninja'd

Original thread: https://forums.rpgmakerweb.com/threads/variables-of-objects-in-inventory.163707/