Damage Drain/Recoil Rate

Jeneeus Guruman

The Returnee
Veteran
Joined
Mar 28, 2012
Messages
1,078
Reaction score
196
First Language
Filipino
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
 



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.
 
Last edited by a moderator:

Joronjo

Veteran
Veteran
Joined
Sep 17, 2015
Messages
155
Reaction score
29
First Language
English Spanish
Primarily Uses
can this work on states to make something like "leech seed" from pokemon?
 

Jeneeus Guruman

The Returnee
Veteran
Joined
Mar 28, 2012
Messages
1,078
Reaction score
196
First Language
Filipino
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).
 

cdaz

Villager
Member
Joined
Nov 4, 2015
Messages
22
Reaction score
2
First Language
Thai
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.
 

Jeneeus Guruman

The Returnee
Veteran
Joined
Mar 28, 2012
Messages
1,078
Reaction score
196
First Language
Filipino
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.
 

cdaz

Villager
Member
Joined
Nov 4, 2015
Messages
22
Reaction score
2
First Language
Thai
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.
 

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV
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?
 

Jeneeus Guruman

The Returnee
Veteran
Joined
Mar 28, 2012
Messages
1,078
Reaction score
196
First Language
Filipino
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.
 

lolshtar

Master of Magic thatknow nospell
Veteran
Joined
Apr 13, 2013
Messages
694
Reaction score
101
First Language
French
Primarily Uses
RMMV
That's correct
 

Jeneeus Guruman

The Returnee
Veteran
Joined
Mar 28, 2012
Messages
1,078
Reaction score
196
First Language
Filipino
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?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
21,867
Reaction score
11,079
First Language
English
Primarily Uses
RMVXA
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?
 

Jeneeus Guruman

The Returnee
Veteran
Joined
Mar 28, 2012
Messages
1,078
Reaction score
196
First Language
Filipino
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.
 
  • Like
Reactions: Kes

gotnovicks

Veteran
Veteran
Joined
Feb 15, 2015
Messages
76
Reaction score
9
First Language
Portuguese
Primarily Uses
N/A
Is there any way to make different tags to absorb physical damage and magical damage?
 

Crysillion

Veteran
Veteran
Joined
Sep 25, 2014
Messages
138
Reaction score
20
Primarily Uses
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.
 
Last edited by a moderator:

Tyrael79

Veteran
Veteran
Joined
Jan 10, 2016
Messages
90
Reaction score
15
First Language
english
Primarily Uses
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Who shares/sells their scripts/plugins on itch.io? Can I pick your brain?
If you ever need fantasy names and you're bored, make a fictional alphabet. Switch around the letters and see what you get :p
I JUST GOT PROMOTED TO 9TH GRADE BOIS!
On a scale of one to I just drew a pineapple with hairy legs how bored are you today?
Everybody else: We want this, this, this, this, this, and this, and don't forget that, plus that.... we need all of it added to the new RM.

Me: Just don't make me learn a new programming language. :kaoback:

Forum statistics

Threads
98,167
Messages
949,896
Members
129,453
Latest member
tanzx
Top