How to check if player has 3 of a certain item then remove them and replace with another?

Teneven

Veteran
Veteran
Joined
Sep 16, 2014
Messages
32
Reaction score
0
First Language
English
Primarily Uses
I want to make a fairly simple alchemy table. Currently, I have a Show Choices (Small Health potion) then it checks if there's a Green Goo one in the inventory. I need it to check if there are three. Any ideas?
 
Last edited by a moderator:

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
Equate a variable with the number of that certain item you currently have in your inventory.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Control Variables lets you put the number of an item into the variable, then you can use it in a Conditional Branch
 

Murd

Apprentice
Member
Joined
Jan 28, 2015
Messages
112
Reaction score
7
First Language
Thai
Primarily Uses
If I remember correctly, inside conditional branch command you can set if the party has x of an item. For your case you can set Green Goo >=3.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
If I remember correctly, inside conditional branch command you can set if the party has x of an item. For your case you can set Green Goo >=3.
Wrong - the conditional branch alone can only check if the party has one or more (any number) of an item.

To check a specific number you need to combine a control variable command with the conditional branch on the variable, like said above.
 

Teneven

Veteran
Veteran
Joined
Sep 16, 2014
Messages
32
Reaction score
0
First Language
English
Primarily Uses
Solved. Alchemy Table is working pretty well. 
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top