- Engine: RPG Maker MZ
- Tested on Engine Version: 1.5.0
- Plugin Version: 1.1.6
- Download: From itch.io
- Introduction: This plugin allows you to set different Formations for the side battle view. Each formation can have different coordinates for the actor battlers, and each formation can set coordinates for as many members you want. If formation allows more members than have registered, the rest would be positioned according formula, that orders them like in the default side view.
Those formation allow more than visual change, they also allow you to give param bonus. If you want to give additional bonuses, you can give state bonus too. The state will work only as traits object, and nothing will remove it as long the formation stays. Those bonuses can be for the entire formations, for individual party, members, or combinations of both. - Terms:
- Non-commercial Projects: Free to use. Please credit "GGZiron" in your project. Donations are appreciated, though not required.
- Commercial Projects: Free to use. Please credit "GGZiron" in your project. Donations are appreciated, though not required.
- Redistribution: Do not redistribute this plugin directly. Instead, link to my itch.io page.
- Modifications: Edits are allowed for personal use. Do not distribute the edited version. You may distribute this plugin only as part of your game.
- Extensions: You are allowed to create and distribute extensions for this plugin.
- Other Features:
- Option to hide or to deactivate a formation with the game switches. When hidden, formation doesn't display at all. When deactivated, it show alternative data(name "???" or "locked", alternative conditions that explains what must be done to unlock it, alternative description).
- Options to set one global background picture, as well one picture for each formation.
- Resize windows. Some sizes are changed directly, others – indirectly.
- Set Battleback for the window "Formation Display".
- Set motion for the actors.
- Set color tone and motion for the ghost actors (which represent the empty slots).
- Party Members can change formation position without changing their party index.
- The option to hide the condition window, in case you intend all formations to be without condition. That is not something you can change in-game, with plugin command.
- Screen Shots:
- Contact me if:
- You found bug with my plugin. Bug reports help me make it better. If reason is it doesn't go well with other plugin, might do or not do, depending how much free time I have and how popular is the other plugin.
- You want to say thanks.
- You got question about the terms.
- You want to suggest how to improve it.
- You want to commission me to adapt it for your project's specific needs.
- You want to send me published game that uses some of my plugins.
- Special thanks to: @JacSkulls and @Vuono87, for providing with me feedbacks and ideas!
GGZ Formation Manager [MZ]
JS Plugin Releases (RMMZ)Love the idea of using this plugin, a quick question/request. Would you be able to add update the "Default Member Position" plugin parameter to affect all of the formations available?
The battlers by default (in my case) are super close to the enemies in battle scenes, Lot of math needing to be done to update every formation manually otherwise.
The parameter as it stands only impacts the "Default Formation"
The battlers by default (in my case) are super close to the enemies in battle scenes, Lot of math needing to be done to update every formation manually otherwise.
The parameter as it stands only impacts the "Default Formation"
Hmmm, can you give me example when it doesn't work as you want? My "Default Member Position" parameter should work for all formations, as long you didn't assigned data for certain member index. Or you want to assign data(parameters, state for traits) but use default coordinates?
Hey, I did a big overhaul of my project so sorry for never responding.
This is what I meant:
Thats the Default formation with adjustments to the formation display
and Default Member position:
When I highlight over another formation, say Triangle:
The Home point set from default doesn't seem to carry over.
Do I have to set each individually? Or is there away to make the home point universal if not changed
.
Separate Ask as Im not seeing a way.
Is it possible to formation switch or position switch at least, mid battle? If so how would I set that up
This is what I meant:
Thats the Default formation with adjustments to the formation display
and Default Member position:
When I highlight over another formation, say Triangle:
The Home point set from default doesn't seem to carry over.
Do I have to set each individually? Or is there away to make the home point universal if not changed
.
Separate Ask as Im not seeing a way.
Is it possible to formation switch or position switch at least, mid battle? If so how would I set that up
Hello!
The first picture is not "Default Formation", but "Window Formation Display". Here, the X and Y offsets apply for all formations, within the Formation Scene only. Does not affect the actual formation coordinates in battle. You gave too big negative values for x offset, which is why triangle goes outside.
And you gave too big X for the default, which is why it still fits in. The "Default Member Position" are actual coordinates, that will affect the formation in battle.
If you really need to be those coordinates for the default, then you need to abjust triangle formation coordinates to be about same X and Y too, so they can fit in the same box.
My plugin doesn't support switching formations mid battle. The only way you can do this is via script call, using the formation index, but that will not lead to visual change until the next battle, only logical. Also, changing it this way would not care about formation conditions. May think something about it, when I get the time.
Index must be number starting from 0 (default formation) and ending with the count of your inserted formations in the "Formations" List.
The first picture is not "Default Formation", but "Window Formation Display". Here, the X and Y offsets apply for all formations, within the Formation Scene only. Does not affect the actual formation coordinates in battle. You gave too big negative values for x offset, which is why triangle goes outside.
And you gave too big X for the default, which is why it still fits in. The "Default Member Position" are actual coordinates, that will affect the formation in battle.
If you really need to be those coordinates for the default, then you need to abjust triangle formation coordinates to be about same X and Y too, so they can fit in the same box.
My plugin doesn't support switching formations mid battle. The only way you can do this is via script call, using the formation index, but that will not lead to visual change until the next battle, only logical. Also, changing it this way would not care about formation conditions. May think something about it, when I get the time.
JavaScript:
GGZiron.FormationManager.setCurrentFormationIndex(index);
Slightly confused on this one since I'd assume all the formations should be janky then, but I'll take another peak. I'm reading this as I have to update the other formations to start where I have default. I'll sort that when I come back around to it.
Heard. My main goal with this ask is effectively a "Switch" or "Shift" sort of command in battle that allows lined up Front and Back Row Party Members to swap places.
Since we can set specific parameter changes by position I have some cool ideas in my head about ways for my players to gain access to specific skills based on who's "leading" a pairing.
So if there is any script call that involves changing party index from one position to another would be awesome and give me something to work from
If not I'll see what I can work up ^_^
Yes, you got to update your other formations too, to be correctly positioned.
About your other request, currently, cannot give you script call. But will think what I can come up with, and will post update, if I come up with something.
I'll try to write up a more detailed use case this weekend and message it to you
Asking here since its less a personal request. Is there a way to set the Battle Formation via Script Call or Plugin Command?
It is possible, but isn't good way.
If done mid battle, as explained above, formation will not change visually, only logically. But for even outside battle, you need to know the formation index position, as so far it doesn't allow changing formation according ID name. Default formation is with index 0, others start from 1 and go to n. Changing this way doesn't care for conditions either, or if is visible and active, as that is very raw way to simply set to new formation.
The code is the following:
I didn't really meant this to be used as script call, that's why is bit longer.
Changing formation through index may lead to issues. One such issue is, if you later decide to add more in the Formations List, and you move it above others, you may need to change the index you use in the script call too.
Will try to give plugin command for this with my next update.
Edit: Just realized I gave this script call above. I am just back from tiring travel, so wasn't too focused when posting 😀.
If done mid battle, as explained above, formation will not change visually, only logically. But for even outside battle, you need to know the formation index position, as so far it doesn't allow changing formation according ID name. Default formation is with index 0, others start from 1 and go to n. Changing this way doesn't care for conditions either, or if is visible and active, as that is very raw way to simply set to new formation.
The code is the following:
JavaScript:
GGZiron.FormationManager.setCurrentFormationIndex(n);//replace n with desired index
I didn't really meant this to be used as script call, that's why is bit longer.
Changing formation through index may lead to issues. One such issue is, if you later decide to add more in the Formations List, and you move it above others, you may need to change the index you use in the script call too.
Will try to give plugin command for this with my next update.
Edit: Just realized I gave this script call above. I am just back from tiring travel, so wasn't too focused when posting 😀.
Hey found a bug, not sure the cause.
Having your this plugin enabled is preventing save files from being loaded. I disabled every other plugin but your Core and this one to test.
Having your this plugin enabled is preventing save files from being loaded. I disabled every other plugin but your Core and this one to test.
That should be expected.
When plugins modify data then your save files must have that modified data or else the game will not recognize the save file as a valid save file.
To illustrate this start a new game with the plugin enabled and save a game.
Then close the game and reload, and load the save game you just made. It should work.
Then disable the plugin and try to load the new save game, it should not work.
My guy, Im talking fresh saves (with this plugin alone enabled) not able to be loaded either.
Think I discovered the issue, will release hot fix as soon as possible (before the new features update). By as soon as possible, probably tomorrow.
That issue should happen when you save with default formation,right? My code bring id's to lower case and then trim the formation IDs, but forgot I set the default formation ID to be numeric. And when tries to bring numeric value to lower case, it brings the error. I tested saving and loading, but I always wanted to check it properly changed the formation, so I saved with some of the non-default, when been testing.
Sorry for the issue, and thanks for reporting.
@Roninator2 , I made my code create new data, if doesn't find the data related to my plugin in the save. Though, still not impossible error to occure in this situation, but would be again, error in my coding.
That issue should happen when you save with default formation,right? My code bring id's to lower case and then trim the formation IDs, but forgot I set the default formation ID to be numeric. And when tries to bring numeric value to lower case, it brings the error. I tested saving and loading, but I always wanted to check it properly changed the formation, so I saved with some of the non-default, when been testing.
Sorry for the issue, and thanks for reporting.
@Roninator2 , I made my code create new data, if doesn't find the data related to my plugin in the save. Though, still not impossible error to occure in this situation, but would be again, error in my coding.
Sounds good. Thank you!
Uploaded the new version. Now, it should be fixed.
Confirming to be working as designed now it seems. Thank you for the fix @GGZiron
The source code of my js file is open, and everyone who know little scripting, and took my file from the itch . io page, could see there are no trojans.
Edit: My Avast doesn't complain about it either.
Edit: My Avast doesn't complain about it either.
Windows Defender and Malwarebytes are crazy about your .zip here, it didn't happen with any other .zip plugin i downloaded, but it could be a false positive so who knows, if possible just put the .js file to download in itch
Original thread: https://forums.rpgmakerweb.com/threads/ggz-formation-manager-mz.153194/