Bide (MV Plugin Tips & Tricks)
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.
Bide is a skill from Pokémon. When used, the user cannot act for 2-3 turns. During this time, if the user takes damage, the damage is stored. Once the Bide effect ends, the stored damage is dealt two-fold back at the enemies. Required PluginsThe following plugin(s) is required to create this Tips & Tricks effect: For help on how to install plugins, click here. For help on how to update plugins, click here. AboutThis is a Tips & Tricks effect created for RPG Maker MV. Tips & Tricks are not to be confused with plugins. Instead, they are usually customized code created for the sake of producing unique features/effects that do not require an entire plugin to do. Yanfly Engine PluginsThis Tips & Tricks effect is made possible due to the Yanfly Engine Plugins library. Click here if you want to help support Team Yanfly on Patreon. Warning for RPG Maker MZ UsersIf you are using RPG Maker MZ and VisuStella MZ, the following code may or MAY NOT work as this Tips & Tricks is made for RPG Maker MV. VisuStella MZ is NOT responsible if this Tips & Trick does not work because the code base for RPG Maker MV and RPG Maker MZ are different and the code base between Yanfly Engine Plugins and VisuStella MZ is even more drastically different. InstructionsFollow video instructions. You can get the copy/paste code here: <Custom Apply Effect> // Upon applying Bide, set the Bide damage to 0. user._bide = 0; </Custom Apply Effect> <Custom Respond Effect> // Check if the target took any HP damage. if (target.result().hpDamage > 0) { // If the target did, raise the Bide damage by the HP damage taken. target._bide += target.result().hpDamage; } </Custom Respond Effect> <Custom Remove Effect> // Check if the party is in battle. if ($gameParty.inBattle()) { // Play animation 97 on the user. user.startAnimation(97); // Calculate the damage. The damage dealt is equal to 2x Bide damage. var damage = Math.ceil(user._bide * 2); // Get the group of alive enemies. var enemies = user.opponentsUnit().aliveMembers(); // Loop through each of the enemies. for (var i = 0; i < enemies.length; ++i) { // Get the enemy. var enemy = enemies[i]; // Play animation 107 on the enemy. enemy.startAnimation(107); // Make the enemy take damage. enemy.gainHp(-damage); // Prompt the enemy's damage popup. enemy.startDamagePopup(); // Clear the results of the enemy taking damage. enemy.clearResult(); // Check if the enemy is dead. if (enemy.isDead()) { // If the enemy is dead, make it collapse. enemy.performCollapse(); } } // Reset the Bide damage value. user._bide = 0; } // Check if the party is in battle. </Custom Remove Effect> Happy Biding! |