How to make a Battle Event after all party member turns?

The conditions for battle events seems pretty limited. I'm trying to trigger something when party members are finished and enemies begin attacking, or after both party members and enemies are finished (the whole turn). How would I be able to do this?
first, you probably got the timing wrong - there is no player turn or enemy turn, only a battleturn.

in the selection phase, actions are selected for both actor and enemy. after that each actions gets a number based on battler.agi plus skill.speed plus random percentage.
then all actions are executed in order top to bottom - no matter if actor or enemy.

only if the actors have much higher agi than enemies and no skill speed is used, it might look like the player come before the enemies - give the enemies better agi and it will be the other way around.

second, there is a condition on the battle events that is for turn end - simply use that in addition to the other conditions you set.
first, you probably got the timing wrong - there is no player turn or enemy turn, only a battleturn.

in the selection phase, actions are selected for both actor and enemy. after that each actions gets a number based on battler.agi plus skill.speed plus random percentage.
then all actions are executed in order top to bottom - no matter if actor or enemy.

only if the actors have much higher agi than enemies and no skill speed is used, it might look like the player come before the enemies - give the enemies better agi and it will be the other way around.

second, there is a condition on the battle events that is for turn end - simply use that in addition to the other conditions you set.
Turn end won't work for me, because I'm using a script that technically makes every action ensue a new turn. So after performing any action, the Battle Event will be triggered. Is there a way to trigger a battle event when the full battleturn is finished, but before the next one starts?
Is there a way to trigger a battle event when the full battleturn is finished, but before the next one starts
this is exactl what the turn end is supposed to be.

so if a plugin changes the sequence to make it something else, then there is no other default method.
you would have to analyze the plugin to learn what exactly it does and what method it provides to replace the regular turn-end-condition.
Turn end won't work for me, because I'm using a script that technically makes every action ensue a new turn. So after performing any action, the Battle Event will be triggered. Is there a way to trigger a battle event when the full battleturn is finished, but before the next one starts?

If you have a plug-in/script that makes it so an event ran on "Turn End" runs at the end of every action instead of at the end of all the actions, you could do the following to compensate with some Common Events:
Create a Common Event in all your Troops.

Create a Variable called "Battle Size" and at the beginning of every Troop Battle, have Battle Size get set to equal the total size of the Party + the total size of the number of Enemies in the Troop.

- If your party size is always the same for these Troops, then just have (example of 4 Actors) this be a line that says "Battle Size = 6" for Troops of 2, "Battle Size = 7" for Troops of 3, "Battle Size = 8" for Troops of 4 etc.
- If your party size can be different depending on Player actions up until now, then create another Variable called "Party Size" and update the Party Size Variable in your game whenever changes are made to the Party. Then, have this Common Event say "Battle Size = Party Size" on one line and then "Battle Size + 2" for a Troop Size of 2 on the next line (or +3 for a Troop size of 3, 4 for 4, etc. etc.).


Now you have a Battle Size variable that you can use to make this whole thing work.

Next, you need to have a counter that checks when the total number of actions used so far equals the Battle Size Variable. As when it does, that will mean it's the end of that "turn" for you, so you can then run the event you actually want to run.
This can be done one of two ways:

- You can add a Common Event on all of your Skills in the Database that simply makes it so whenever a Skill is used, we get +1 to a new counting Variable we'll call "Actions Used".
- Or you can do this via each entry in your Troop database instead:
As you've made it so "Turn End" triggers after every action with your script, all you need to do is put an Event that runs on "Turn End" (which is really action end for you) that adds +1 to the "Actions Used" Variable.


Whichever method you end up using, the end result should be the same.
You have an "Actions Used" variable that keeps going up whenever an action is used by an Enemy or an Actor.

Now, you simply need to include in your Troops a Common Event that does the following:

- Conditional Branch: If "Actions Used" is = to or > than "Battle Size"
-- Run The Event you wish to use on 'turn end' Here
-- Set "Actions Used" to 0
else (if "Actions Used" is < than "Battle Size")
--
- end


And now you have an Event that runs after everyone's actions have been taken!
But wait! What if someone is KO'd or an Enemy is defeated?
Won't that mess with the Battle Size Variable?
Yes it will!

So you will also need to have the following in your Troop Event as well:

- Conditional Branch: If Enemy #1 HP = 0
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Enemy #2 HP = 0
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Enemy #3 HP = 0
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Enemy #4 HP = 0
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Enemy #5 HP = 0
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Enemy #6 HP = 0
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Enemy #7 HP = 0
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Enemy #8 HP = 0
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Actor #1 has the State Knocked Out
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Actor #2 has the State Knocked Out
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Actor #3 has the State Knocked Out
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end
- Conditional Branch: If Actor #4 has the State Knocked Out
-- Reduce "Battle Size" by 1 (aka Battle Size -1)
end


And that should be enough to make all of this work for you!

==========================

Of course, it would be a lot less time consuming to just write another script that works in tandum with the script you're already using, in order to accomplish something similar.

But I don't know how to do that lol.
If you or someone you know does however, then this is the sort of logic it could follow in order to accomplish what you want.

Hope it helps!
Was fun to think about.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-battle-event-after-all-party-member-turns.152007/