How do I make a weapon that when it successfully attacks a foe, it heals some HP to the user?

Phil32

Veteran
Veteran
Joined
May 31, 2016
Messages
88
Reaction score
12
First Language
English
Primarily Uses
RMMV
This is what I get for going on a hiatus from RPG Maker MV for over a half year--I forget seemingly basic things! Ha
I've been tinkering with the Buffs and Effects section of a bow weapon that is supposed to heal a fraction/percentage of the user's weapon's attack on a single enemy, but instead, it's currently just healing the user who has the weapon equipped at the end of every turn. I'm probably overlooking something incredibly simple, so if anyone could push me in the right direction, that would be much appreciated.

Thanks for reading, and if you need me to post more information to get better help, just let me know!
 

Hungry Moogle

A Rat in the Wall
Veteran
Joined
May 4, 2017
Messages
38
Reaction score
9
First Language
English
Primarily Uses
RMMV
How about using Yanfly's Life Steal [Link] plugin?
 

Zerothedarklord

Veteran
Veteran
Joined
Jun 25, 2013
Messages
339
Reaction score
106
First Language
English
Primarily Uses
RMMV
a.gainHp(Math.round(a.mhp / 33)); a.atk * 1.5


In this instance, the attack will heal the attacker for 3% of their max HP, then go on to inflict damage.
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,967
Reaction score
558
First Language
English
Primarily Uses
N/A
A clunky way you could do it is make the weapon change the attack skill to something that absorbs HP. Or do you want it to affect certain skills as well?

How about using Yanfly's Life Steal [Link] plugin?

Or call the weapon @Hungry Moogle so it eats their HP. Jkjk
 

Phil32

Veteran
Veteran
Joined
May 31, 2016
Messages
88
Reaction score
12
First Language
English
Primarily Uses
RMMV
How about using Yanfly's Life Steal [Link] plugin?

Trying to limit how many plugins I use, but if push comes to shove, that will be plan B. :)

a.gainHp(Math.round(a.mhp / 33)); a.atk * 1.5

Forgive my ignorance: what section does this go in when editing a weapon's properties?

A clunky way you could do it is make the weapon change the attack skill to something that absorbs HP. Or do you want it to affect certain skills as well?

It only affects regular attacks.
 

Zerothedarklord

Veteran
Veteran
Joined
Jun 25, 2013
Messages
339
Reaction score
106
First Language
English
Primarily Uses
RMMV
Forgive my ignorance: what section does this go in when editing a weapon's properties?
Actually, it would be in a skill formula, not in weapon properties. but if you have Yanfly's Weapon Unleash plugin, you can have it replace a weapon's default attack
 

Phil32

Veteran
Veteran
Joined
May 31, 2016
Messages
88
Reaction score
12
First Language
English
Primarily Uses
RMMV
Actually, it would be in a skill formula, not in weapon properties. but if you have Yanfly's Weapon Unleash plugin, you can have it replace a weapon's default attack

Okay. This is what I currently have, but I must be missing something really simple, as it's currently not working.

In the second screen capture, the Attack skill is 0148, which used the HP siphon skill, so when an enemy is attacked, the user gets healed. Of course, that's not working as of yet.

1.png
2.png
 

Latest Threads

Latest Profile Posts

Nearing completion of the first major city of Albert, a vacation getaway city built a long time ago by a king who really didn't want to be invaded.
It’s definitely a great day to fit in some time for me to play no mans sky on PS4
Julyon.png

First concept art of one of our main characters love interest who might turn evil depending on her decisions. Or become king of the world. Or marry her. Maybe even everything at once.
Me: *saved the game*
Also me: *exit the game afterward*
The game: "Any unsaved progress will be lost"
Me: "uh,.. alright?"
[I feel a bit sad I did this]
"WhY?...WhY dId YoU KiLl ThEm AlL?...yOu BlOoDy HeLl MoNsTeR...I'LL MAKE YOU PAY!!! FOR THE BLOOD OF THE LOST!!!" ~Scars final words before his final battle [not final boss]

Battle Theme: Blood of the Lost
Face Sprite
Forgotten Eclipse_Scar Dead+Final Battle with him.png

Forum statistics

Threads
110,269
Messages
1,051,838
Members
143,291
Latest member
FoGGick855
Top