Conditional Branch - Check if Ambush/Preemptive strike

AdamSakuru

[Null_Value]
Veteran
Joined
Mar 14, 2014
Messages
314
Reaction score
171
First Language
English
Primarily Uses
N/A
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?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
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.
 

AdamSakuru

[Null_Value]
Veteran
Joined
Mar 14, 2014
Messages
314
Reaction score
171
First Language
English
Primarily Uses
N/A
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.
 

Attachments

Last edited:

AdamSakuru

[Null_Value]
Veteran
Joined
Mar 14, 2014
Messages
314
Reaction score
171
First Language
English
Primarily Uses
N/A
@Andar

So even with those two plugins, I don't have a way to account for pre-emptive or ambush battles that occur randomly (outside of being forced by Tsukuhime's plugin).

Is it possible for me to check in a conditional branch that runs on turn 0 if the battle was started as either pre-emptive or as an ambush?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top