if you are using evented enemies, that i as easy as giving the enemy an alternate page that drops the loot but is conditioned to that item.
if you want the effect in random enemies it will be much more difficult to achieve, probably by some troop event checing for the existance of that item.
Interesting. So something like using $gameParty.gainItem and then using conditions to increase the variable? Could you give an example of what that would look like?
I'm not really sure how the item would "drop" though, since it would put it directly into the inventory.
What about this notetag from
VisuStella Skills & States Core?
<JS Passive Condition>
condition = $gameParty.numItems($dataItems[123]) > 0;
</JS Passive Condition>
I.e. "the passive state is active iff the party has at more than 0 of Item ID 123 in the inventory".
I end up doing this, but by using a parallel event that checks every second instead. It's not super-efficient (since it's a parallel event running pretty much at all times) but it's good enough for now I guess. No need for a plugin I suppose.
Those passive conditions do not work when used on items (being held) in the Skills & States Core plugin, sadly.
Just to clarify a few of your points:
Even if it were, that's an MV plugin. You want to be careful when researching things because most MV plugins of any complexity aren't compatible with MZ. (some are, and some will work via Project FOSSIL, but then you need to be researching the individual plugin) As caethyril said, VisuStella makes equivalents to many of the Yanfly plugins.
That's not really the case. For one thing, you can absolutely call a common event from anyplace that executes code. For another, you can directly change variables anyplace that you're executing code, so a common event may not be necessary (depending on what else you have going on in there).
It is not an MV plugin.
Source
Probably should have said Visustella instead of Yanfly. I thought they were the same people.
You cannot call a common event from an item being held, as it only has a note tag. The effects only apply on use.
Thank you for the feedback