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

Trailer for my new game.
last one for a while
MythicRuss wrote on gothicvoid's profile.
hi, i was looking thru ur awesome stuff, and was looking around the internet, how in the heckin heck do i get the hiddendoors to open? im addng them to the doors event but they just appear as solid walls, btw am total noob lol
currently working on some template sprites and tweaking the walk cycle :)

Forum statistics

Threads
110,306
Messages
1,052,157
Members
143,340
Latest member
MaskJack
Top