RPG Maker VX ace Trading more then one item!

Hello, I am Aleister.

I am working on a game for 2 furry YouTubers.
In the game, they is a shop keeper or trader selling stuff but the player can also select specil offer.
Doing this 3 choices come up and the player can choose what they want to buy using a certain item. In this case chocolates
(Which has the same healing values of a potion)

I want some help.
I do not know how to make something like a conditional branch that would only activate if the player has 10 or more chocolates in there invantory. Can you please help me.
If it requires a ruby if, else statement could you please show me how to do a if, else statement in ruby scrips.
Thank you.
this is done by control variable command.

first use a control variable to load the number of items (gamedata section), then use conditional branch to check if the number in the variable is high enough.
Tech Support is for when you cannot get the engine to run.

Moved to: RPGMaker VX Ace
Tech Support is for when you cannot get the engine to run.

Moved to: RPGMaker VX Ace

Sorry Kes
It has been a while 😅

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-vx-ace-trading-more-then-one-item.104282/