I'm currently working on a possession based rpg and I have a certain enemy that enters a state where they can leave their body, and then they can cast a skill that will instantly KO an ally. The planned behavior after that is that the enemy would transform into a different enemy that has the sprite of the ally as well as a combination of skills from the old enemy and the ally that was possessed. The issue is, I'm not sure how to initiate that transformation call after the the skill has been cast and the ally passes out. Should it be via a script call in the skill notetag? Or a common event? How would I grab the index of the enemy that called that skill as well as the ally who got hit by it?
(Ideally what would happen after the possession goes through)
(Ideally what would happen after the possession goes through)