Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,464
Reaction score
14,816
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

I haven't seen you since the plague.
Restaff
Joined
May 26, 2013
Messages
2,941
Reaction score
2,901
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,464
Reaction score
14,816
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
22,315
Reaction score
11,737
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
18
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,965
Reaction score
3,073
First Language
French
Primarily Uses
RMMV
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
420
Reaction score
90
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,464
Reaction score
14,816
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
50
First Language
English
Thanks a ton, Shaz!
 
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,464
Reaction score
14,816
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,464
Reaction score
14,816
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
953
First Language
German
Hi there ^^ Thank you for your hard work :)

Is it possible to include TP in this :) ?
 

Latest Threads

Latest Posts

Latest Profile Posts

image_2021-06-15_212613.png
Looks a bit.....kid friendly. Then again, I suppose that does with with a lot of retro themes... Crap, already spotted a flaw xD
What a stupid week so far! I was really short on sleep yesterday thanks to my back hurting and not falling asleep fast enough, now today I am 2 hours late for work because my damn alarm clock changed from the alarm setting, to the radio setting which I always keep muted.
I introduced "booby trap" as another indirect way to fight supernatural threats in the game.
But, some of my players are using it to blow up random citizens on the street.
Not sure how "creative" they can go with it. :kaojoy:
Oh, boy. I'm now having dreams about Unity.

Forum statistics

Threads
112,259
Messages
1,066,877
Members
145,875
Latest member
Namika
Top