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
126
Reaction score
68
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,499
Reaction score
1,629
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
540
Reaction score
219
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 Profile Posts

People1.png & SF_People1.png added!!!!

Adventurer:
"Why your body looks like a bird?"

Stranger:
"Because I'm harpy"

Adventurer:
"Clap along if you feel like a room without a roof"

*Both dancing to Pharrell Williams song*
Stream will be live shortly with a make-up session of the Interactive Text Adventure! Feel free to drop by!
Pootscooter wrote on Pharonix's profile.
Hey @Pharonix, just wondering what you're up to lately and if you've had an opportunity to check out the LTBS thread in the past few days...(a couple of us could really use your expertise). Hope you are well and Happy Thanksgiving!
Anyone know the best size image to put in signature?

Forum statistics

Threads
105,501
Messages
1,014,229
Members
137,159
Latest member
revilz270
Top