Oct 3, 2017
Reaction score
First Language
Primarily Uses
I'm working with Yanfly's Buff States Core and Extended DOT plugins.

I'm trying to accomplish a Leech Seed affect, tried a few methods actually. Unfortunately, my Javascript knowledge is very limited.

Edit: I managed to get it working using Yanfly's Leech Seed lunatic code:

It seems YEP.50 and Ellye's State Damage aren't compatible or at least not when doing this.

<Custom Regenerate Effect>
// Check if the original caster isn't the target and that the original target is alive.
if (origin !== target && origin.isAlive()) {
// Determine the damage dealt.
var damage = target.hp / 8;
// Round up the damage.
damage = Math.ceil(damage);
// Play the healing animation on the original caster.
// Original caster gains HP.
// Show the HP gained.
// Clears the original caster's HP popup.
// Play the poison animation on the target.
// Damage the target's HP.
// Check if the target is dead.
if (target.isDead()) {
// If the target is dead, make it collapse.
</Custom Regenerate Effect>

This deals percentage damage, however my goal is damage based on the stats of the user and target. I tried editing the code, but didn't get it to work at first (used "origin.mat * 3 - target.mdf" instead of "target.hp / 8"). Upon further investigating, the Leech Seed code unedited wasn't doing anything either, which means there was another issue. The next morning, I tried again, this time disabling Ellye's State Damage wondering if that could be causing interference. After disabling, the original code with "target.hp / 8" worked. I then substituted in the "origin.mat * 3 - target.mdf" and it also worked!

Methods that did not work...

The first method, I tried this...

<DoT Formula: a.mat * 3 - b.mdf>
<DoT Element: 12>
<DoT Variance: 5%>

using Yanfly's Extended DOT plugin and adding the HP Drain affect via Lunatic, but due to my limited Javascript knowledge, this method deadends here.

My third options was Ellye's State Damage plugin:

This one almost worked. This plugin is similar to Yanfly's Extended Dot plugin and comes with a <drain> notetag. Damage calculation worked fine, except the caster took the same damage as the target, rather than being healed by it. I didn't point this out in that plugin's thread as it's already been reported and that thread hasn't had a post in over a year. It doesn't seem that plugin receives updates anymore, so I abandoned this option.
Last edited:

Latest Threads

Latest Profile Posts

Trailer is almost done for the game i can't wait to show it to everyone
I've got good news and bad news. The good news is, there aren't any bad news to report. The bad news is, there aren't any good news to report.

Or as others say, yesterday was uneventful.

I am curious that can you "understand/get the point" about what does this place do generally?
(ARPG game)
If anyone knows any C# programmers, please send them my way.
Chilling at night in a tavern.

After 'multiple breakdowns', it's finally over. 10/10 will do this again.

Forum statistics

Latest member