So I'm currently working on a project based on Persona, heavily relying on VisuStella's STB Battle System. Basically in Persona if a battle ends with an All Out Attack it can trigger a variety of different bonuses (depending on the game). Is there a way - before EXP and rewards are handed out - to determine if an All Out Attack is what ended the battle? Basically it would need to process right between the last enemy dying and the standard end of combat procedures.
The All Out Attack is currently a Common Event, and I've tried putting stuff at the end of it that SHOULD process before combat ends, but it just... doesn't really. Any advice?
combat ends with the death of the last enemy while aborting all skill common events as no longer needed.
there are two ways aroung that: either install a plugin with after-combat-triggers, or use an immortal state with troop events to trick the engine.
for the evented solution you'll have to use a troop event on turn 0 to give all enemies an immortal state and then one troop event for each enemy conditioned on HP=0. that event would then process everything needed before removing the immortal state, causing the enemy to die (and the combat to end if it was the last enemy)
it may be a bit tricky to coordinate that with your skill common event however - that depends on what that does
I managed to get it to work by using the Immortal state. It's not exactly elegant, but so far I think it'll do what I want it to. Basically I apply the state, calculate how much damage the AOA will do, compare it to the enemy's health to see if it will kill them all, then determine whether or not they're all 'dead'. If they are, I show the victory splash, kill all the enemies and the end of battle processes occur like normal, otherwise the battle progresses.
It probably could be smoother, but for right now it serves the purposes I need, so I'm happy with it. Honestly now that I think about it the Immortal state might not be used at all xD but oh well
Thank you guys!