Conditional branch to require multiple items and spend it

I want to add in something like
If ruby > 3
Then -3 Ruby
Change parameter +6atk
Else 
Show message Not enough rubys

ANy idea how I can go about doing this?


help.jpg
you need two commands - first a control variable to load the number of items into a variable (that is done by using the game data option), then a conditional branch checking the variable value.


I suggest you follow the link to the starting point in my signature and work through those tutorials to learn the basics, especially the variables guide tutorial game I listed there.
Control Variables > Game Data > Item will put the quantity of an item into a variable, then you use the variable on conditional branch.


Look son. Ninjas! Ninjas everywhere! 😛

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-to-require-multiple-items-and-spend-it.73757/