3 mixing potions. 1 key.

Odisholi

Villager
Member
Joined
Jun 2, 2013
Messages
8
Reaction score
0
Primarily Uses
Hey everyone! I'm in need of some help! I'm trying to make it where the player has to find 3 mixing potions, get to a mixing table, and make an exploding potion (to open a door, not for combat). However, I'm having a really hard time doing so. I thought I had it with the whole key items. Any info would greatly help me! Thanks everyone!

ex1.PNG
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
Select key items stores the ID of the selected item into the variable, so your conditional branch checks if the selected item is item#2 from the database - NOT if there are two items of it in inventory.


To check the number of anything in the inventory, you need to use the control variable command, then select game data:item "X" in inventory, and use that variable in the conditional branch.
 
Last edited by a moderator:

Odisholi

Villager
Member
Joined
Jun 2, 2013
Messages
8
Reaction score
0
Primarily Uses
Is there anyway you can show me an example of what your saying? I've hardly touched variable.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
Odisholi, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

Is there anyway you can show me an example of what your saying? I've hardly touched variable.
your event was almost correct, you just need to replace the select key item with the control variable command.


When you create the control variable command, the window has several options at the bottom, one of them game data - by default that reads "Map ID" when you select it.


However, after selecting you also have a button with three dots to the right of that "map ID". click on that button.


The rest should be obvious.


Variables are the most important part of the engine if you want to make more than the simplest quest. Learn how to use them.


If you follow the link in my signature, one of the tutorials I listed there is the "variables guide" - work through that please.
 

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
1) You can use the script call:

$game_party.item_number($data_items[n]) >= y

where 'n' is the location of the item in your database, and 'y' is the amount of that item that your party has.

2) You need to specify an amount of the particular item, otherwise, the event will turn out exploding potions even though you don't have enough mixing potions.

3) Be sure that that particular item is set to 'Key Item', otherwise it will not show up in your 'Select Key Item' menu.

4) Your event should contain something like this:

@> Select Key Item: [0001: Key Items]

@> Conditional Branch: Variable [0001: Key Items] == n

@> Conditional Branch: Script: $game_party.item_number($data_items[n]) >= 3

@> <insert your 'Change Item' command here>
 

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,868
Messages
1,017,066
Members
137,576
Latest member
SadaSoda
Top