I have an event that runs at the start of every battle that switches between a "Command Phase" visual (chose actions) and a "Battle Phase" visual (actions are acted out). I want to skip the first part if the party was ambushed (as it would just go to the "Battle Phase" right off the bat.) I thought a good way to do this would be to use a conditional branch to check if the battle started as an ambush on the party.
Is this possible with script in a conditional branch?
that depends on how the battle started and how the event is constructed (and if it is a troop event or a map event) and so on.
The problem is for example that with the battleprocessing command, there is no preemptive/surprise - those exist only on random battles
And FYI: Tsukihime wrote a plugin that allows you to set surprise and preemptive by variables and another that executes a common event before battle even for random battles, so you might check her website and compare those plugins.
Here's a screen-cap so you can see. The first common event does some flashy stuff with images to open the battle scene and the second common event is the initial 'command phase' visual stuff. I'll check out Tsukuhime's plugin though!
Edit:
To be more specific, this is a check I would be doing through the event tab of random battles. So the conditional branch would be the first thing to run and it would check through the script call to see if it's running the normal version of the visual "Command Phase" (no ambush) or if it skips that and goes right to the "Battle Phase" (ambush) visual.
So this would happen right as the battle would start/would be the first thing to run in battle.