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.
In MMBN, the Bubble Wrap effect will block damage (except for Electric), remove itself, and then come back a few turns later, making it one of the better ways to mitigate damage as a whole! Here’s how we can recreate this effect in RPG Maker MV!
You can grab the copy/paste code here:
Insert the following Lunatic Mode code into the Bubble Wrap passive state’s notebox. Change the values in red to reflect your game’s settings.
<Custom Battle Effect> // Get the state ID for the bubble wrap effect state var bubbleWrapId = 295; // Add that state to the user user.addState(bubbleWrapId); // Set the cooldown to 0 user._bubbleWrapCooldown = 0; </Custom Battle Effect> <Custom Regenerate Effect> // Default the bubble wrap cooldown to 0 user._bubbleWrapCooldown = user._bubbleWrapCooldown || 0; // Check if the cooldown is above 0 if (user._bubbleWrapCooldown > 0) { // Decrease the cooldown by 1 user._bubbleWrapCooldown -= 1; // Check if the cooldown has reached 0 or less if (user._bubbleWrapCooldown <= 0) { // Get the state ID for the bubble wrap effect state var bubbleWrapId = 295; // Play an animation on the user user.startAnimation(82); // Add the state to the user user.addState(bubbleWrapId); } } </Custom Regenerate Effect>
Insert the following Lunatic Mode code into the Bubble Wrap effect state’s notebox. Change the values in red to reflect your game’s settings!
<Custom React Effect> // Check if HP damage is dealt if (this.isHpEffect() && value > 0) { // Get the elements used for the effect var elements = this.getItemElements(); // Get the element ID for the lightning element var lightningElementId = 9; // Check if the lightning element isn't involved if (!elements.contains(lightningElementId)) { // If isn't involved, set the damage to 0 value = 0; } // Play an animation on the target target.startAnimation(4); // Remove the bubble wrap state from the target target.removeState(stateId); } </Custom React Effect> <Custom Remove Effect> // Set the bubble wrap cooldown to 3 turns user._bubbleWrapCooldown = 3; </Custom Remove Effect>
Happy wrapping!
Please wait while you are redirected...or Click Here if you do not want to wait.