Shades of Black (MV Plugin Tips & Tricks)
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.
In Final Fantasy 12, Shades of Black allows the user to cast random basic Black Magic against the target. When this happens, there’s also a slight chance that the Black Magic spell cast will be of a higher tier, too. Here’s how we can recreate this 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:
<After Eval> // Create the pool for random basic skills that can be used. var tier1skills = []; tier1skills.push(601, 641, 681, 721, 761); tier1skills.push(801, 841, 881, 921, 961); // Create the pool for random advanced skills that can be used. var tier2skills = []; tier2skills.push(609, 649, 689, 729, 769); tier2skills.push(809, 849, 889, 929, 969); // Calculate the chance for a basic skill if (Math.random() < 0.88) { // Get a random skill ID from the basic pool var skillId = tier1skills[Math.floor(Math.random() * tier1skills.length)]; // Otherwise } else { // Get a random skill ID from the advanced pool var skillId = tier2skills[Math.floor(Math.random() * tier2skills.length)]; } // Set this action's skill to the action this.setSkill(skillId); </After Eval> // Action Sequence to determine random skill used for Magick <Setup Action> clear battle log display action immortal: targets, true perform start wait for movement cast animation wait for animation action effect clear battle log display action </Setup Action> Enjoy! |