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.

[XP] Party Changer

Hey Dargor, I've found the scripts I need in my game (Party Changer, Party Changer for the menu, and the Commands Manager) and have all 3 scripts in the game...but I'm a noob when it comes to scripting or setting one/multiple ones like these up. Could you help me get everything up and running?

I'll take care of setting up the custom graphics...thanks!
 
$game_temp.menu_party_args = arguments

This script doesn't seem to work, or else I'm not applying it correctly. When I use it, I notice no change to the Party Change script that gets called when the entire party falls in Battle. The script still calls the parameters specified in the Script itself on Line 40.
 
I'm having trouble executing the switch scene with the new version. Here's what I have in my Script command:

Code:
scene = Scene_Party.new(4, 4, [1], [1])

When I run my game and went to my switch party crystal and answered Yes I want to chance my party, the party change menu won't show up and my game acts like nothing has happend. (I can still walk around and stuff)
 
Try:

$scene = Scene_Party.new(min_members, max_members, forced_members, locked_members)

WITH the $. Don't ask me why, it's just script terminology stuff or whatever.
 
@BellGoRiiing
What are you trying to do exactly?

@GreenBanana
Try this:
Code:
$game_temp.menu_party_args = [1,4,[],[]][/FONT]

@Nightmare Omnizohar
As GreenBanana said, you need an $ before 'scene'.

@shiroun
It's possible. I never used any TBS scripts but tell me which one you're using and I'll try to make it compatible.
 
I'm afraid I'm still not sure how exactly to use that line of code. I use the "Script..." event command, correct? If so, in what situation do I use it? Do I have to use it in the even that a specific battle takes place? If so, how do I handle random battle encounters?

If I insert this code into the Script Editor, where should I insert it? And how would this allow me to change the who the fixed actors are during the course of the game?

I'm sorry I'm having a bit of trouble understanding; it gets a little confusing for me here.

My scenario: During the game, an actor becomes fixed into the party so that he cannot be switched out into the reserves. Later, the actor leaves the party and so becomes unfixed. I was wondering how this would apply to the In-Battle Party Changer menus, both the "Party" command, and the party defeat event automatic reserves.

I think I may have noticed an oddity in the In-Battle Party Changer. If I don't specify a fixed party member on Line 40 in the Script, then Actor 1 initally appears to be fixed anyway using the "Party" command in-battle. However, using the "Reset" command Unfixes Actor 1. When the party is defeated and the Party Changer menu is automatically called, Actor 1 is Unfixed.
 
Hello, I am intrested in using this script and I am also using netplay, when i started it up it had an error in the refresh part, I deleted it and then it continued onto the game, but now with this script and a few other part changing scripts nothing would happen it you ran the event... any ideas?
 
You have to replace "flag" with either "true" or "false".
A flag is just the term for the setting of a boolean variable. A boolean variable is a "true or false" variable.
 

smrpg

Member

GreenBanana;324175 said:
You have to replace "flag" with either "true" or "false".
A flag is just the term for the setting of a boolean variable. A boolean variable is a "true or false" variable.
Thanks! It worked :D
 
I'm trying to get the scripts in and all set up...but it sounds like I have to go in some other scripts and edit things out or something...(the flag things and custom pics I know how to do...but everything else seems confusing)
 
Thanks for helping my problem previously. Now I got a question:

Is it possible to lock a party member who's in the reserve? What I mean is like in Event A, hero 2 cannot be in party because he broke his leg thus making him cannot be in the party BUT hes still in the reserve but player cannot switch him in.
 
BellGoRiiing;324541":3o5tz1ab said:
I'm trying to get the scripts in and all set up...but it sounds like I have to go in some other scripts and edit things out or something...(the flag things and custom pics I know how to do...but everything else seems confusing)

You don't need to edit any other scripts. All editable parameters are located in Game_Temp.

Instructions

Place the script above Main

Call the scene:

Use $scene = Scene_Party.new(min_members, max_members, forced_members, locked_members)

min_members is the minimum number of actors the party must have.
max_members is the maximum number of members the party can have.
forced_members is an array containing the id of actors forced to be in the party.
locked_members is an array containing the id of actors forced to be locked in the position defined
by their index in forced_members.


Setting up Menu and Battle arguments:

Menu/Battle Party Changer arguments are located in Game_Temp and works exactly like calling the scene.
Code:
@battle_party_args = [1, 4,[],[]]
@menu_party_args = [1, 4,[],[]]
@menu_party_args is used with the Party Changer (Main Menu) script. When using the Party Changer from the Main Menu, the scene will be called with those arguments.
Same thing for @battle_party_args.

Custom actor graphics:

If you want custom actor graphics, you must place your pictures into the Picture folder. The name must be Actor_[actor_name] and an ideal size would be 126x46. Note that pictures will automatically be resized to fit the window and cursor rectangle.

This feature can be toogled with
Code:
$game_temp.use_custom_graphic = flag

I think you should be okay with this.
But if it's not enough, feel free to ask for more informations!


Nightmare Omnizohar;324632":3o5tz1ab said:
Thanks for helping my problem previously. Now I got a question:

Is it possible to lock a party member who's in the reserve? What I mean is like in Event A, hero 2 cannot be in party because he broke his leg thus making him cannot be in the party BUT hes still in the reserve but player cannot switch him in.

Yes, good idea.


By the way, I'm working on version 3.0 which will include the Multiple Parties script. I already have a beta version of this feature (including the latest version of the party changer) on my PC but it's still very buggy.

The demo (currently available in the first post) will probably be replaced by version 3.0 soon.

Take care!
-Dargor
 
Multiparty sounds interesting. Will it be like in Shadow Hearts 2 & 3 where you simply have set party groups, or will it be like the infamous Final Fantasy VI method where the parties are in multiple locations?

I remember managing to finally tamper out a three-location multi-party system in RM2K3. That was a bit of a headache.

Oh, I finally figured out how I'm supposed to use

$game_temp.battle_party_args = [1,5,[nil],[nil]]

properly. Sorry if I caused any trouble. For some reason I had the two nils mixed up. I was using the "Fix this member" parameter where the "Where this member is initially placed" parameter. I just have to keep track of which is which now, which should be too hard after this little mistake of mine.

Reminder: [min, max, fixed, initial location of]
 
GreenBanana;324777":39p7a7gx said:
Multiparty sounds interesting. Will it be like in Shadow Hearts 2 & 3 where you simply have set party groups, or will it be like the infamous Final Fantasy IV method where the parties are in multiple locations?

Final Fantasy IV had multiple parties?O_o
I was thinking of Final Fantasy VI where you setup X groups and cycle through them to solve a puzzle in different locations. Think of the Phoenix Cave or Kefka's Tower from FFVI.
 
Yeah, I'm an idiot and can't get my Roman numerals straight. I was thinking of the right one. I blame the upcoming beautiful FFIVDS total remake coming out in Japan in December. It's got me all distracted and hungry.
 
Before I go and screw things up...in Game_Temp where it has all those "@whatever"s, I just add those two, right?

@battle_party_args = [1, 4,[],[]]
@menu_party_args = [1, 4,[],[]]
 
BellGoRiiing;325068 said:
Before I go and screw things up...in Game_Temp where it has all those "@whatever"s, I just add those two, right?

@battle_party_args = [1, 4,[],[]]
@menu_party_args = [1, 4,[],[]]

In the current version of this Party Changer script, Ver 2.4, those code lines are both already included on lines 40 and 41 respectively of the script. There is no need to add them again.

However, if you want to change these parameters midway through the game, then you make an Event, and use the command "Script...". For the script you want to call, just use:

$game_temp.battle_party_args = [min, max, [fixed], [forced position]]

or

$game_temp.menu_party_args = [min, max, [fixed], [forced position]]

The Battle code changes the parameters for the Party Changing script In Battle. I can only assume that the Menu code changes the parameters for the Party Changing script when called from the menu.
 

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