Battle event on troops

Status
Not open for further replies.

DarknessFalls

Rpg Maker Jesus - JS Dev.
Veteran
Joined
Jun 7, 2013
Messages
1,393
Reaction score
210
First Language
English
Is there a way to set switch when all the enemies are dead in a troop? It allows me to select one of the enemies and say if hp <= 0. But how do you say, if all enemies in this troop are dead ?? 

Do I need a script?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Please don't be in such a hurry to report a topic for closing. It hasn't even been 24 hours since you posted, and I haven't seen this thread until now.


Do you allow escape, or do you use events for your battles and have the 'continue when losing' option? If no to either of those, you can simply turn on a switch at the start of your battle. If you win, the switch will be on after the battle ends. If you lose, you'll have to load a saved game which will have the switch off.


RM stops processing troop events when the last enemy is killed, so any events that are triggered by an enemy's HP being <= 0 will not run for the last enemy. If you allow escape or continue when losing, you will need to modify the scripts or use a plugin. I have already written one to turn on switches based on battle outcome win/lose/escape/abort, but really if you only want it turned on when you win, it's a one-line addition, and a plugin is probably overkill since you have the skills to do it yourself.


Closing at OP's request
 
Last edited by a moderator:
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,551
Members
137,837
Latest member
Dabi
Top