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 Profile Posts

Long time no see. Is “put on and take off my hat readily” right or natural?
My English teacher said the "readily" is used wrongly here. But I am not sure. Thank you very much for answering my small question.
More: The context is: The hat was too tight to wear originally and modified to suit the head and now I'm trying on it.
Ami
--- Difficulty Affect: Price ---

(Very Easy Difficulty)
Merchant: This HP Bottle just cost 5G per item
M.Archer: How much i sell it?
Merchant: It cost 50G per item
M.Archer: Alright,i buy 50
(Very Hard Difficulty)
Merchant: This HP Bottle cost 100G per item
M.Archer: How much i sell it?
Merchant: 5G
M.Archer: (Mouth Bleeding)
Finding synonyms for 'Crystal' is a bit awkward, because the thesaurus occasionally thinks I'm talking about drugs.
"Today I will totally open up RPG Maker and work on my game. I have lots of ideas!"

End of day spoiler: It didn't happen.
years later and I still couldn't get over the fact that Konami killed P.T. and Silent Hills. Oh so much potential for a new modern classic horror.

Forum statistics

Threads
109,138
Messages
1,042,451
Members
141,637
Latest member
liaoxiaodou
Top