1 year 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!



10 comments

Loading...

Next up

Happy Eiffel Tower Day!

Way back in 1889 on this day, the Eiffel Tower was officially inaugurated! The Eiffel Tower took over TWO YEARS to make using 7,300 tons of iron!

A little over a year ago I made this post showing a plugin for RPG Maker MV that has the party recover all HP and MP upon leveling up. It was made using ChatGPT.

Welcome back to Esmarna XP!!!! There are new things about this game I would like to talk about! I'm officially BACK to making this game! (more info in the article)

#GainsJoltMascot #GJAsks

Matching up the shapes of the mystery mascot and this one, I have deemed it to be Social Butterfly.

So the NookComp is fully working right now with: Critterpedia, NookMail, Catalog and Bell Bank.

Also Postal system with the Mailbox and Post Office is also working and is hooked up into NookMail on the computer!

This is just a video to show you guys :)

I know I JUST uploaded a gameplay showcase, but it's about time we had a gameplay trailer, no?

https://www.youtube.com/watch?v=h3kj8m2UiX0

Just gonna leave this here and make some people very mad.

This isn't ragebait, just felt like I had to clarify that.

just testing out my Caterpillar System in rpg maker 2k

This took me kinda long to make using only events ngl

The first track of The Flipside OST, "March of the Archer" is now available to listen to on YT!

https://www.youtube.com/watch?v=ZGSg-urmKvo