Heal on Level Up

Discussion in 'JS Plugin Releases (RMMV)' started by Shaz, Oct 25, 2015.

  1. Shaz

    Shaz Veteran Veteran

    Messages:
    37,590
    Likes Received:
    11,309
    Location:
    Australia
    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: Oct 28, 2015
    #1
    PhxFire, TheTitan99, Kwerty and 19 others like this.
  2. Bonkers

    Bonkers Bioware, do you need a nap? Restaff

    Messages:
    2,948
    Likes Received:
    2,889
    Location:
    New York
    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: Oct 25, 2015
    #2
  3. Shaz

    Shaz Veteran Veteran

    Messages:
    37,590
    Likes Received:
    11,309
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    It just shows up in the menu.
     
    #3
  4. Ichida za Zeal

    Ichida za Zeal Veteran Veteran

    Messages:
    69
    Likes Received:
    7
    First Language:
    English
    You could change the Level Up text to indicate that they've been healed.
     
    #4
  5. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,613
    Likes Received:
    10,515
    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?
     
    #5
  6. Robe Guy

    Robe Guy Villager Member

    Messages:
    21
    Likes Received:
    3
    First Language:
    English
    Thanks! I'm gonna sound dumb but, how do I make this the right type of file that MV uses for the plugins?
     
    #6
  7. SmashBroPlusB

    SmashBroPlusB Villager Member

    Messages:
    14
    Likes Received:
    14
    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.
     
    #7
    Bokou and Robe Guy like this.
  8. Robe Guy

    Robe Guy Villager Member

    Messages:
    21
    Likes Received:
    3
    First Language:
    English
    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: Oct 26, 2015
    #8
  9. nio kasgami

    nio kasgami VampCat Veteran

    Messages:
    8,590
    Likes Received:
    2,340
    Location:
    Canada / Quebec
    First Language:
    French
    tch shaz can you left me time to publish my own plugin to '3'? you are to much fast!
     
    #9
    Shaz likes this.
  10. Robe Guy

    Robe Guy Villager Member

    Messages:
    21
    Likes Received:
    3
    First Language:
    English
    Oh, I actually found a site that lets you save anything as any file, so I got it.
     
    #10
  11. JohnnyR

    JohnnyR Dungeon Master Restaff

    Messages:
    275
    Likes Received:
    135
    Location:
    My very own private hell!
    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! 
     
    #11
    Shaz likes this.
  12. Kipplentoast

    Kipplentoast Villager Member

    Messages:
    10
    Likes Received:
    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?
     
    #12
  13. Rose Guardian

    Rose Guardian Veteran Veteran

    Messages:
    351
    Likes Received:
    63
    Location:
    USA Michigan
    First Language:
    English
    For some reason the actors are not healing when they level up, no matter what I do. What I am doing wrong?
     
    #13
  14. Shaz

    Shaz Veteran Veteran

    Messages:
    37,590
    Likes Received:
    11,309
    Location:
    Australia
    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
     
    #14
  15. Anime_Fusion

    Anime_Fusion Veteran Veteran

    Messages:
    79
    Likes Received:
    48
    First Language:
    English
    Thanks a ton, Shaz!
     
    Last edited by a moderator: Oct 29, 2015
    #15
  16. Shaz

    Shaz Veteran Veteran

    Messages:
    37,590
    Likes Received:
    11,309
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    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)?
     
    #16
  17. cdaz

    cdaz Villager Member

    Messages:
    22
    Likes Received:
    2
    First Language:
    Thai
    Thank you very much .

    Nice plugins.
     
    #17
  18. Lordrei

    Lordrei Warper Member

    Messages:
    3
    Likes Received:
    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 
     
    #18
  19. Shaz

    Shaz Veteran Veteran

    Messages:
    37,590
    Likes Received:
    11,309
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    I know from your PM that you got this sorted out.
     
    #19
  20. Iliketea

    Iliketea Tea lover Veteran

    Messages:
    848
    Likes Received:
    932
    Location:
    Germany
    First Language:
    German
    Hi there ^^ Thank you for your hard work :)

    Is it possible to include TP in this :) ?
     
    #20

Share This Page