Passive effect from item.

vectorinox

Airport Luggage
Veteran
Joined
Jun 20, 2016
Messages
45
Reaction score
9
First Language
Singlish
Primarily Uses
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
 

kovak

Silverguard
Veteran
Joined
Apr 3, 2016
Messages
1,263
Reaction score
1,565
First Language
PT - EN
Primarily Uses
RMMV
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
 
Last edited by a moderator:

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
556
Reaction score
795
First Language
English
Primarily Uses
RMMV
It's very possible to do something like this; probably notetags are the best way.
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,452
First Language
Portuguese
Primarily Uses
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)
 
Last edited by a moderator:

vectorinox

Airport Luggage
Veteran
Joined
Jun 20, 2016
Messages
45
Reaction score
9
First Language
Singlish
Primarily Uses
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>
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,452
First Language
Portuguese
Primarily Uses
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.
 

vectorinox

Airport Luggage
Veteran
Joined
Jun 20, 2016
Messages
45
Reaction score
9
First Language
Singlish
Primarily Uses
Found it; Quasi parameter plus. Now  I can combine that with your passive states.


Thanks for solving this for me!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top