One characters attacks

One of the characters and I'm going to be having involved in my game is going to be using stacking DOTs. His first attack is going to be a physical attack that does a little bit less damage than the standard attack but adds in the poison state. Very simple to figure out.

However the second special attack is a little bit difficult. It's an attack that adds a bleeding state similar to poison but it stacks up to three times.

Attack #1--> DMG + state#1

Attack #2--> DMG + state#2+ refresh state timer

Attack #3--> DMG + state#3+ refresh state timer

Attack #4--> DMG + Refresh state timer.

Another attack I thought of having for him, is one that attacks all the enemies but you can choose the order in which you attack. Purpose being that you can transfer the poison state that you've put on using the very first ability. But it only transfers the poison state to enemies you hit after that one.

Bat #1-->doesn't have poison state

Bat #2-->has poison state

Bat #3-->now has poison state

Bat#4-->now has poison state

Another ability and I thought of for this character would be a acid vial which would splash all enemies reducing their hitpoint generation as well as their armor values.

I'm just really having trouble figuring out how to do the bleeding DOT as well as the transferring poison state according to order.
Assuming that you're making this in Ace or MV, I believe you could do this using a complex damage formula (the damage formula box is fairly short in Ace so it's possible you would need to move it into the code instead).  My instinct is that you would iterate through each enemy, see if they have a state applied, and if so, do the "if state is already applied" effect, then write the basic damage formula.

For more specifics, you should ask your question in the appropriate 'Support' subforum, where people can help you with formulas, since GMD is for non-Maker-specific game design and theory rather than mechanical "how do I do this" questions.
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.


This is not a discussion of a game mechanic, but a "how do I do this" type question. So Support.
Thank you for that as this is only my second post ever I believe.

Also I will be using RPMV exclusively, as well as any plugins that I got with the pre-purchase on steam.

Original thread: https://forums.rpgmakerweb.com/threads/one-characters-attacks.49750/