Enable items if key item exists

Not trying to make it too Zelda like, but I want to add features into my game that can revolve around key items.


With that said, my example are bombs and the bomb bag. I want to create a feature that restricts a consumable item, which are bombs, which requires a bomb bag to carry them. When the player has the bomb bag, the bombs can gather to a certain limit. The bombs are also consumable when used, and when hit 0 means the player is out of bombs until the player buys more bombs or finds more bombs. Same goes for max capacity. If the player has reach the max capacity, the player cant collect anymore bombs.


With all this said, will this be both a common event and variable event?
I would imagine you can do this with a common  parallel event with some nifty conditional branches and some use of variables.


I will try and invent a system right now!
I would imagine you can do this with a common  parallel event with some nifty conditional branches and some use of variables.


I will try and invent a system right now!

okies n.n I'm already testing my setup out to see how it goes. The object is to use less the same repetitive method as possible, and instead, slap it all in one per use. Just a matter of capacity count, and syncing bombs to bomb bag in order for it to be used
Are you using Vx ace or MV?


There is a script from yanfly for vx ace that allows this.


https://yanflychannel.wordpress.com/rmvxa/core-scripts/adjust-limits/ there is a max limit script call there.


for MV I believe this can be done with his Item Core.


(still tinkering)
I'm using MV.


The common event on using bomb is basic and easy. I'm having trouble syncing bomb bag and bombs though.
There's a note-tag in Yanfly's YEP Core to set a maximum number of items, <Max Item: X>


Dont even need the common event this way I don't think.
But what about syncing the bombs with bomb bag?
I am working on this right now, I think I figured it out!
Okies!
Ok so I made a key item called bomb bag, and made an item called bomb.


A common event that adds 1 to a variable called bomb amount.


under the item bomb, create notetag max item : 10 or what ever your amount is


have the item call the common event


So I have it set up so i can only hold a max of 10 bombs.


just need to figure out how not to be able to pick up bombs until you have the bag.

2016-07-03 (9).png

2016-07-03 (10).png

2016-07-03 (11).png
Yours is way different from mine lol I have 2 common events running off this. One is working, whereas the other isn't The other one is base on bomb count and trying to make it where it restricts the capacity.
Wait, does yanfly provide an item restriction throughout her mods? I just remembered that
I think you are making it more complicated than it really is.


I also did this for added sexiness.


Item core has item restriction script calls, which is what I used to do this.


And... her?... >.>


2016-07-03 (13).png
Maybe I am xD wouldn't += add more bombs?
oops that is supposed to go under the else branch 😛

2016-07-03 (14).png
There we go. I think that'll work.


And yea, restriction. Like with the bombs and bomb bag.


Wait... I think I already made that x.x because I'm making a call to bomb bag first whenever blowing something up, so it can call for bomb.


Dang it... there I go over thinking again x.x
Lol well im pretty sure this will work every time, and you can make several bomb bags that hold different amounts, and the same goes for wallets using this same technique 😀


I made a joke game where the goal was to get womans phone numbers.. so I used this to create a little black book lol
This is what I did

Screenshot (1).png
Not sure if that will work as you are changing items to add 1 bomb, not adding a variable to the item bomb to create more.


so that will only ever keep you at 1 bomb
The yellow indicates I take 1 bomb though. You saying I should switch that to a variable instead?


Because I'm basing it off an item.

Original thread: https://forums.rpgmakerweb.com/threads/enable-items-if-key-item-exists.64707/