I am trying to create skills that bring specific actors into the battle and then remove them when either they are knocked out or the battle ends, like a traditional summon (And, before you ask, yes, I have already tried different summoning plugins. None of them worked for me.)
That's odd, SRD's summon plugin works perfectly for me with a bunch of Yanfly plugins in the project.
I started by creating a 'Summoned' state with a <Custom Remove Effect>, <Custom Leave Effect>
There's no reason for that; Custom Remove is more encompassing and contains Custom Leave. Having both of those notetags present will result in the code running twice when your state decays. And if your state doesn't decay after a number of turns, the Custom Leave is pointless because that's the only time it runs.
I then set up a common event to summon each actor when a specific skill is used and apply the 'Summoned' state to them. The 'Summoned' state did work, but the CE didn't always apply the effect when it was supposed to
We'd have to see the event to try to troubleshoot that. It should be able to work, although I would personally choose a different route (like resolving whatever issues you have with the Summon Core).
The only thing that seemed to work was setting a switch for each summoned actor, setting up a battle event to apply the 'Summoned' state every turn (turn based) and then setting up another BE to remove the 'Summoned' state, turn the respective switch off and remove the actor from the party...when the actor's HP reached 0
Even
if this were the only solution, there are other more efficient ways.
- Use a plugin to run a common event on actor death, check if they're a summon and remove them from the party. Nothing in the troop necessary.
- Use a plugin to create a custom troop condition that can check for any specific dead actors instead of needing a separate event for each one. Only one troop event necessary.
By this point, I am almost completely resigned to the fact that there are going to be glitches in the summoning method that I cannot fix, unless someone comes up with a way to either install multiple Base Troop Events or have a parallel CE run throughout the battle without freezing it.
I'm just sort of bemused that you have these other, better ways to implement things, and you're not trying to fix those
😉 This whole system that you've outlined is like covering your rotten boat with duct tape to keep sailing on it.
Instead of trying to fix
this, why not try to fix one of the higher level parts that would work better? Ask for help to get your common event working correctly. Ask for help to get the Summon Core (or another equivalent plugin) working correctly. Having 40 events in all troops (or, really,
any troop) just doesn't seem like the best place to stand your ground.