Make a skill that makes other skills apply a state

Hello, I need some help over here.

I need a "Poison Blade" skill that makes the next attack or skill cause Poison.

Tried adding a state with an "Attack State: Poison 100%" trait but that only applies to basic attacks. I need the state to apply Poison to basic attacks AND skills.

Is this possible? Any help will be highly appreciated; thanks in advance lovely people.
So if I've got this right, you want this skill to add poison damage onto whatever whatever the next move made by the player is, right?

So for a hypothetical turn, it might look something like this.

Turn 1: Hector uses "Poison Blade". Poison damage will be added to next turn.
Turn 1: Enemy attacks, doing z damage.
Turn 2: Hector uses "Normal Attack". Normal attack does x damage, + y Poison Damage from last turn's "Poison blade".

Have I got that right?
No, it's not like that, sorry if I didn't explain myself well. Let me explain it with the Silence state.

Turn 1: Hector uses "Silence Blade". Next turn, Skills and basic attacks cause Silence state.
Turn 1: Enemy attacks, doing z damage.
Turn 2: Hector uses "Heavy Cut" Skill. Heavy Cut makes x damage, + applies Silence state from last turn's "Silence Blade".

I hope that makes it clearer.
OK, same principle, slightly different implementation. Potentially easier implementation.

It's been a long time since I worked with attack things, and it was never really my forte, but I'll look into it for you tomorrow. Hopefully by then somebody with more knowledge in the area will have gotten back to you with a viable solution, and my findings will be unnecessary and inelegant in comparison.
Any slightest help will be appreciated at this point so many thanks!
Make the weapon adds state to the wearer. Then put this in all of your skill formula boxes that you wish to be affected by Poison Blade (I bet you want to exclude the defensive/healing skill):

if (a.isStateAffected('stateIdA')) b.addState('stateIdB'); 0

stateIdA = PoisonBlade (state that you gain by wearing the blade)
stateIdB = Poison (the actual Poison state that damage the target)

Not tested yet tho, I hope I get the formula right.
If Im correct, author wants to achieve this:
Hero has 3 skills:
Skill A
Skill B
Skill C

Skill B and Skill C by default deals regular damage, but using skill A will trigger method that in next turn Skill B and Skill C besides of default damage also will apply a state to a target. Simple (I'm going shopping so in 1hour, maybe two, I can give you a nice solution, unless someone will be faster,because I gave clear explanation - judging by post title)

Edit:
@Zioxboy - give me more details about your skills so I can do some coding 🙂
Tried adding a state with an "Attack State: Poison 100%" trait but that only applies to basic attacks. I need the state to apply Poison to basic attacks AND skills.
If you want attack states to apply to physical attack skills like they do with the basic attack, you need to set those skills to apply the "Normal Attack" state (100% usually). If you do that, then your poisoned blade (as well as any other weapon or skill based effect that applies a state to targets) will work with every physical damage skill.
Make the weapon adds state to the wearer. Then put this in all of your skill formula boxes that you wish to be affected by Poison Blade (I bet you want to exclude the defensive/healing skill):

if (a.isStateAffected('stateIdA')) b.addState('stateIdB'); 0

stateIdA = PoisonBlade (state that you gain by wearing the blade)
stateIdB = Poison (the actual Poison state that damage the target)

Not tested yet tho, I hope I get the formula right.

I would go with this approach.
States are designed to be temporary, which is perfect for this use case.

I would combine it with formula effects plugin so that you can write the formula in the note tag


You could move the logic into a separate function defined in a plugin so that you don't need to duplicate the logic across every applicable skill.
Hello everyone, thank you very much for your responses!

If you want attack states to apply to physical attack skills like they do with the basic attack, you need to set those skills to apply the "Normal Attack" state (100% usually). If you do that, then your poisoned blade (as well as any other weapon or skill based effect that applies a state to targets) will work with every physical damage skill.

That worked wonders! That was exactly what I was trying to do, thank you very much! I didn't see that trait at all lol. What exactly does Add State: Normal Attack 100% do? Will this increase the damage of the skills ? I prefer not. Or just adds the Basic Attack states to skills?

Again, many thanks; problem solved.
It won't increase damage or otherwise modify anything beyond allowing the skill to apply weapon states if it connects with the target. It's basically just a way to say, "this skill is utilizing the weapon, and should apply the weapon's states" vs "this skill does not use the weapon, so the weapon's states don't matter"

Original thread: https://forums.rpgmakerweb.com/threads/make-a-skill-that-makes-other-skills-apply-a-state.125403/