Yanfly Item Core Multiuse

Hello again!

Is there a plugin or someone to create a plugin that enables Yanfly's Item Core to use multiple of the same item at the same time?

His Item Discard plugin has the functionality of discarding multiple items at once, why doesn't his Item Core?

Thank you!
Like when you use a item you use x of that item like to use a fire stone, you use 2 up?

If that's the case all you need is Skill Core & Item Requirements by yanfly.
Set up the item limit using item requirements (ie make it where for the fire stone you need at least 2 fire stones).

And then with skill core, using the After Eval notetag, make 1 version of the item remove it self.
I think what he is looking for is more like if you need to heal a character 800 HP and you have items that only heal 200, he wants to be able to use 4 of them at once instead of 1 at a time, not make it so that item always uses multiple items when used... they want to be able to select how many to use at once like in a shop when buying/selling using the up/down keys. They can correct me if I'm wrong in this assumption.

If so though, I can't even think of how this would be done off the top of my head, but it is a very interesting idea if it is what I was thinking... might keep this in mind and see how it turns out, lol
Huh if you want what @Ahuramazda said then yeah you could do it with a js and skill core, with the before eval notetag
I'll take there example of healing with multiple items:
In the notetag you want this:
var retrieve = target.mhp -target.hp;
while ($gameParty.numItems(x) >(retrieve/y) && retrieve > 0) {
retrieve -= y;
}
if(retrieve > 0){
var use = Math.ceil(retrieve/y);
for(var i = 0; i < use; i++){
target.gainHp(y);
$gameParty.gainItem($dataItems[x], -1);
}
}
This will heal you all the way to your max health, depending on the amount of items you have.
Ie if you need to heal 800 hp, and a potion heals you for 150 hp, you'll need 6 potions.
If you have only 3, you'll only get 450.
Also this works for a single target item, and x is the item id and y is the amount of hp that this item will heal.

As to why item core doesn't have this feature 2 things.
1.Item core is not built to do that, it's made to give an alternative visual style and to do independent items. That's it.

2. Making an item consume multiple versions of itself, is a tall order. At minimum it'll be very limited, or locked behind notetaging (and thus not universal). Not to mention the complexity of knowing what exactly an item does, and then finding out based on that info what to do when it's time to use an item.
Like how would you go about determining who gets healed when you don't have enough items, like an all potion that heals everyone for 200 hp, but you only have 5.
But Actor A needs 1000 hp healed(5 potions), Actor B needs 800 hp healed (4 potions), Actor C needs 750 hp healed(4 potion) & Actor D needs 1100 hp healed(6).
Does the potion treat a single use as it heals everyone in the group for 1 and thus everyone gets up to a 1000 hp healed. 9r do you need the number of potions to be greater than or equal to amount of people in the party. Ie to heal the group 1 time for 200 hp you need 4 all potions.

Discarding items in bulk is way easier than that, as all you need to know is 2 things 1 what's the item and 2 the amount of items you have.
Yeah, I knew it was gonna be complicated... I think making a common event for something kinda like Dragon Quest's "Heal All" command would be easier to set up. Using a bunch of conditional branches checking HP vs item heal amounts to make it as efficient as possible could maybe be an option that could be looked into.

Many ways to get around the problem, but no true solution... and I agree with your 2 reasons as to why it wasn't in the plugin by default, but couldn't word it as well myself.
Sheesh. I wasn't expecting it to be so complicated. 👋

I am actually confused as what to do to make this happen now, if its even possible.

Edit: To be honest, the only reason I have Item Core is for Item Discard. But this problem pretty much showed up once I had it. Like I would return to the screen after using the item rather than going back to the over world. 😩

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-item-core-multiuse.104579/