11 months ago

RPG Maker MV Plugin - Full Recover on Level Up.


Code:

		
			/*:
 * @target MZ
 * @plugindesc Fully restores HP and MP when a character levels up.
 * @help
 * This plugin automatically restores a character's HP and MP to full
 * when they level up. No configuration required.
 * 
 * Free for commercial and non-commercial use.
 */

(() => {
    const _Game_Actor_levelUp = Game_Actor.prototype.levelUp;
    
    Game_Actor.prototype.levelUp = function() {
        _Game_Actor_levelUp.call(this);
        this.recoverAll();  // Restore HP and MP
    };
})();
		
	

This was made by ChatGPT because I needed one for The Flipside and couldn't find one that wasn't paid or didn't need me to reach out to the plugin creator.

The way you get this working in RPG Maker is by copying this text into a note document and saving that note document as a .js file, then putting it in the plugins folder of your RPG Maker project.

I don't know the stigma around using AI-made plugins for a game. I have a heavy dislike for people using AI-made art and music (though I have done it myself once).

Enjoy!



6 comments

Loading...

Next up

I don't know if anyone really cares, but The Flipside just passed a big milestone!

The entire game's summary has been complete!

Some stupid Flipside art I just made.

BATTLE SYSTEM IN MY RPG MAKER XP GAME

(srry I forgot to link the post to my game :CC)

#IndieDev #GameDev #videogames #indiegames

I did an Undertale boss theme tier list.

Peeking behind a tree!

Emma Lockheart

Fixed her up a bit, second image is the original drawing.

"Emma Lockheart"

Character I drew yesterday out of boredom :P

Yearly GJ post. More updates in X and Itch.

This is a screen overlay that appears when spit in the face / blinded.

Random Q&A is now open! Ask whatever questions you have about the game!

[Read article before asking any questions.]