Difference between revisions of "Cyclone (MV Plugin Tips & Tricks)"
(Created page with "{{Yanfly Tips & Tricks MV |preview = <youtube>https://www.youtube.com/watch?v=L9bWoz8CXzI</youtube> |desc = Cyclone is a spell from the World of WarCraft that stuns an oppon...") |
|||
Line 14: | Line 14: | ||
Find the copy/paste version of the code here: | Find the copy/paste version of the code here: | ||
− | ; Place this in the notebox for the Cyclone Bridge state. Change the values | + | ; Place this in the notebox for the Cyclone Bridge state. Change the values to fit your game’s settings: |
<pre> | <pre> | ||
Line 36: | Line 36: | ||
</pre> | </pre> | ||
− | ; Place this in the notebox for the Cyclone skill’s notebox. Change the values | + | ; Place this in the notebox for the Cyclone skill’s notebox. Change the values to fit your game’s settings. |
<pre> | <pre> |
Latest revision as of 20:26, 9 July 2019
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.
Cyclone is a spell from the World of WarCraft that stuns an opponent. However, when repeatedly used on the same opponent, the duration of the stun lowers each time. Furthermore, only one Cyclone can be active at a time per team. Here’s how to recreate that 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. Find the copy/paste version of the code here:
<Custom Apply Effect> // Set the target's default cyclone times to 0. target._cycloneTimes = target._cycloneTimes || 0; // Get the number of turns cyclone will last. var turns = Math.max(5 - target._cycloneTimes * 2, 1); // Add the real Cyclone state. target.addState(134); // Set the number of turns on the Cyclone state. target.setStateTurns(134, turns); // Raise the number of times the target has been affected by Cyclone. target._cycloneTimes += 1; </Custom Apply Effect> <Custom Remove Effect> // Clear the number of times the target has been affected by Cyclone. target._cycloneTimes = undefined; </Custom Remove Effect>
<Before Eval> // Get all of the viable battle members. var members = BattleManager.allBattleMembers(); // Loop through each member. for (var i = 0; i < members.length; ++i) { // Get current member. var member = members[i]; // If the member exists and is affected by Cyclone... if (member && member.isStateAffected(134)) { // ...then remove Cyclone. member.removeState(134); } } </Before Eval> Happy storming! |