Damage Drain/Recoil Rate

Special Parameter: Drain/Recoil Rate
Version: 1.1.0
By Jeneeus Guruman​
Introduction

This plugin allows to include a state that will PASSIVELY drains a percentage of damage based on the damage dealt to the target as long as the one that has a drain rate parameter.

Features

  • Every damage given will have a percentage of those to be drained to the user.
  • Every damage given will have a percentage of those to be recoiled to the user.
  • Skills and items damage drains can now be changed by the percentage absorbed and can also be switched.
Screenshots
 

Spoiler
[IMG]http://i1071.photobucket.com/albums/u503/eujene_ugly/Drain%20Recoil%20MV/SS2_zpsgpbyokyq.png[/IMG]

[IMG]http://i1071.photobucket.com/albums/u503/eujene_ugly/Drain%20Recoil%20MV/SS1_zps7triowzb.png[/IMG]
How to UseTo use this, you need to put the following notetags:
 
       <dhr: percent>
       percent: The percentage of amount of HP to be drained based on
       the damage. The default is 0. Multiple tags will add all values
       by percentage (e.g. 200% + -50% = 150%). Putting negative values

       result in recoil. Note: no percent sign should be added (e.g. <dhr: 50>).

       <dmr: percent>
       percent: The percentage of amount of MP to be drained based on
       the damage. The default is 0. Multiple tags will add all values
       by percentage (e.g. 200% + -50% = 150%). Putting negative values
       result in recoil. Note: no percent sign should be added (e.g. <dmr: 50>).

      <dsr: percent>

      percent: The percentage of amount of either HP or MP to be drained

      on the skills and items assigned. The default is 100.

      Note: no percent sign should be added (e.g. <dsr: 50>).

       <dhr_exclude>
       <dmr_exclude>
       Skills and items assigned to this will not drain any damage.

      <dsr_switch>

      Skills and items assigned to this will switch the restored value

      in draining skills and items (e.g. HP Drain damage will restore

      MP instead).

      dhr and dmr can be set in Actors, Classes, Weapons, Armors, and States.

      dsr, dhr_exclude, dmr_exclude, and dsr_switch can be set in Skills and Items.

 
Script

Pastebin

GitHub

Known Bugs

None so far.

Update

  • v1.1.0: Added "dsr" to manipulate the absorb percentage of skills and items and "dsr_switch" to swap the portion to be restored.
Author's Notes

  • This script is free to use commercially or not. If commercially, you must credit me. If not, just don't claim this as your own but not crediting me is okay if you don't want to.
can this work on states to make something like "leech seed" from pokemon?
can this work on states to make something like "leech seed" from pokemon?
This is some sort of life steal type. Ever damage you deal with the target will absorb some of those damage. For example, if the attack has 10 hits, it will absorb every single damage (10x).
I'm little confuse.

Where I need to put <dhr: percent> to?

In Formula text box or Note Text box?

and I need to put <dhr: 75> ,<dhr:75%> or <dhr: percent 75%>?

I  try to put <dhr: 75>  in Note text box of one skill and noting happened.
I'm little confuse.

Where I need to put <dhr: percent> to?

In Formula text box or Note Text box?

and I need to put <dhr: 75> ,<dhr:75%> or <dhr: percent 75%>?

I  try to put <dhr: 75>  in Note text box of one skill and noting happened.
Based on my post above:

      dhr and dmr can be set in Actors, Classes, Weapons, Armors, and States.
<dhr: 75> can only be placed to Actors, Classes, Weapons, Armors, and States. This plugin is more on having a passive "life steal" state like having every damaging skills, including the normal attack, will have a drain effect while the state is on.
Based on my post above:

<dhr: 75> can only be placed to Actors, Classes, Weapons, Armors, and States. This plugin is more on having a passive "life steal" state like having every damaging skills, including the normal attack, will have a drain effect while the state is on.
I get it now Thank you very much.
I need something that would give mana on % damage dealt on the skill itself.

No one did that so far, are you willing to add that in your plugin?
You mean dealing HP damage to the enemy and absorb some of it as MP but exclusive to 1 skill without any state? I'll try to add that if that's the case since it's not there by default.
That's correct
That's correct
Here you go.

Update

  • v1.1.0: Added "dsr" to manipulate the absorb percentage of skills and items and "dsr_switch" to swap the portion to be restored.
l have this error when using a skill that use drain with switch http://puu.sh/ljn0p/e03f3d3080.png
Weird. Even using those plugins listed in that error, it worked in my side. Can you provide the screenshot of the damage formula and the notetag of that said skill?
http://puu.sh/ljSYP/ecbadb8075.png

b.brutal(a, 😎 is http://puu.sh/ljT04/0cb6eaad8e.png
I know that a number of plug ins have to have the file name exactly as the scripter intended.  I cannot see what file name (if any) you have given this.  Does it matter in this instance?

How could I missed to put this in the help file. :rsad: Remove the % sign, by the way. I'll update the help file as understandable as I can possibly do. Sorry for the inconvenience.

I know that a number of plug ins have to have the file name exactly as the scripter intended.  I cannot see what file name (if any) you have given this.  Does it matter in this instance?
Tried to rename here in my part but file names won't matter in this plugin.
Is there any way to make different tags to absorb physical damage and magical damage?
Unfortunately, I can confirm that this plugin does not work at all. Using the plugin grabbed from GitHub as of January 18th, 2016, using the plugin alone on a new project, the notetag of  <dhr: 50> yields no results. I also tried <dhr: 250>. I placed this notetag in the Actor, I also tried placing it into the Class, I then tried placing it into the Weapon, and then into a State. None yielded any results whatsoever. The plugin, in its current state, simply does nothing.

EDIT: Seems like the Github version doesn't work. The Pastebin version is fine.
Thank god for your post, I thought I was doing something wrong and was trying everything. Once I replaced the plugin with the Pastebin one it worked perfectly. Its a good plugin 🙂

Unfortunately, I can confirm that this plugin does not work at all. Using the plugin grabbed from GitHub as of January 18th, 2016, using the plugin alone on a new project, the notetag of  <dhr: 50> yields no results. I also tried <dhr: 250>. I placed this notetag in the Actor, I also tried placing it into the Class, I then tried placing it into the Weapon, and then into a State. None yielded any results whatsoever. The plugin, in its current state, simply does nothing.


EDIT: Seems like the Github version doesn't work. The Pastebin version is fine.

Original thread: https://forums.rpgmakerweb.com/threads/damage-drain-recoil-rate.48979/