Lose/Win Conditions in Random Encounter?

Is there any way that you can create Lose/Win Conditions for a random encounter battle? I think it's preposterous that this isn't added in the database under the Troops section.


I basically just want, instead of a game over screen, a transfer that takes you to the last church you were in.


Any ideas? Or do I need a plugin?
A script/plugin would probably be the best solution, check the master plugin list in the MV script section. The script is pretty easy, so you can also ask nicely and request a script in the MV script section, after you've checked the master plugin list closely and haven't found a solution!


If you like to do things on your own, you can also create a random battle generator with events. Just count the steps the player did and if he/she did enough steps, launch the battle manually and check the outcome.


Scripting isn't also that hard to learn, but you should have a feeling for what you can do with events before you start scripting. To success!
A script/plugin would probably be the best solution, check the master plugin list in the MV script section. The script is pretty easy, so you can also ask nicely and request a script in the MV script section, after you've checked the master plugin list closely and haven't found a solution!


If you like to do things on your own, you can also create a random battle generator with events. Just count the steps the player did and if he/she did enough steps, launch the battle manually and check the outcome.


Scripting isn't also that hard to learn, but you should have a feeling for what you can do with events before you start scripting. To success!

I actually found a script for it 😛


I would like to do it on my own, but the issue is I've already got so much stuff I've done on my own through events and having yet another parallel process event on each map would take a performance hit. I've already got a dynamic lighting/day and night system in place that I've completely evented, and that goes for each map, so... I don't want to try to add more on to it.


I should have checked the plugin list first though xP what can I say. 
To have an event run in multiple maps  make a common event and set it up as a parallel process event. All you'll need is to turn on the switch, that will turn on the parallel process event, on once and it'll run on any map untill the switch is turned off.
To have an event run in multiple maps  make a common event and set it up as a parallel process event. All you'll need is to turn on the switch, that will turn on the parallel process event, on once and it'll run on any map untill the switch is turned off.

I got it all figured out.


It wouldn't work with a common event since every map has different encounters. You would have to do it on a per-map basis.


And even if it is a common event, it will still take up the same amount of processing power.
Mind if I ask what script you used?

Original thread: https://forums.rpgmakerweb.com/threads/lose-win-conditions-in-random-encounter.57232/