Looking for a script that will let me change the order of party members.

Mcleavestein

Veteran
Veteran
Joined
Feb 15, 2016
Messages
51
Reaction score
12
First Language
English
Primarily Uses
I created a summoner type class that summons companions during and between battles. The only problem is when I add them to the party, they automatically go to the end of the list of followers. I need either a script call or some sort of common event that will put the pet in one of the top party slots, preferably slot 4.


I found this...


idx1 = 0
idx2 = $game_actors[2].index
$game_party.swap_order(idx1, idx2)


for VX and tried to edit it to get it to work with js, but had no luck. Any help would be greatly appreciated.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
if it adds them to the end, something like this should work:


idx1 = 3
idx2 = $gameParty.members().length - 1;
$gameParty.swapOrder(idx1, idx2);


Of course you'd only want to do that if there are more than 4 members in the party after adding them.
 

Mcleavestein

Veteran
Veteran
Joined
Feb 15, 2016
Messages
51
Reaction score
12
First Language
English
Primarily Uses
Awesome! Seems to have fixed my issue. The community here has been great so far. Thanks!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top