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
335
Reaction score
105
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,954
Reaction score
549
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
335
Reaction score
105
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 Posts

Latest Profile Posts

Pyra and Mythra in smash ultimate are way too OP. They're basically Smash 4 Bayonetta 2.0, and not in a good way. Very toxic and unfair. At least they're hot tho.
attack on titan keep reaching a new height with each episode, aaa I can't wait another week for a new episode at this point
I've just finished organizing music files from a music Humble Bundle I purchased a while ago (putting in specific themed playlists, deleting from playlists, deciding which games they'll be used for. etc.). I'm feeling pretty confident that the sound design for my games will be up to high standards. Sound design seems to be relatively under-discussed as a topic in game development imo.
So I just got back from SeaWorld and I'm back to working on my game. I'm stuck on Shadowstar, mainly due to needing two more princesses... I have all the canon and toy princesses, plus Sunset Shimmer just for kicks. I decided not to include Cadence since this isn't in that era. But... I'm going to have to design two OCs now.
I'm completely missing on this site :kaodes: How's everybody doing lately?
3dlm3XK.jpg

Forum statistics

Threads
109,190
Messages
1,042,886
Members
141,683
Latest member
BiaMaker1223
Top