Heal on Level Up

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,807
Reaction score
12,225
First Language
English
Primarily Uses
RMMV
Heal on Level Up
2015.10.25
by Shaz


Introduction
This plugin allows you to heal HP, MP and remove states on level up for all party members, or for individual actors

How to use
Add to your plugins folder (file name should be HealOnLevelUp.js).

Set plugin parameters to Y for each of the Heal HP, Heal MP and Remove States options, if you want to do those things for ALL party members.
If you only want selected actors to do those on level up, set the plugin parameters to N (or blank) for each one, and add the following tags to the actor notes:
<LUHealHP>
<LUHealMP>
<LUHealStates>

You can set combinations of these - only one, or any two - you do not have to set all three of them.

Plugin
Download from pastebin

Credit
- Shaz

Terms
- free for use in commercial games
 
Last edited by a moderator:

Bonkers

Bioware, do you need a nap?
Restaff
Joined
May 26, 2013
Messages
2,948
Reaction score
2,895
First Language
English
Primarily Uses
RMMV
Wonderful!  Thank you very much for this.  Is there a way we can have it display the fact they've been restored to the player?

EDIT:  Or will they need to check to menu to see they've been healed?
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,807
Reaction score
12,225
First Language
English
Primarily Uses
RMMV
It just shows up in the menu.
 

Ichida za Zeal

Veteran
Veteran
Joined
Oct 23, 2015
Messages
69
Reaction score
7
First Language
English
Wonderful!  Thank you very much for this.  Is there a way we can have it display the fact they've been restored to the player?

EDIT:  Or will they need to check to menu to see they've been healed?
You could change the Level Up text to indicate that they've been healed.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
21,791
Reaction score
11,005
First Language
English
Primarily Uses
RMVXA
Is it possible with this plug in to heal a percentage of HP/MP rather than the full amount?
 

Robe Guy

Villager
Member
Joined
Jun 17, 2015
Messages
21
Reaction score
3
First Language
English
Primarily Uses
Thanks! I'm gonna sound dumb but, how do I make this the right type of file that MV uses for the plugins?
 

SmashBroPlusB

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
17
First Language
English
Paste the text in Notepad, except don't save as a text file. Instead, save as "all files" and make sure the filename ends with .js (which sets the correct file type). Then, just drop it in your project's "js" folder as normal.
 

Robe Guy

Villager
Member
Joined
Jun 17, 2015
Messages
21
Reaction score
3
First Language
English
Primarily Uses
Thanks so much!

EDIT: Actually, there is no "all files" thing. I've seen it before, but it doesn't appear as an option now.
 
Last edited by a moderator:

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,600
Reaction score
2,361
First Language
French
Primarily Uses
tch shaz can you left me time to publish my own plugin to '3'? you are to much fast!
 

Robe Guy

Villager
Member
Joined
Jun 17, 2015
Messages
21
Reaction score
3
First Language
English
Primarily Uses
Oh, I actually found a site that lets you save anything as any file, so I got it.
 

JohnnyR

Dungeon Master
Restaff
Joined
Mar 27, 2013
Messages
275
Reaction score
135
First Language
English
Primarily Uses
RMMV
I was going to do this, but man, you were faster! xD

Thanks a lot, it saved me some time! 
 

Kipplentoast

Villager
Member
Joined
Aug 25, 2013
Messages
10
Reaction score
5
First Language
English
Thanks a bunch for this! Out of curiosity, since so many of these Plugins require the File naming convention to be set a specific way, I have a little trouble with these pastebin .js. What should we be naming the file in order for it to work efficiently? Or is this plugin not dependant on the file name?
 

Rose Guardian

Veteran
Veteran
Joined
Mar 26, 2012
Messages
352
Reaction score
66
First Language
English
Primarily Uses
N/A
For some reason the actors are not healing when they level up, no matter what I do. What I am doing wrong?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,807
Reaction score
12,225
First Language
English
Primarily Uses
RMMV
@Kipplentoast, yes, it does seem to be a problem.  I was starting to load all of my .js files to my server, so I could add links for downloads, but someone has written a really nice script segment that will remove the link between the file name and the plugin, so it will work with any file name.  I'm going to be updating all the plugins so they use that, which should remove the issue.

@Rose Guardian, have you saved the js file with the correct name? It should be HealOnLevelUp.js
 

Anime_Fusion

Veteran
Veteran
Joined
Oct 24, 2015
Messages
79
Reaction score
48
First Language
English
Thanks a ton, Shaz!
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,807
Reaction score
12,225
First Language
English
Primarily Uses
RMMV
Is it possible with this plug in to heal a percentage of HP/MP rather than the full amount?
How would you want that to work?

If the actor had 50% HP already, and you set the plugin to 50%, would it GIVE them 50% of HP (so raise them to 100%) or would it just bring them up to 50% (so no change to this actor)?
 

cdaz

Villager
Member
Joined
Nov 4, 2015
Messages
22
Reaction score
2
First Language
Thai
Thank you very much .

Nice plugins.
 

Lordrei

Warper
Member
Joined
Nov 8, 2015
Messages
3
Reaction score
0
First Language
German
Hey Shaz, 

i need your help ! i downloaded your Plugin and saved it as .js in my folder, in the game F10 I activated it, but when i go to the game and test some battles to lvl up.... my actor wont be healed.....?

what did i wrong? 

i set the Parameters to 'N' because i want for the future that just the actors with lvl up will be healed not all.

in the notebox i set the 3 parameters,

so i need just this in my file if im right...?

 

(function() {

 

  var parameters = PluginManager.parameters('HealOnLevelUp');

  var healHP = (parameters['All HP'].toUpperCase() || '') === '';

  var healMP = (parameters['All MP'].toUpperCase() || '') === '';

  var healStates = (parameters['All States'].toUpperCase() || '') === '';

 

  var _Game_Actor_levelUp = Game_Actor.prototype.levelUp;

  Game_Actor.prototype.levelUp = function() {

    _Game_Actor_levelUp.call(this);

 

    if (healHP || this.actor().meta.LUHealHP) {

      this._hp = this.mhp;

    }

 

    if (healMP || this.actor().meta.LUHealMP) {

      this._mp = this.mmp;

    }

 

    if (healStates || this.actor().meta.LUHealStates) {

      this.clearStates();

    }

  };

 

and on actors note

 

<LUHealHP>
<LUHealMP>
<LUHealStates>

 

But it does not work :(

 

I hope u , or someone can help me

Thanks :) and sorry for bad english 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,807
Reaction score
12,225
First Language
English
Primarily Uses
RMMV
I know from your PM that you got this sorted out.
 

Iliketea

Tea lover
Veteran
Joined
Oct 28, 2015
Messages
848
Reaction score
937
First Language
German
Hi there ^^ Thank you for your hard work :)

Is it possible to include TP in this :) ?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Writing out an idea for the No Travel Game Jam. I have a general plot and challenge written out, it's just a matter of filling the rest in and making it interesting.
A definite difficult time right now. How is everyone doing during this pandemic? I already have seen furloughs and layoffs.
Hollow 1977 wrote on Archeia's profile.
Hope you and your family are doing well during this difficult time. :)
My elderly neighbor whom I've been buying groceries for just got carried out of his home on a stretcher by guys with hazmat suits. Considering I've been his only point of contact for the past month it's probably safe to say my boss was right to tell me to stay home once I developed a mild cough after all.
Damn. All these new features to the forums. Takes some getting used to.

Forum statistics

Threads
95,642
Messages
930,673
Members
125,962
Latest member
seogenics
Top