6 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

"Who I Am"

Everybody go follow @KindKirby , he's a fellow brother in Christ and an absolute blessing to GJ.

He's also super close to 800 followers!!

The full game is available for playing! I hope you all enjoy it! I had some weird troubles trying to release it, but it all should be working properly now, but if you find some bugs or errors, feel free to comment so I can fix it!!

I freaking love dealing with this error message!

# Small tweak for lumberjacks who not only cut down trees, but will also plant them after cutting.

I drew some character's in the OMORI artstyle!

[Character list in article!]

@gamejolt please stop putting posts from people I'm NOT following in the "FOLLOWING" tab. It's getting very annoying.

I've just added the beta of my german RPG Maker XP game "Cast Away - The Oddysee" here on GameJolt.

https://gamejolt.com/games/lamaz/1020306

https://theluigiplayer.lamaz.dev/cato/

"Emma Lockheart"

Character I drew yesterday out of boredom :P