Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Enemy that Changes Element

Does anyone remember that really annoying boss in the middle of Final Fantasy X, Spherimorph? What about Hein from Final Fantasy III? Or Mellusion in the fifth one? This tutorial tells you how to make enemies like those, who change their elemental alignment on a regular basis.

This will work in XP although my demo and screenshots are in VX.

Prerequisites

You need an understanding of all of these features:

-Switches
-Variables
-Enemy and Troop database tabs
-Conditional branches

Enemy

First create one new enemy. I called it morph. Give it an element of A and a spell of that element, then pick an opposing element and give it an F. Then, give all of the elements you're going to use for the other forms the same priority (I chose E).

Repeat this for all the other elements you want to use.


Troop

First add one of the enemies to the troop.

On the first page set its occurrence on Turn 0. Now create four switches, one for each enemy. Now on this first page, in addition to any banter, turn the switch that corresponds with the first form ON.

On the second page set the condition to [at the end of turn] (in XP you'll have to set it to turn 2 + 1X). Now set a variable to random 0...2 (or 0... [# of forms - 2]). For each switch, make a conditional branch. Uncheck the [set handling when conditions do not apply] box. Now create a conditional branch for the random variable's values for 0, 1, and 2. Also uncheck the [set handling when conditions do not apply] box. Now it should look something like this:

http://i107.photobucket.com/albums/m316/goldenryu9292/Morph%20Tut/Page21.png[/img]

Now under each branch, add an animation, turn the current switch off, turn a new one on, and transform the enemy to the corresponding form. It should now look like this:

http://i107.photobucket.com/albums/m316/goldenryu9292/Morph%20Tut/Page22.png[/img]

Now copy the conditional branch for the switch (in turn copying the other branches) and paste it. Now you change the switch in the copied branch, and change the enemy transform commands to avoid it transforming into itself, and change the switches accordingly.

In Closing

If you find it at all confusing, please download the demo:

XP Demo (Buggy)

VX Demo

Big thanks to King Red of Pancakes for the idea.

I hope someone finds this tutorial useful.

EDIT: If anyone is willing to fix the XP version please post it and I will add it to this first post.
 
I wonder if this version works better then the one I looked at earlier.
Downloading now.
EDIT: Works like a charm! :lol:
 
I just added an XP version. It's a little buggy, and I have no idea how to fix it, but it still works... I believe.

You see, the Barrier Shift happens several times at once, and my editor won't let me set elemental priorities.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top