Making an enemy immortal whenever another enemy is alive, how?

MrWeeb

Warper
Member
Joined
Mar 15, 2020
Messages
4
Reaction score
0
First Language
Dutch
Primarily Uses
RMMV
I want to make a battle that whenever there's an enemy other than the boss alive the boss will reciece 0 damage from every single attack. The battle consists of 3 phases, the first enemy group appears at 75% HP, the second at 50% and the final at 25%.

Currently it only works for the first group but because it removes the immortal state when any of the enemies are dead it keeps getting removed the turn after the second group appears, how can I change it so that it won't be removed when one of the enemies that appear is defeated but only when there are 0 other enemies alive?

I use MV btw.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,003
Reaction score
7,481
First Language
German
Primarily Uses
RMMV
it depends a lot on how you handled both the appearing and the immortality.
Usually I would use a single turn 0 troop event to give the immortal state, and then one troop event for each enemy to handle what should happen when that enemy dies, checking which states to remove and which enemies to appear.

if you work differently, we need a screenshot of your events
 

MrWeeb

Warper
Member
Joined
Mar 15, 2020
Messages
4
Reaction score
0
First Language
Dutch
Primarily Uses
RMMV
it depends a lot on how you handled both the appearing and the immortality.
Usually I would use a single turn 0 troop event to give the immortal state, and then one troop event for each enemy to handle what should happen when that enemy dies, checking which states to remove and which enemies to appear.

if you work differently, we need a screenshot of your events
That helped a lot, it works now. Thank you.
 

MrWeeb

Warper
Member
Joined
Mar 15, 2020
Messages
4
Reaction score
0
First Language
Dutch
Primarily Uses
RMMV
That helped a lot, it works now. Thank you.
It doesn't, Now the immortal state keeps disappearing after one turn because I thought if I made it 1 turn and that it always gets reapplied whenever the enemies are alive but it either disappears after one turn or after one of the two enemies dies.
 

MrWeeb

Warper
Member
Joined
Mar 15, 2020
Messages
4
Reaction score
0
First Language
Dutch
Primarily Uses
RMMV
My current layout of events is:

Page 1: The battle intro (Doesn't have anything to do with the rest, it's just an intro)
Page 2: When the boss is at 75% HP or lower the first two enemies appear and the immortal state gets applied.
Page 3 and 4: Same as 2 but at 50% and 25%
Page 5-10 Turn ends, conditional branch: If enemy is alive apply immortal state.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,003
Reaction score
7,481
First Language
German
Primarily Uses
RMMV
your "layout" is useless because it misses too many details on what you have done.
If you want help we need screenshots of every troop event and the immortal state to see what you have done.
 

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

Latest Threads

Latest Posts

Latest Profile Posts


Finally! I've been puzzling over why it wasn't working for two days now. Turns out all of my calculations were correct, I just forgot to give some events hitboxes. :kaoswt: Now my randomly generated maps check for collision errors, and move stuff around in real time if they finds any. :LZSexcite:
Ami
--- OP Candy ---

Kids: Trick Or Treat!
Hero: Alright,here's the Candies (Give A Bunch Of Candy).
Kids: Thank you,Mister! (Running)
Hero: How cute they are…
F.Archer: Did you give them a OP Candy,accidently?
Hero: Huh?
Halloween, a day where kids are encouraged to take candy from strangers.
Stream will be live shortly with a session of the Interactive Text Adventure! Feel free to drop by!
Took a break from spriting dinosaurs to carve a dinosaur pumpkin.

Forum statistics

Threads
104,672
Messages
1,007,989
Members
136,161
Latest member
vendomis
Top