Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Just a simple, straightforward party order option...

I'm getting better at working with RGSS2, but I'm still having difficulties with certain things. My custom menu is 99% complete except I can't figure out how to change the party order.

Here's what I'm shooting for:

I've added to the command list "Party Change". When you select that option, the party member selection window comes up and you just select the first member, then another that you want to switch them with. I'm not interested in swapping party members in and out of the party, just ordering them around so you can put different characters in the lead. It's the most basic party changer I'm looking for but I can't get it right. I can get as far as bringing up the selection window, but I don't know where to take it from there.

Any advice would be greatly appreciated!

Thanks!
 
I suppose what you are looking for is this script right here:

http://www.rmxp.org/forums/index.php?topic=42719.0

EDIT: I just realized you are using RMVX. Not sure if the code below works, but it should. Haven't used RGSS2 much.

Though if you want to use your own system, you would have to provide me with a code so I know where to put in the actual swaps. The basic routine for doing this would be pretty simple. I imagine it as follows:

1: Set all actors to an individual actor array.
2: Pick an actor to swap.
3: Pick an actor to swap it with.
4: Swap the values of the individual array with the party array (in $game_party).

An example swap code:
Code:
$game_party.actors[swap_index] = saved_actors[selected_actor_index]

Hope any of this helps. I can provide a proper code for swapping if you did not intend to use the party-changer script.
 
I'd rather not use the party changer script. It just has too many features and fancy stuff I don't want to use. My main menu is basically the default menu. The windows are moved around and I've added a few things to it (like showing map location, displaying experience beneath the hero name and level, added a couple of new commands, etc.). You said you could provide a proper code for swapping, any chance? This isn't a feature I need to implement before continuing further with my game, so I can wait for however long it takes. No rush! And I'd greatly appreciate it if you could come up with something fairly simple. If not, no worries. I'm sure I'll work something out eventually.

Thanks again!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top