So, how do you think one would go about setting up an enemy unit that can be recruited to the side of the player mid battle? Like in Fire Emblem or Super Robot Wars, where certain characters could switch sides if conditions are met. In FE this usually just meant having a specific character talk to them, in Super Robot Wars it could be that or something more complex depending on the character and the game. Is there a way to do this while still having them be an enemy who you can fight?
@
Troublesome Knight
you will need an actor that is and looks the same like an Enemy..
and then i would try to
use this,on that enemy to switch it into the actor:
Code:this.addActor(EventID, ActorID); # Make the event with the specified ID the actor.
and hopefully that would be all that is to do..
Because as long as we dont use or summon any actor more than 1 time into battle Map,
that should make no problems.. its just like killing the enemy and calling an actor instead,..
the other way around should also work
(switching an friendly actor into an enemy..)
That would need this:
Code:this.addEnemy(EventID, EnemyID); # Make the event with the specified ID the enemy.
these 2 scriptcalls where why first guess on how to make the "fusion",but that made some unwanted issues.. but it should work fine if its just about "switching the side from friend to enemy or from enemy to friend" aslong this happens only 1 time in a battle map.
(in order to avoid having the same actor recruited 2 times in a battle map,what would bring the unwanted bugs)
..atleast thats my first guess how to do it..and you could let them talk before or after the "switching Sides" happen..
edit:
Is there a way to do this while still having them be an enemy who you can fight?
and of course u can use selfmade
states that force an enemy to only attack other enemy Units
(similar to "charmed" for example)
---
@ dlwjdvud123 did it work.. is your Problem solved?
(im just asking to make sure you recognized my edit-"idea" from my last posting)
---
@ ALL :updated the demo again:
-corrected some wrong Help Text (green text)
No other changes