Tips & Tricks – Shades of Black (Final Fantasy 12) – RPG Maker MV

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 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!

You can grab the copy/paste code here: Insert the following code into your Magick skills’ notebox. Change the values in red to reflect the settings of your game.

<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
</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>


Happy RPG Making!

These plugins and Tips & Tricks ideas are made possible thanks to our creative patrons on Patreon! The majority of our Tips & Tricks, Plugins, and Lunatic Pack ideas are placed within the Patreon-exclusive Sample Project for quick and easy access! If you'd like to make a Plugin Suggestion, Yanfly's Patreon-based Suggestion Box a visit here:

If you have any bugs to report, visit the following link:

If you have any questions about Action Sequences, visit the following link:

Thank you!