Would like to know if there is any way to recover a % of HP/MP through an event.

SciWriter

Villager
Member
Joined
Oct 19, 2020
Messages
20
Reaction score
0
First Language
English
Primarily Uses
RMMV
In my game I want to have a system where after an enemy is defeated you can choose to drink it's blood. Like a vampire. Doing so
will recover about 10% of your HP and MP. This system plays into something later on where you MC can become a Vampire.

I tried doing this with Change Actor HP, but that adds a permanent boost to the HP of the actor. That could technically work as well but I really wanted it to be more of a small healing act, than a permanent HP/MP increasing act.

Any way to do this?

Thank You;
 

CHKNRAVE

Surprisingly not sponsored by Yanfly.
Veteran
Joined
May 11, 2020
Messages
130
Reaction score
72
First Language
French
Primarily Uses
RMMV
You can set up a variable to be equal to the drinker's max HP, divide that variable by 10 (for 10% of it), and restore HP equal to the variable (through "Change HP" which should actually not permanently increase the target's max HP but only restore it, otherwise that'd be "Change Parameter"). Then, do the same for the MP.
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,510
Reaction score
1,639
First Language
English
Primarily Uses
RMMV
Have a variable store actor's max HP. Divide it by 10. Then change actor HP event and add the value stored in that variable.
Do the same thing, but for MP instead.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
552
Reaction score
227
First Language
english
Primarily Uses
RMMV
just double checked to make sure, but change HP doesnt increase the max HP.
tested with change HP +200 while actor only had 130. just gave a full heal.
are you sure your not using change parameter?
 

SciWriter

Villager
Member
Joined
Oct 19, 2020
Messages
20
Reaction score
0
First Language
English
Primarily Uses
RMMV
Thank You for the replies. I will try all suggestions.

I will also make sure that I am not using Change Parameter by accident.

Thank You;
 

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

Latest Threads

Latest Posts

Latest Profile Posts

grief... lol... I keep seeing request for MZ versions of MV plugins. this is why I haven't moved over and just MZ for my MV project.
Egg-sitting minigame is coming along nicely. Are you a bad enough dino to keep all these raptor eggs warm?

I forgot to post the animated version of the previous map I was working on. I'm still arguing with myself on if I like the stark blue ground better than the undergrowth ground used on the waterfall map. Hmm...
now that fmod is free for indie(<200k revenue), it would be interesting to see someone add fmod support for rpg maker
Can't say I can't promise progress on a project just yet. But I can say I had fun databasing tonight. :)

Forum statistics

Threads
105,802
Messages
1,016,578
Members
137,496
Latest member
sulthorne
Top