Circle of Radiant Glory (MV Plugin Tips & Tricks)
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.
In Champions Online, when a user affected by Radiant Glory dies, the user will revive a few turns after his or her death. The user will be revived based on how much MP was consumed during casting and then a cooldown appears. Here’s how to make the effect in RPG Maker MV! 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 grab the copy/paste code here:
<Custom Requirement> // Check if the user is affected by Radiant Glory if (user.isStateAffected(301)) { // Then disable the skill value = false; } </Custom Requirement>
<Category: Bypass Death Removal> <Custom Apply Effect> // Set the radiant glory dead turns to 0 user._radiantGloryDeadTurns = 0; // Calculate the amount of MP spent divided by 4 user._radiantGloryMp = Math.ceil(user.mp / 4); // Make the user lose that much MP user.gainMp(-user._radiantGloryMp); // Show the MP lost in a popup user.startDamagePopup(); // Clear the results user.clearResult(); </Custom Apply Effect> <Custom Remove Effect> // Clear the death turns user._radiantGloryDeadTurns = undefined; // Clear the MP stored user._radiantGloryHp = undefined; </Custom Remove Effect> <Custom Turn End Effect> // Check if the user is dead. if (user.isDead()) { // Default the number of turns user has been dead to 0 user._radiantGloryDeadTurns = user._radiantGloryDeadTurns || 0; // Increase it by 1 user._radiantGloryDeadTurns += 1; // If the user has reached 2 turns of being dead... if (user._radiantGloryDeadTurns >= 2) { // Default the amount of MP spent user._radiantGloryMp = user._radiantGloryMp || 1; // Make the user gain HP based on 4 times the amount of MP spent user.gainHp(user._radiantGloryMp * 4); // Start the damage popup user.startDamagePopup(); // Clear the user's results user.clearResult(); // Play an animation on the user user.startAnimation(49); // Remove the Radiant Glory state user.removeState(stateId); // Get the Radiant Glory skill ID var skillId = 863; // Get the number of turns to put it on cooldown var turns = 10; // Set the cooldown user.setCooldown(skillId, turns); } } </Custom Turn End Effect> Enjoy! |