Hello, so I was actually waiting for a response of Yanflñy, but it seems they have decided that I should ak in here so, this is the Plug-In.
Yanfly Life Steal
This plugin has the next parametres to set on it.
Which are supposed to enable a character to gain more HP than the damage dealt and recieve HP damage in certain cirtumstances instead of draining it.
I made this simple code
<Custom HP Life Steal Rate>
if (target.isStateAffected(4))
rate = 1.5;
else
rate = 0.5;
</Custom HP Life Steal Rate>
It does not pops up the cnsole, which with Yanfly newest update could mean that there is something wrong in the code, but like I said it doesn't seems to be the case
This code sorta works, the user always drains 50% of damage dealt, but when the enemy is affected by state 4 the user only drains the 100% amount of damage dealt and not the 150% of damage dealt, according to Yanfly help notes the rate should be in percentile which I belive I'm doin correctly(if not the 0.5 rate would not work)
I decide to test the skill with this code that again come in the plugin itself. Obviously I test each code individually just in case anyone was wondering.
<HP Life Steal: 50%>
<HP Life Steal: 150%>
<HP Life Steal: -50%>
The first one work perfectly, the second one only drains the damage dealt and not the 50% more, and the last one deals damage but the user doesn't recive any damage.
I asked Yanfly if their plugin actually allows the overheal and negative healing but they have not answer me yet, and as i don't have enough Javascript knowledge to actually know what to look for in the code I decide to post it here.
So in the end after all this I have two questions.
1.- Am I the one doing something wrong? If so, how do I correct it.?
2.-Is it soemthing to do witht he plug-in itself? If so what should I do to get the desired effect.
And that should be all, thnak you so muhc for your time.