Tips & Tricks – Enemy Transformations – 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.

Enemy Transformations can be done through events, but it’s not easy to have events ready all the time at any moment, especially when something like, a state tied to the transformation expires. This video will teach you how to tie transformations together with states!

Grab the copy/paste code here: 

Place this inside of your state’s notetag. Change the red text to fit your game’s settings.

<Custom Apply Effect>
// Check if the user is an enemy.
if (user.isEnemy()) {
  // Archive the previous enemy ID.
  user._prevEnemyId = user._enemyId;
  // Set the target enemy ID you want the enemy to change into.
  var transformEnemyId = 2;
  // Transform the user.
</Custom Apply Effect>

<Custom Remove Effect>
// Check if the user is an enemy.
if (user.isEnemy()) {
  // Retrieve the archived enemy ID.
  var transformEnemyId = user._prevEnemyId;
  // Transform the enemy back.
  // Clear the archived data.
  user._prevEnemyId = undefined;
</Custom Remove Effect>

Happy transforming!

Please wait while you are redirected...or Click Here if you do not want to wait.