Hi! As the title suggests, I'm trying to implement a system where one of the boss's attacks is to call in another enemy as "reinforcement." I know what I want to do will require scripts to some degree. I haven't been able to find any good scripts that would accomplish what my goal is (at least ones that would work with MV). The way I want it to work is when the enemy uses the skill that summons in another enemy, they stay while the base enemy disappears from battle. Not killed or anything as once the new enemy dies, they'd come back to finish the fight. I have it set up in engine without scripts to get it so the boss can summon in the enemy using the skill and they appear. The part I'm having trouble with is getting the boss to disappear while the other enemy is on screen.
I tried to transform the boss into the new enemy. My idea was to log the boss's HP in a variable for what they were at when they switched and then to switch them back, using the variable for the HP, once the new enemy died. However, every time I tried, it just exited the battle. I also want to ask if there's a way for me to disable the skill once used. I want it to be a one-time thing as the enemy they summon is more of a henchman-type deal, rather than a typical enemy you'd see in regular battle. If there's no way for this to be done, that's okay. I can work it to obviously not rely on that but I wanted to check as this would be the ideal way for this to work in my eyes.
Either way, thanks for reading! 🙂
I tried to transform the boss into the new enemy. My idea was to log the boss's HP in a variable for what they were at when they switched and then to switch them back, using the variable for the HP, once the new enemy died. However, every time I tried, it just exited the battle. I also want to ask if there's a way for me to disable the skill once used. I want it to be a one-time thing as the enemy they summon is more of a henchman-type deal, rather than a typical enemy you'd see in regular battle. If there's no way for this to be done, that's okay. I can work it to obviously not rely on that but I wanted to check as this would be the ideal way for this to work in my eyes.
Either way, thanks for reading! 🙂