Event to access a secondary battle system

I wonder if there are many ways to achieve the following, if someone could give some pointers to what needs setting up behind the scenes to make it all work.
A standard ATB battle would include a MINDCRUSH (sorry, Yugi-oh: Abridged fans) option where, when the option becomes available, you can exit the standard attack/magic turn-based battle and
drag your enemy into a mind-battle, which plays out like a mini-game, and is on a completely different field.
Simple rules to win the MINDCRUSH battle, based on logic (i.e. the really simple example for argument's sake could be rock-paper-scissors, but more complex could be a card game, like triple triad, or whatever).

Is there, presumably:

- an exit event from battle
- a start event into the minigame "arena"
- any other things I'm assuming/over-simplifying/missing?
There are definitely ways to do this, but I am failing to understand one thing: are you looking for advice on which mechanics shall be included in your minigame or are you asking how to implement such a thing in an engine?

I am masking this because it looks to me that you have your overall aesthetics laid down already, it looks like what you are missing is just the actual implementation and, if what you are looking for is the implementation itself, you might have much better luck asking in the forums for the specific engine you are using. Many people who use it on a daily basis have notifications on when somebody starts a thread there and can give you much more helpful and detailed help for its implementation than generic mechanics tips you can get from people who follow threads in this section.
Thanks for the response.
Yes, I'll try to gather my thoughts in some form of diagram and post in the MZ forums over the next day or so.

I'm new to using MZ but am just playing with some standalone proofs of concept and this was one.

It was the latter of the two situations you asked, so it's how to implement it in MZ.

I haven't gotten to grips with the limitations and possibilities of the events and scripting call order, yet.

Specifically with regards to interrupting a "normal" battle. I am looking for more than just an exit condition.

Maybe going about it the wrong way but if I am designing the mindcrush minigame in a separate map.

Want to access it after triggering an in-battle action (custom action for "mindcrush", instead of "attack" or "spells").

But after the minigame is over, either return to the map as previously before the regular battle started, or return directly to the ATB battle.

I guess anything is possible in some way.
Returning to a previous battle is almost impossible, because the base engine does not store the information of a battle outside the battlescreen.
I think there is one plugin that adds that functionality to allow a return to a previous battleturn, but I don't remember if that was for MV or MZ and if it could be modified to your functions.

Returning to the map on the other hand would be simple.


Second point: switching to an evented minigame from a battle is possible - you would just need to set a few flags and values for the minigame before aborting battle.

However it would really need to be an evented minigame, not an alternative battlesystem.
That is a technical difference because that minigame can easily be another form of a battle.
It's just that most people in the community think "different battlescene" instead of evented, and plugins for different battlesystems are usually incompatible to each other because they usually replace the same functions in the engine.

The third point you need to keep in mind is whether you use evented battles or random battles.
If you start a battle with the event command "Battle processing", you have more options than if you have the engine itself start the battle by random enounter list.
- an exit event from battle
This part is easy, you just "Abort Battle". However, like Andar said it's basically impossible to re-enter the battle in the state it was in.

the really simple example for argument's sake could be rock-paper-scissors
But if the minigame is this simple, then instead of actually breaking the battle, you can put the minigame inside of the skill/action. For instance, calling up a Common Event that asks you to select one of three options and then show if you won or lost is a pretty basic setup.

But I think an important thing to consider before actually diving into how to make it in your rpg maker of choice is; Do you want it to feel like it breaks and interrupts the battle or for it to happen as part of it?
Returning to a previous battle is almost impossible
like Andar said it's basically impossible to re-enter the battle in the state it was in.
I think the "impossibles" are overstating it 😉

It's not built into the event commands, and it's not a matter of, like, one script call for sure.

But it's implemented in Yanfly's Change Battle Equip - the state of the battle is saved, you go to the equip scene, then back to the battle scene and it restores everything from the variables.

That being said, it isn't a trivial thing to do, so I'd posit it's something you need to either start learning JavaScript toward or saving up some money to commission. Especially if you're using one of the non-standard battle systems, there's more you need to understand about the code and what has to be saved.

I just don't want to conflate "non-trivial" with "basically impossible."

Original thread: https://forums.rpgmakerweb.com/threads/event-to-access-a-secondary-battle-system.170099/