MZ RMMZ plugin for a full extension of troop, not visustella

Tell me the rmmz plugin for a full extension of troop, not visustella
Please
it is unclear what you are asking for. what do you mean by "extending" the troop? are you trying to have more than 8 enemies at a time?
it is unclear what you are asking for. what do you mean by "extending" the troop? are you trying to have more than 8 enemies at a time?
Yes, that's what I mean.
you can try this plugin
you can try this plugin
Unfortunately it doesn't give control over added enemies through events
I don't think there's a plugin for that, because the editor will only provide event commands for what is possible to do in the editor, which is 8 enemies.
No plugin can edit the editor, so it is impossible to get the ability to access more than 8 enemies via event commands. You'd need to go all in on script calls and plugin commands to access that.
No plugin can edit the editor, so it is impossible to get the ability to access more than 8 enemies via event commands. You'd need to go all in on script calls and plugin commands to access that.
Oh, how is it possible to do this?
Feature D20 of my plugin Cae_Tweaks has a plugin command "D20: Enemy Reinforcements":
It lets you select a troop to add to the current one, mid-battle.

(Obviously I know about this plugin because I wrote it, but I imagine there's another one somewhere.)

Edit: also, since this is requesting a plugin~

I've moved this thread to Plugin Requests (from MZ Support). Thank you.

Feature D20 of my plugin Cae_Tweaks has a plugin command "D20: Enemy Reinforcements":
It lets you select a troop to add to the current one, mid-battle.

(Obviously I know about this plugin because I wrote it, but I imagine there's another one somewhere.)

Edit: also, since this is requesting a plugin~
Moved to: Plugin Requests (from MZ Support)
1738090638043.png

When it comes to reinforcement, an error occurs, I also use plugins from visustella
Oh! OK, that seems to be a bug that I missed. In some cases, reinforcing with 2+ enemies can cause an out-of-bounds via addChildAt based on relative enemy Y-coordinates. Because it sorts the enemies, then tries to add the sprites at the correct places.

I think you can fix it by replacing this part of the plugin's code (line ~23053):
JavaScript:
            for (const s of es) {
                ss._battleField.addChildAt(s, ss._enemySprites.indexOf(s));
                if (s._battler.isAppeared())
                    s.startEffect("appear");
            }
...with this:
JavaScript:
            for (const s of es) {
                ss._battleField.addChild(s);
                if (s._battler.isAppeared())
                    s.startEffect("appear");
            }
            const b = ss._battleField.children;
            for (const s of ss._enemySprites) {
                const t = b[b.indexOf(s)];
                if (t)   // jic
                    ss._battleField.swapChildren(s, t);
            }
That seemed to fix the problem for me, without VisuStella. 👋

Tell me the rmmz plugin for a full extension of troop, not visustella
I also use plugins from visustella
VisuStella makes their code deliberately difficult to read, so if there is an incompatibility issue then you're basically forced to work with what VisuStella offers (or find an alternative to their plugins).
Oh! OK, that seems to be a bug that I missed. In some cases, reinforcing with 2+ enemies can cause an out-of-bounds via addChildAt based on relative enemy Y-coordinates. Because it sorts the enemies, then tries to add the sprites at the correct places.

I think you can fix it by replacing this part of the plugin's code (line ~23053):
JavaScript:
            for (const s of es) {
                ss._battleField.addChildAt(s, ss._enemySprites.indexOf(s));
                if (s._battler.isAppeared())
                    s.startEffect("appear");
            }
...with this:
JavaScript:
            for (const s of es) {
                ss._battleField.addChild(s);
                if (s._battler.isAppeared())
                    s.startEffect("appear");
            }
            const b = ss._battleField.children;
            for (const s of ss._enemySprites) {
                const t = b[b.indexOf(s)];
                if (t)   // jic
                    ss._battleField.swapChildren(s, t);
            }
That seemed to fix the problem for me, without VisuStella. 👋



VisuStella makes their code deliberately difficult to read, so if there is an incompatibility issue then you're basically forced to work with what VisuStella offers (or find an alternative to their plugins).
Thank you, this helped, but how do I interact with the enemies that appeared?
Great!
how do I interact with the enemies that appeared?
The added enemies should be selectable as usual. If not, then that is probably a plugin conflict.

I did notice another bug though (sorry!). This part (line ~23042):
JavaScript:
        for (const nme of M)
            nme.setLetter("");
...should include an onBattleStart call:
JavaScript:
        for (const nme of M) {
            nme.setLetter("");
            nme.onBattleStart();
        }
This should make the reinforcements do something (e.g. attack) rather than just stand there. I think I had that in an earlier version but it got lost at some point. 😅

If you're actually asking how to reference enemies 9+ through event commands: like others said, you need to use script calls for that. You may find the spreadsheet here helpful:
Great!

The added enemies should be selectable as usual. If not, then that is probably a plugin conflict.

I did notice another bug though (sorry!). This part (line ~23042):
JavaScript:
        for (const nme of M)
            nme.setLetter("");
...should include an onBattleStart call:
JavaScript:
        for (const nme of M) {
            nme.setLetter("");
            nme.onBattleStart();
        }
This should make the reinforcements do something (e.g. attack) rather than just stand there. I think I had that in an earlier version but it got lost at some point. 😅

If you're actually asking how to reference enemies 9+ through event commands: like others said, you need to use script calls for that. You may find the spreadsheet here helpful:
I noticed another bug, when reinforcing, the enemy layers are displayed incorrectly, meaning the bottom layer of enemies moves forward
when reinforcing, the enemy layers are displayed incorrectly, meaning the bottom layer of enemies moves forward
I cannot reproduce that, so it is probably one of your other plugins causing it. Cae_Tweaks D20 does not even look at enemy screen positions. Also, by default MZ has no such thing as "the bottom layer" of enemies: enemies are positioned on screen via the Troops tab of the Database.

You may want to share screenshot(s) of your Plugin Manager so people can see which plugins you're using and make better suggestions.
I cannot reproduce that, so it is probably one of your other plugins causing it. Cae_Tweaks D20 does not even look at enemy screen positions. Also, by default MZ has no such thing as "the bottom layer" of enemies: enemies are positioned on screen via the Troops tab of the Database.

You may want to share screenshot(s) of your Plugin Manager so people can see which plugins you're using and make better suggestions.
How can I activate the event window in battle using scripts?
How can I activate the event window in battle using scripts?
what does that question have to do with anything in this topic?
please help us solving one problem by posting the screenshots @caethyril asked for before trying anything else.
1738249395007.png
1738249468353.png
1738249558744.png

what does that question have to do with anything in this topic?
please help us solving one problem by posting the screenshots @caethyril asked for before trying anything else.

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-plugin-for-a-full-extension-of-troop-not-visustella.175013/