Hello,
do you know if there is a way to create an enemy shapeshifter? There are many in the various RPGs, but how could I create an enemy that can shapeshift into another random enemy?
What type of Shapeshifter enemy do you want?
Do you want it to shapeshift into another random enemy once per battle, or multiple times per battle?
There's a default troop command you can use for these enemies called "Enemy Transform". You can even bake that into a common event called by a move the shapeshifter uses to randomise transformation between states without having to mess with troop events 🙂
I know Iron_Brew already answered the questions, but I would like to build upon what he said and also give a method to make the enemy shapeshift multiple times per battle.
I played around in the Battle Events editor a bit, and found out a functional Shapeshifter enemy system.
This is how I made the enemy;
Turn 2 + 2*X / Span : Turn
◆Control Variables:#0001 Test Shapeshift Check = Random 0..100
◆If:Test Shapeshift Check ≤ 80
◆Control Variables:#0002 Test Shapeshift Decide = Random 0..2
◆If:Test Shapeshift Decide = 0
◆Show Battle Animation:#1 Shapeshifter, Flash
◆Enemy Transform:#1 Shapeshifter, Crow
◆Enemy Recover All:#1 Shapeshifter
◆Text:None, None, Window, Bottom
: :The enemy transformed!
◆
:End
◆If:Test Shapeshift Decide = 1
◆Show Battle Animation:#1 Shapeshifter, Flash
◆Enemy Transform:#1 Shapeshifter, Treant
◆Enemy Recover All:#1 Shapeshifter
◆Text:None, None, Window, Bottom
: :The enemy transformed!
◆
:End
◆If:Test Shapeshift Decide = 2
◆Show Battle Animation:#1 Shapeshifter, Flash
◆Enemy Transform:#1 Shapeshifter, Hi_monster
◆Enemy Recover All:#1 Shapeshifter
◆Text:None, None, Window, Bottom
: :The enemy transformed!
◆
:End
◆
:End
I am going to explain every part of this on how to make is functionable as I am sure no one understands what I wrote (Copy as Text is not as great as a thought😅)
Turn 2 + 2*X / Span : Turn
This chooses for how often should this event happen. I have it Turn set to 2 + 2*X, which means it will run the event on every evened numbered turn. This is nice if you want the enemy to shapeshift multiple times per battle. You can change the numbers so that you can change the frequency of the shapeshifting. If you want it to only happen once per battle, make it a single number (Like Turn 2).
The Span should be pretty self explanatory. The whole event is happening within a turn, so that is what the span should be.
◆Control Variables:#0001 Test Shapeshift Check = Random 0..100
◆If:Test Shapeshift Check ≤ 80
It will feel a little predictable if it were to happen on every even numbered turn. We can make a variable and use a Control Variables command to set it to a random value between 0 and 100.
Then we can have an Conditional Branch check if the random number chosen is equal to or less than 80, then the event will proceed and the shapeshift will happen. If it is higher than 80, then the event will stop happening and the shapeshift will not happen that turn.
You can change the value from 80 in order to alter the likelihood of the shapeshift.
◆Control Variables:#0002 Test Shapeshift Decide = Random 0..2
If the variable is under our number and we can proceed with the shapeshift, then we want the event to decide what enemy we are shapeshifting into.
We can do this by making a variable to decide. We can then use a Control Variable and set the variable to a random number. The lowest should be 0 and the highest should be how many potential shapeshifts -1.
What I have now is 3 potential shapeshifting paths.
◆If:Test Shapeshift Decide = 0
◆Show Battle Animation:#1 Shapeshifter, Flash
◆Enemy Transform:#1 Shapeshifter, Crow
◆Enemy Recover All:#1 Shapeshifter
◆Text:None, None, Window, Bottom
: :The enemy transformed!
◆
:End
We have quite a few things happening here. If the variable choose the number 0, then it will carry out this event.
We first show an animation on our Shapeshifter as players should know something is going on.
Then we can do the actual shapeshift with Enemy Transform.
This is optional, but I like to heal the enemy when it shifts. Enemy transform does not change the current HP of the enemy, so if the enemy transforms into a tank-y enemy, then it will look as if damaged. Enemy Recover All can rectify this. Just make sure to only heal the shifter.
You can then repeat this to make multiple paths. Just make the Conditional Branch check for a different potential number, and have a different enemy to be transformed.
While this does not solve the problem with the excessive work needed to make the shifter be able to transform into 100+ enemies, it does let you have it shift multiple times per battle with a set likelihood.