How do I create a Primer skill?

I was wondering if there is a way to create a skill that gives a state like for example Major wound, and after the user can use a character say with life steal to steal more hp than without using it?

I have a Character who has life steal and I want him to be able to steal more hp when the user has a state on them. I also have another Character who I want to do more poison damage when an enemy is already position.

I've moved this thread to MV Support. Thank you.

You could check for the state in your damage formula.

Suppose you have a life steal skill that does 50 damage and you want it to do another 50 damage if the target has the Wound state, and the Wound state is state ID 12. In the damage formula for your life steal skill, you could do:
Code:
b.isStateAffected(12) ? 100 : 50
That code is shorthand for, "Does the target have state 12 on them? Then do 100 damage. Otherwise, do 50."

When writing damage formulas, you can use a to represent the user, b to represent the target, and v[x] to represent variable x (as in, when you set a variable from an event).

So, if instead, you wanted your life steal skill to do double damage when the user has the Hungry state, which we'll say is State 13, you could do:
Code:
a.isStateAffected(13) ? : 100 : 50

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-create-a-primer-skill.104382/