A way to stop battle from immediately ending.

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
Is there a way to stop battle from immediately ending after defeating every enemy on screen? I want another enemy to appear right after the previous ones were destroyed, but without starting another battle.
 

Aceinfurno

The Padawan
Member
Joined
May 4, 2021
Messages
16
Reaction score
8
First Language
English
Primarily Uses
RMMV
You can have addons join the battle by coding it into the Troops battle event, having them "appear halfway" by right clicking the enemy model, and setting up for them to appear using the 3rd tab battle options
 

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
You can have addons join the battle by coding it into the Troops battle event, having them "appear halfway" by right clicking the enemy model, and setting up for them to appear using the 3rd tab battle options
I tried that, but the battle still ends after every visible enemy is defeated.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,319
Reaction score
8,379
First Language
German
Primarily Uses
RMMV
two ways:
you can either use a plugin to give additional triggers to troop events, or you can use an immortal state to trick the engine into handling troop events.


the second part basically requires a troop event on turn zero that gives all enemies an immortal state, then one troop event for each enemy conditioned to HP=0.
on those troop events you count up how many enemies are defeted before removing the immortal state, killing the enemy only after the troop event completed.
if the last enemy is dead, you add the new enemies before removing the immortal state.
 

Nerine

Veteran
Veteran
Joined
Oct 3, 2020
Messages
101
Reaction score
58
First Language
Polish
Primarily Uses
RMMZ
two ways:
you can either use a plugin to give additional triggers to troop events, or you can use an immortal state to trick the engine into handling troop events.


the second part basically requires a troop event on turn zero that gives all enemies an immortal state, then one troop event for each enemy conditioned to HP=0.
on those troop events you count up how many enemies are defeted before removing the immortal state, killing the enemy only after the troop event completed.
if the last enemy is dead, you add the new enemies before removing the immortal state.
Thank you.
 

Latest Threads

Latest Posts

Latest Profile Posts

I guess it becomes purely academic in less than four days but before then can anyone explain to me why the %^&*( animations in the MZ database don't have a 'Hue' slider??
Who here knows of the hidden laws of this multiverse? Such as the law of attraction
Exploding Fruits and Rasaks Pixelfarm Assets | RPG Maker News #108

So ghosts can go through walls and stuff, and depending their type (according to fantasy media) they can or can't interact with objects to a certain degree...

So why they don't always fall through floors? Do they always float and sometimes simulate walking? If things go through them how can they hear/see? And why sometimes they have clothing? Do clothes die as well?
my birthday was yesterday...
i feel closer 2 being able 2 get a discount on the kids menu than i do being able to buy booze1627428008986.png

Forum statistics

Threads
113,704
Messages
1,076,783
Members
147,728
Latest member
Alteria
Top