MV Help with Yanfly plugins & (stackable?) damage-altering states.

Hello there.

I've been trying to use Yanfly's plugins to set up a few states for a game I'm working on. For the life of me, I can't seem to be able to figure them out by myself.

These are:

  • States that cause the target to deal +X% / -X% physical damage.
  • States that cause the target to deal +X% / -X% magical damage.
  • States that cause the target to deal +X% / -X% damage of a certain element.
  • States that cause the target to receive +X / -X flat physical damage.
  • States that cause the target to receive +X / -X flat magical damage.
  • States that cause the target to receive +X / -X flat damage of a certain element.
Additionally, it would be nice if these stacked, too. That part, I really don't get.

I could use a couple of examples to figure out how to do them myself.

Thanks in advance!
The stuff that alters damage being received is pretty typical. I'd suggest you check out Yanfly's Tips & Tricks, especially the Lightning Rod, for some examples of how to manipulate damage you're receiving.

The dealing damage stuff can be done very similarly, just using Custom Confirm effects.

So check those out, try something, and if it doesn't do what you want, post screenshots of the notetags and code you tried.
So I did something along the lines of this, and it seems to work as intended. Thank you, @ATT_Turan, your recommendations were exactly the kind of examples I needed.

1640855820721.png


I'll do some more digging around and experimenting with stuff from Yanfly's Tips & Tricks, too.

Does anything come to mind about how I could handle the states stacking?

I tried to do something like this:

1640856738640.png


...apparently, that's not how any of these things work at all, though. 😩
What exactly do you need to handle? If you have multiple states on, all of their code will be run, you don't need to do anything to make them stack.

And no, that's not how it works, you can't declare a variable in one chunk of code and then use it in another.
As @ATT_Turan said, the answer depends on what exactly you mean by "states stacking".
If you mean bonus damage (for example) of two different states stacking, you don't need to do anything extra. If you want a single state applied several times (able to be "stacked") and have different effects depending on the number of stacks, take a look at Yanfly's Tips & Tricks about Stockpile ( http://www.yanfly.moe/wiki/Stockpile_(MV_Plugin_Tips_&_Tricks) )

Original thread: https://forums.rpgmakerweb.com/threads/help-with-yanfly-plugins-stackable-damage-altering-states.143393/