Help with boss fight event.

I'm having a bit of trouble with a little "easter egg" event for one of the boss battles in my game.

In the battle, there is some dialogue at the beginning where the boss tells the party to hold still and she will make their deaths quick and painless.

I thought it would be funny if I added in a special event for when the party actually does "hold still" immediately after the dialogue. ("Guard" is entered as the first command for all four party members.)

I currently have too major problems trying to set this up. First of all, the first command input apparently does not count as neither turn 0 nor turn 1, meaning the event isn't executing at the moment I want it to. Secondly, I can't seem to get the event to execute on any turn at all. (I'm using conditional branches to check if the party is all using "Guard" at once.)

Can someone please help me make this work?

Screenshot of the main page my event (all the other two pages do is turn a switch on and off so that the easter egg can only be triggered immediately after the opening dialogue in page 1.):

Capture.PNG

(Also, if there's a way to do it so that it triggers before the boss does anything (the boss always moves last, it has an agility of 1) as opposed to the end of the turn, could you please let me know?)
We need to see all 3 pages of that event to best tell you how to fix it.
We need to see all 3 pages of that event to best tell you how to fix it.
The only page that matters is the one I took a screenshot of. The only important thing pages 1 and 3 do is turn a switch (switch #76) on and off, respectively, in order to set up the turn interval for when page 2 can be executed.
If you can't get the event to even start, then something is wrong with either page 1 or 3 and it won't be possible to fix the issue without seeing those pages as well.
If you can't get the event to even start, then something is wrong with either page 1 or 3 and it won't be possible to fix the issue without seeing those pages as well.
Pages 1 and 3 aren't the problem though. I know that the game at least tries to execute page 2, because if I set page 2 to "Moment" the game will freeze as soon as the first turn ends when everyone's guarding. Which means that the switch was successfully turned on on page 1 and therefore the conditions to execute page 2 have been met. If the switch controlling page 2 was the problem the game wouldn't have froze at that instant.

EDIT: And if I insert a piece of text right in front of the conditional branches, that text will be displayed too. It wouldn't happen if something was wrong with page 1.
Or the event is setup so that when page 3 finishes it goes back to page 1 and repeats that without ever even looking at page 2.
Or the event is setup so that when page 3 finishes it goes back to page 1 and repeats that without ever even looking at page 2.
EDIT: And if I insert a piece of text right in front of the conditional branches, that text will be displayed too. It wouldn't happen if something was wrong with page 1.
^This is proof that it does, indeed, look at page 2.
@Dalamar: You confused regular event behaviour (with page priority) with troop event behaviour (without page priority)

The problem here is most probably the turn sequence of the battlesystem - if I remember correctly then the states that end in a specific turn are removed on that turn before the events are processed, which means that the conditional branch can only check for states that last more than a single turn.

But I could be wrong  - in that case it has to be something in the conditions you set for that event, and unfortunately those are not completely readable because there is not enough space in that line. Can you give us a screenshot of the condition window?
@Dalamar: You confused regular event behaviour (with page priority) with troop event behaviour (without page priority)

The problem here is most probably the turn sequence of the battlesystem - if I remember correctly then the states that end in a specific turn are removed on that turn before the events are processed, which means that the conditional branch can only check for states that last more than a single turn.

But I could be wrong  - in that case it has to be something in the conditions you set for that event, and unfortunately those are not completely readable because there is not enough space in that line. Can you give us a screenshot of the condition window?
That's probably it, then.

The conditions for the event are the two that you can see in the line.

"When at end of turn && Switch[0076:Interval]"

(The conditions for pages 1 and 3 are "Turn no. 0" and "Turn no. 2" respectively.)
Tsukihime has a script for additional battle event triggers - I don't know which triggers that adds, but it might help.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-boss-fight-event.42841/