Continue even if loser and "abort battle" command. Also, self switch during battle.

I am trying to create a semi-scripted battle between one actor and a dragon in a stadium. I have it to where a few turns in, the actor realizes that this dragon is one of his dragon wives. After successfully predicting the dragon's next move, he confirms it.


I want the battle to last until the dragon boss is down to 10% health or 27 turns if the actor has not been killed yet. If turn 27 occurs, the actor is shrunken and the dragon eats him. This applies a self switch B (A is already used to initiate movement of the dragon on the map) and the actor is killed off.

However, if the player gets the dragon down to 10% (only possible with at least two correct dialogue choices during battle), the dragon realizes that she is attacking her husband and the battle aborts.

Two questions.

Will that self switch B during battle be applied to the event and allow me to use it as a conditional branch in "if lose"?

and if I "abort battle" during battle, is that considered a win?
I see you have learned exactly zero things from the advice I gave you, great. 😀

Self switch B turning on during the battle will do nothing; when it interprets the command, it sees the event ID is not > 0 (since battle events have an event ID of 0) and it won't go any further than that.

"Abort battle" is considered neither a win nor a loss. The battle just ends, and it won't execute either branch.
I am trying to create a semi-scripted battle between one actor and a dragon in a stadium. I have it to where a few turns in, the actor realizes that this dragon is one of his dragon wives. After successfully predicting the dragon's next move, he confirms it.


I want the battle to last until the dragon boss is down to 10% health or 27 turns if the actor has not been killed yet. If turn 27 occurs, the actor is shrunken and the dragon eats him. This applies a self switch B (A is already used to initiate movement of the dragon on the map) and the actor is killed off.

However, if the player gets the dragon down to 10% (only possible with at least two correct dialogue choices during battle), the dragon realizes that she is attacking her husband and the battle aborts.

Two questions.

Will that self switch B during battle be applied to the event and allow me to use it as a conditional branch in "if lose"?

and if I "abort battle" during battle, is that considered a win?

Can we get some screenshots of this stuff please? The flavour around what's going on we can do without, but it'd be nice to have the information needed to support you with this 🙂
Well, the way that this is set up is kinda awkward to do screenshots for but here goes.

1700098374559.png


Battle event if case of turn 27
1700098444595.png


This will have Lose dialogue B upon death. I changed it to a numbered switch as per @Trihan said self switch will not work.

If the actor is killed by an attack before turn 27, switch #389 is not turned on and goes to Lose dialogue option A.

Regardless if A or B, it will go to Game Over screen.



However, if the boss gets to 10%
1700098705137.png


There will be short in-battle dialogue here followed by an abort battle.

If the battle is aborted, dialogue C will occur which I was asking if the system will read it as "If win" in the conditional branch in the first screenshot.

The boss resists death so 10% and abort is the only way out with no Game Over.
Well, the way that this is set up is kinda awkward to do screenshots for but here goes.

View attachment 284006

Battle event if case of turn 27
View attachment 284007

This will have Lose dialogue B upon death. I changed it to a numbered switch as per @Trihan said self switch will not work.

If the actor is killed by an attack before turn 27, switch #389 is not turned on and goes to Lose dialogue option A.

Regardless if A or B, it will go to Game Over screen.



However, if the boss gets to 10%
View attachment 284008

There will be short in-battle dialogue here followed by an abort battle.

If the battle is aborted, dialogue C will occur which I was asking if the system will read it as "If win" in the conditional branch in the first screenshot.

The boss resists death so 10% and abort is the only way out with no Game Over.
So what I'd do here is a conditional branch after the win/lose battle branch that runs if a switch is set that happens at turn 27, because on abort you neither win nor lose. That'd probably do what you want.
Turn 27 is actually a loss by being eaten, kills the character in battle. which has one stadium announcer dialogue before game over. dying mid battle has another dialogue before game over.

It is page 7, which I have yet to create that will be the abort battle with no death. Page 8, which is turn 27, won't happen if the boss gets to 10% and activates page 7 first.
The boss resists death so 10% and abort is the only way out with no Game Over.
You dont have to abort the fight in that case if thats the only way to win. you could just set the enemy to no collapse in the database, remove the resist death, give the enemy immortality at turn 0 with troop events, then remove it when it hits 10% or less, play your dialogue or what have you, remove immortality, and then apply death. the fight will end, the player will win, the boss doesnt visually die, and you can continue as normal from a win conditional block
Can't you select "can lose" when trigger the troop battle in VX Ace?

Also, just use a normal switch.
Turn 27 is actually a loss by being eaten, kills the character in battle. which has one stadium announcer dialogue before game over. dying mid battle has another dialogue before game over.

It is page 7, which I have yet to create that will be the abort battle with no death. Page 8, which is turn 27, won't happen if the boss gets to 10% and activates page 7 first.
Sorry, I misunderstood. This is why keeping to the facts is important, I couldn't tell what it was that you actually wanted because of all the flavour 🙂
Thanks for y'all's help. I will look into that stuff.

Original thread: https://forums.rpgmakerweb.com/threads/continue-even-if-loser-and-abort-battle-command-also-self-switch-during-battle.162971/