Passive effect from item.

Okay... this is a bit wierd....


We already have plugins that allow parameter control or certain effect to be active when a condition is met for state, skill, and equipment. I'm talking about:

  • Yanfly equip core
  • Moogle_X_passive_skill
  • Yanfly auto-passive state
  • Victor passive state

But I can't find any plugin that allow passive effect from item.


I just want to make something like an Artifact that gives +1 attack to all party members just by having it in the inventory (no need to be equipped). The important part is that unlike skill, equipment, or state, this allow the effect to stack. So having 10 Artifacts will add +10 attack to all party members, and if you lose/sell it, you also lose the bonus.


Or maybe some conditional effect like this: Untitled-1.jpg
Cuz items are consumables or key quest stuff.
Passive things only works if it's somehow equiped to the actor.


Edit: it's just a guess
It's very possible to do something like this; probably notetags are the best way.
You just trying the wrong approach, at last with my passive states plugin.


Instead of placing the notetags on the item, place the notetags on the actors, and use a script condition to check if the party has the item.


For example:


<custom passive state: X>
if (a.hpRate() <= 0.5 && $gameParty.hasItem($dataItems[Y])) {
  result = true;
} else {
  result = false;
}
</custom passive state>


X is the state Id, Y is the Item Id.


The condition is a script code so you can add whatever you want on it. The notetag should be added on the actors, not on the item or the state.


Notice that this will apply a State. So, for flat bonuses you will need to use that together with another plugin that allows you to add flat bonus to states (one that allows you to use custom formulas to define the ammount of the bonus, this way you can use the item number for that)
Thanks! That's an excellent workaround!


So instead of placing notetag on item, I'll just place the notetag somewhere else to check for $gameParty.numItems($dataItems[id]).


As for the flat bonuses on state.... well there is no plugin yet that allow for custom parameter on state.


The closest I can find is Yanfly_itemcore. that allow something like:


<custom parameter>


atk = $gameParty.numItems($dataItems[id])


<\custom parameter>


But doing this cause maximum stack call size error:


<custom parameter>


if ($gameActors.actor(actorId).states().contains($dataStates[n])) {atk = $gameParty.numItems($dataItems[id])} else {};


<\custom parameter>
Then try another plugin to add custom parameters on states, There are other plugins made by other authors that allows you to assign flat bonus on states. I just don't remember who made it or it's name, but i'm 100% sure that there is a plugin that allows that here on the forum.
Found it; Quasi parameter plus. Now  I can combine that with your passive states.


Thanks for solving this for me!

Original thread: https://forums.rpgmakerweb.com/threads/passive-effect-from-item.66246/