cellicom's PartySaver - Save and Load the order of party members

Hi to all,
I have developed a plugin for myself, but I think it might be useful to someone.

cellicom's Party Saver
RPG Maker MV Plugin

cellicom​

Features
● Save the order of party members.
● Load and Overwrite the order of party members.

How to use
Easy Peazy!
USE A SCRIPT BLOCK!

Spoiler: Click Me
● Get Party IDs - Get a comma separated string of current members IDs
JavaScript:
cellicom.getPartyIds();

● Save Party - use params for variableID
JavaScript:
cellicom.saveParty();

● Restore Party - use params for variableID
JavaScript:
cellicom.loadParty();

● Save Party - use an ID for x
JavaScript:
cellicom.saveParty(x);
cellicom.saveParty(5);
● Restore Party - use an ID for x
JavaScript:
cellicom.loadParty(x);
cellicom.loadParty(5);

How to Install
- Copy the script file into your project's /js/plugins/ folder.


Plugin
Get it here


Credit and Thanks
- cellicom


Terms
Free to use in any RPG Maker MV project including commercial. Credit are appreciated 🙂

Enjoy!
I dont have a party, but out of curiously, how exactly is this usefull?

like if you use formation and when you are alone, and they add it back,
it would be a different formation you set too?

or does it have a different kind that this is usefull too? like, a battlefield
of 3 parties?
I dont have a party, but out of curiously, how exactly is this usefull?

like if you use formation and when you are alone, and they add it back,
it would be a different formation you set too?

or does it have a different kind that this is usefull too? like, a battlefield
of 3 parties?

I'll try to explain what was my case study.
This plugin work with party with 2 or more members.

I Have a party of 4 members, with formation 4,2,1,3 (actorIDS) because che user changed the initial order.
I have to do an action event with only one of them.
So, with text and a choose, I select the member n°3 (alias actor ID1)
Then, i remove all other members from the party
Do the action event (nevermind what is is, in my case was a lottery)
Now, I have to restore the other members.
So I re-add the members and, in this case, my actual party orders is 1,2,3,4
This is different from the begin.

The plugin's work is this.
Save in a variable the current formation and when you call the script, restore the same formation as origin

I hope I made you understand the usefulness of this plugin, perhaps a little too specific.
Surely it could be done in a different way with a series of conditions and variables. But so we optimize (and speed up) everything with a variable and a handy script

P.S: forgive my (probably) bad English: D
definitely going to have to give this a try. i really like the idea of letting my player choose party order, but when they walk into a cut scene where the party splits up to chat, first party member may be different.

figure if i use this, i can gather members, change the first party member to the main character, finish up the scene, move all the event characters where they're supposed to be, and BOOM back to player's order.
Thank for the explaination @cellicom =)
that is really usefull, but I think you forgot 2x " ; " at return, but I think
if you can extend it to more parties?

like if you have a party of 3 groups, you could save this order, there is
a game I know, that a party of 6 or 8 is splitted into 2 groups. and later
into 3 groups, so it could be usefull to save those.

unless you could also save the id's of p[0], p[1] and p[2] (group 1, 2, 3)?
or 3 different variables if you could save variables 1, 2, 5 instead of a single variable?

it's seem really usefull, so I save the plugin just in case 🙂
If I understand correctly, you can do such a thing.
My plugin only saves the active party.

So you can do this:
Set the active party, and call cellicom.saveParty(1);
In this way, it saves the party as it is on variable ID 1
Set the second active party, and call cellicom.saveParty(2);
In this way, it saves the party as it is on variable ID 2, without overwriting party 1
Do the same with the third party active.

And when you want to change party, just call cellicom.loadParty(x); where X is the variable you are interested in.

Fixed the missing ";"
Thanks @ShadowDragon !
than you dont even need to use the VariableID in the parameter,
but maybe saver as placeholder 🙂

I will add the 2 additional lines in your reply to plugin for a reminder,
maybe it comes in handy ^^

I think people working or games with 2+ groups as role playing or
splitting groups, they find this plugin very usefull, specially if they
use party visual on the map (followers) to keep as they are.

thanks again for the additional information =)

Original thread: https://forums.rpgmakerweb.com/threads/cellicoms-partysaver-save-and-load-the-order-of-party-members.146458/