And do you have that implemented?
Concisely, please, what exactly works and doesn't at this point?
You bet! So as I listed in the last code update this is what I have under the transformed state:
Code:
<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 = 6;
// Transform the user.
user.transform(transformEnemyId);
}
</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
user.transform(transformEnemyId);
// Clear the archived data.
user._prevEnemyId = undefined;
delete user._captured;
}
</Custom Remove Effect>
According to Yanfly's video and article
http://www.yanfly.moe/wiki/Enemy_Transformations_(MV_Plugin_Tips_&_Tricks) it looks like I should have it correct?
Right now what works:
Enemy transforms successfully using the skill showing both stats, skills, and sprite successfully switched to new form.
Enemy does turn back if timer expires
Enemy successfully applied Captured state to Actor when Capture skill is used.
Captured Actor successfully turns invisible when captured.
What doesn't work:
Unless enemy has Invincible state added, when defeated while transformed they are defeated altogether and the battle ends.
If enemy has Invincible state added, or the state expires due to turn time the enemy turns back but retains the stats of the transformed enemy rather than returning to their own at the time of transforming.
Defeating the transformed enemy and de-transforming them before the state expires does not remove the Captured state from the captured actor and does not return their visibility to 255.
I thought the progressive states plugin would allow me to move from the Captured state to knockout once timer runs out but it doesn't seem to be working but I was very tired when working with on this step before and may just need further testing.