Battle victory triggers event

Hi,

I'm having a really hard time figuring out how to trigger an event after the hero has a victory.  I'm not using in-map enemy sprites.  

The event can be triggered for any victory in a particular dungeon or for any victory over a particular troop--thus it'll be triggered repeatedly in either case.  I hope what I'm trying to do is clear enough.  Thanks for the help. 
I haven't checked this for MV, but it should work the same as it did on Ace:

Make a common event "after Battle" and set it to parallel process, triggered on a switch that isn't used anywhere else.

In the common event, make whatever changes you want, and as the last command controll off the switch of the event (so that it runs only once)

Then in every battle that you want to trigger this event, make a control switch ON on the first turn.

Parallel processes don't run during battlescreen, so it will only be processed after the battle.

You'll have to check for escapes however
Wow, that's really simple and helpful.  The only problem is that if the player escapes during battle, it triggers the event also.  I'm not against turning escapes off for these troops, I would just like to know if there's a way around having to do that.
you can make variables with wining count

then make event with conditional Branch and check if variable get more points the it will triggers the event you want
Yeah, I'm seeing ways of adding to a variable when a single enemy dies.  But I'm not finding it for when an entire troop is defeated, which I think is what I really need.  Maybe I'm just not seeing it. 
variables = $gameSystem.winCount()
variables = $gameSystem.winCount()
I appreciate the assistance, but I have no idea what this means.  I was hoping to accomplish this without code, if possible.
Then in every battle that you want to trigger this event, make a control switch ON on the first turn.
I'm confused as to why instead of setting the condition to first turn, as Andar suggested, that the condition doesn't work when I set the enemy HP to be at 0% to activate the switch. 
aaronjmcd2, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


If you want to reply to several people and quote them, use the MultiQuote button instead of quoting each one individually.


When enemy HP reaches 0, the battle is over, and no more troop events are run. So when the last enemy dies the battle ends and you return to the map before your troop event page is run. By setting it at the start of battle, you avoid that issue. If you win, the switch is on. If you lose, it's game over and you have to load an earlier save file. The only issue is if you try to escape mid-battle and succeed, the switch will also be on.


This might be of use to you ...


http://forums.rpgmakerweb.com/index.php?/topic/49437-battle-result-switches/
I appreciate the assistance, but I have no idea what this means.  I was hoping to accomplish this without code, if possible.
you need switch and common event

like this

Untitled5.jpg

Untitled6.jpg
you need switch and common event

like this
I can't say I understood it, but I copied it all piece by piece and it totally worked.  Thank you!  The only thing I had to add was an escape from the loop it created.  But that was easy.  Thanks again.

Original thread: https://forums.rpgmakerweb.com/threads/battle-victory-triggers-event.49430/