5 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

You're never gonna believe this:

I DID SOMETHING!!!!!!!! (great heavens that quality is bad.)

@Mr-Bad It sure ain't my best work, but I'm still proud! :D

If you know, you know.

Hii, I have been creating some enemies sprites and combat backgrounds for the game I'm developing. What you guys think?

I made a general survey for The Flipside for you guys if you want to fill it out:

https://forms.gle/Xg3L2UwVnL9s6kRA9

I have tons more free time than I thought I would. :P Still won't post much for the summer, but still.

"Esmarna 2: Into Another World" just released

Some fanart of Kyle x Violet from @Mr-Bad 's "Outcasts".

I swear I haven't forgotten about this game, it'll come out someday.

https://www.youtube.com/watch?v=M50uY3CXNUk&ab_channel=ZeroPoint… Hi everyone! A new trailer has dropped for my RPGMaker2003 games collection, coming Sept 17th! (the anniversary of a certain game I'm a huge fan of...)

Please give it a view to support us <3

https://store.steampowered.com/news/app/3614300?emclan=103582791…

#steam #indie

Did some concept art last night.

First one is a bird enemy, second is a NPC for a town later in the game.