Life Steal state? (leech seed)

Is there a script that allows a state that absorbs an enemy's health over time rather than per-attack?
Like you inflict the state on your target and every time it takes damage from the state in question, the inflicter receives health?
Kinda like leech seed in pokemon?
Check Yanfly's state core. But I don't think it will be easy to implement, since you will have to somehow define who is the source of the state to receive the stolen life. Maybe, you will also need Yanfly's skill core...

But it's completely possible to create this skill.
Is this what you are looking for? Yanfly did create one.
@JamesRyan unfortunately that's for MV. Never seen a script for VX for this.
Oh sorry i have always been thinking of MV. Should have paid more attention :blink: You may go check Yanfly's RGSS3 scripts here: https://yanflychannel.wordpress.com/category/rpg-maker/rpg-maker-vx-ace/rgss3/
I think there should be something fit your idea there.
Its my primary place for scripts and i really can't recall anything that allows to do a such thing.
I noticed this thread, and I just so happen to be looking for the same kind of state. (I'm making a pokemon mystery dungeon fangame)

However, in the meantime, if you want a temporary fix until we can find a proper script, you could create two states, have one state be "seeded" and the other as a dummy state. Have "seeded" deal 10% hp damage per turn, and have the dummy state restore 10% hp per turn.

Then have a skill add the "seeded" state to the enemy and the dummy state to the caster.

Of course, this isn't perfect, the hp "drained" will not be exactly equal to the hp recovered, and you'd need a way to remove the dummy state after the enemy dies (though if you have only one enemy in the troop this isn't a problem), but it's at least a temporary "fix" until a more optimal solution is found.

Original thread: https://forums.rpgmakerweb.com/threads/life-steal-state-leech-seed.80318/