Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: Yanfly Life Steal
- Original author: emelian65
- Original date: December 20, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/yanfly-life-steal.72488/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
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. {
Archived First Post
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.
Protected download
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.
Yanfly Life Steal
This plugin has the next parametres to set on it.
Protected download
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.
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...
