Yanfly Engine Plugins is a plugin library made for RPG Maker MV, a wonderful piece of software to help you make that role playing game of your dreams. You can find out more about RPG Maker MV here.
Magic Guard is a passive ability from Pokémon that prevents indirect damage dealt from states such as Poison. With this Tips & Tricks, you can recreate the effect in MV, too!
Get the copy/paste version of the code here:
Place the lines in blue inside of the Lunatic Mode code of other states that utilize the <Custom Regeneration Effect> notetags. Replace the red with the state ID of your Magic Guard state.
<Custom Apply Effect> this._toxicCounter = 1; </Custom Apply Effect> <Custom Regenerate Effect> // This will check if the Magic Guard state exists. if (!user.isStateAffected(178)) { var n = this._toxicCounter / 16; var value = Math.floor(n * user.mhp * -1); user.gainHp(value); this._toxicCounter += 1; } // End check for Magic Guard </Custom Regenerate Effect>
Happy guarding!
Please wait while you are redirected...or Click Here if you do not want to wait.