Attacker stat-based states

Are there any plugins, tricks, or methods that allow an attacker's stats to be considered in a state formula?

For example, is it possible to create a Bleeding state that deals 2x a.atk - b.def each turn?

For solution, it doesn't matter whether it dynamically updates each turn. Its fine if it only uses the stats as they were at the moment of application.
Visu's skills and states core should be able to handle that. I don't know if they got an "Extended DoT" addition like yanfly did, but you don't really need it anyway. You can simply have the script in your state notetag.
That seems like it has all sorts of unexpected edge cases to consider, though I too would prefer a similar type of system. For example… what if two different battlers apply bleed to the same target at the same time? Whose attack parameter is used for the formula? Does it stack, and use both attack parameters? Does it use the largest? The most recent?

Would also be good to know if there are plugins other than Yanfly / VisuStella that implement this kind of mechanic, since otherwise I'll probably need to code it myself.
Would also be good to know if there are plugins other than Yanfly / VisuStella that implement this kind of mechanic, since otherwise I'll probably need to code it myself.
Turan has his Eval Tags plugin that does the same thing through the same methods VS would use, but without all the baggage that comes with using the battle core/skills and states core

For example… what if two different battlers apply bleed to the same target at the same time? Whose attack parameter is used for the formula? Does it stack, and use both attack parameters? Does it use the largest? The most recent?
depends on how they write the state. if they use the script option with the notetags, then they can just write how it should act. whether or not the state uses the origin's stats, uses a property to "snapshot" the stat value used and to allow stacking, etc. Visustella state origins overwrite when applied, but otherwise a property still tracks what it needs to.
I was aware of Turan's plugin… not really a fan of that approach though, to be honest. I don't like writing code in my note boxes.

If you want it to stack, I think a concept of "instancing" a state would be good to have, so each bleed is technically a unique state. There are plugins that do that for items, not sure if there are any that do it for states.

If you prefer it not to stack, taking a snapshot and storing it in a reasonable place is probably the logical thing to do if you prefer the first application to take priority (or something more complicated, like taking the largest of the two). Sounds like you don't need to do anything special if you prefer the last application to take priority, though taking a snapshot in that case would also be perfectly fine (and might make more sense too – why would bleed suddenly start dealing more damage if the attacker gets a buff after the state was applied?).
I was aware of Turan's plugin… not really a fan of that approach though, to be honest. I don't like writing code in my note boxes.

If you want it to stack, I think a concept of "instancing" a state would be good to have, so each bleed is technically a unique state. There are plugins that do that for items, not sure if there are any that do it for states.

If you prefer it not to stack, taking a snapshot and storing it in a reasonable place is probably the logical thing to do if you prefer the first application to take priority (or something more complicated, like taking the largest of the two). Sounds like you don't need to do anything special if you prefer the last application to take priority, though taking a snapshot in that case would also be perfectly fine (and might make more sense too – why would bleed suddenly start dealing more damage if the attacker gets a buff after the state was applied?).
Stacking custom damage packets could get complicated. Personally, I prefer clear rules of single application... such as most recent application clears out previous application. I get the stacking desire, but you can accomplish by having more state types and sources.

Alternately, you could code a bonus effect only when the state is "re-applied". Another option is to tie a start or end effect. I have a stun state that in ATB sends acting enemies back to start of cast timer on application, but also slows them by 50% for the duration of turns. It also prevents move skills from being used (on the battlegrid).

Original thread: https://forums.rpgmakerweb.com/threads/attacker-stat-based-states.183859/