MV BattleSystem swapping

Hello ^^

I come to you hoping to find a solution to my problem

Hinola, a very kind person, wrote me (a few months ago) 2 plugins, concerning 2 more/less identical variations of the Battle System that I wanted

Now, I would like to know if there is (or if it is possible to create) an event or a plugin allowing you to activate and/or deactivate other plugins

Let me explain :

The plugins that Hinola kindly made me are 2 variants of a “side-locked” BattleSystem:
- One BattleSystem where all allies attack one by one (depending on their location in the team in a fixed and immutable order) then where it is the opponents' turn (attached the .js "Battle_Order_Modified")
- One BattleSystem where all the allies attack one by one (depending on their respective AGI) then where it is the opponents' turn (attached the .js "Battle_Order")

I want to give the player the choice:
Do a BatleSystem-Locked adventure (without the possibility of changing during the adventure) or BattleSystem-friendly (allowing you to change the Battle system during the game (excluding combat) in order to offer it different experiences, but also to offer it the choice to change during the adventure (to vary in order to avoid weariness or to explore new things)

Thus, when creating a new part, a choice will be offered to him:
“BattleSystem Fixed” or “BattleSystem Variable”

And in both cases, he will then have to choose to start with 1 of the 3 Battles systems:
-Tactical (BatleSystem rather slow, access to reflection and action optimization mechanics), represented by the sidelocked Hinola BattleSystem depending on the location in the team
-Active Tactical ("transitional" BattleSystem between Tactical and AT😎, represented by the sidelocked Hinola BattleSystem function of the AGI
-Active Time Based (rather fast BattleSystem, based on action and on-the-spot reflections), represented by the Yanfly ATB Plugin (http://www.yanfly.moe/wiki/Battle_System_-_ATB_(YEP))

[Then, in the case of the "BattleSystem Variable" selection, allow the change of BattleSystem among the 3 available, thanks to an option in the menus, or by interacting with an event (object, NPC, etc.) ]


Therefore, I should be able to deactivate 2 of the plugins and activate the 3rd, via an event or other (unless it is possible to create a sort of merger between the 3 plugins in order to have only one alone, and in this merge plugin, a functionality allows you to select one or the other of the 3 Battlesystems without restriction)
No. Plugins are loaded to be a part of your game's code, you can't just yank them out (or shove them in) while the game is running.

Your plugins would have to be coded with some way - plugin commands, switches, etc. - that allows you to toggle features on and off.

You (or your plugin writers) also need to be very careful about functions that are repeated/overwritten by the various plugins, they have to be written in a way that takes all of the plugins into account.

What you're asking to do is a very (and I would say overly) complicated thing.

I'm not sure why you want to give this level of customization to the player, but I would suggest something that's as integral to your game as the battle system should be what you want it to be, and players will decide whether it's to their liking or not - just like every other game on the market.
No. Plugins are loaded to be a part of your game's code, you can't just yank them out (or shove them in) while the game is running.

Your plugins would have to be coded with some way - plugin commands, switches, etc. - that allows you to toggle features on and off.

You (or your plugin writers) also need to be very careful about functions that are repeated/overwritten by the various plugins, they have to be written in a way that takes all of the plugins into account.

What you're asking to do is a very (and I would say overly) complicated thing.

I'm not sure why you want to give this level of customization to the player, but I would suggest something that's as integral to your game as the battle system should be what you want it to be, and players will decide whether it's to their liking or not - just like every other game on the market.

But Yanfly's video (and yanfly ATB description) shows that it is indeed possible to create a system allowing you to change BattleSystems, right?
...yes, because Yanfly coded them that way, which is what I said needed to be done in my post 😛

And if you have Yanfly's Battle Engine Core, the very first plugin parameter (which I mentioned) is choosing which battle system is being used, and it has a setBattleSys plugin command (which I mentioned).

In case it's not obvious, there is a difference between:
- one author makes a handful of plugins, intentionally makes them compatible, gives you ways to turn features on and off

- you taking plugins from multiple authors, intended to work by themselves, trying to turn on and off code that wasn't written to be turned off
i understand

In this case, would it be possible to write a completely new PlugIn, consisting of an ATB similar to that of Yanfly, and 2 BattleSystems similar to those already written, and this in the same "code" by the same "author" , and allowing (just like yanfly allows in its dedicated plugin) the swap between the 3?

[Or failing that, to find how to rewrite the 3 plugins in the same single code in order to merge them]

(so there would be no compatibility issues)

Original thread: https://forums.rpgmakerweb.com/threads/battlesystem-swapping.171102/