Party Splitting
#1
Party Splitting
by RPG Advocate
saved from Phylomortis.Com


Introduction
This script enables management of split parties. Once the player splits the party using the interface, you can press Z on the map to change which party the player is controlling.

To Open the Party Split Window: Use the "Script" command in the event editor and call the script "$scene = Scene_PartySplit.new(s1, s2, boolean)", where s1 is the required size of the first party, s2 is the required size of the second party, and the boolean is whether the party splitting can be cancelled once initiated. If you don't want the party sizes to be restricted, use 0 for both s1 and s2.
To Unify the Split Party: Use the "Script" command in the event editor and call the script "$game_party.unify"

By default, the message "Z: Change Party" will show in the lower-right corner of the screen while the parties are split. If you don't want this message to show, change the constant SHOW_PARTY_HELP_SPRITE to false.

New: To prevent the player from switching between parties, use the script call: "$game_system.pswitch_forbidden = true"
Do NOT set this switch back to 'false' but rather set it to 'nil' to restore the ability to switch between parties. Setting a value to 'false' has a tendency to freeze processing in RGSS.


Demo
>Click<


Script
Party Splitting


Notes
The script was revised for ease of use:
  • I added constants at the top, so you can set up your own keys for forming the party or switching between the two.
    It is still set so the 'A' key (or Input::X) is used to finish choosing your parties, and the 'D' key (or Input::Z) to switch parties
  • I added a good number of values so you can change the message that shows when your party is split, including fontsize and position.
  • I added the $game_system.pswitch_forbidden value so the player can't switch between parties if you want that option blocked

The 'Party Split Help Window' may remain visible in the End Game screen. It was visible in the original version and will take a little more scripting to hide it in there. Meh... :P

This can be used in conjunction with the 'Separate Item Lists' script, but making merging the two is your responcibility.
Reply }


Messages In This Thread
Party Splitting - by RPG Advocate - 03-03-2008, 05:44 AM
RE: Party Splitting - by DuongCool - 04-11-2013, 08:52 AM
RE: Party Splitting - by DerVVulfman - 04-11-2013, 04:12 PM
RE: Party Splitting - by DuongCool - 04-14-2013, 07:16 PM
RE: Party Splitting - by DerVVulfman - 04-14-2013, 09:13 PM
Party Splitting - by RegentGray - 02-13-2010, 06:38 PM
Party Splitting - by Ace - 02-13-2010, 07:50 PM
Party Splitting - by fgsfds - 02-13-2010, 09:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Party Thievery DerVVulfman 1 1,117 07-20-2023, 03:13 AM
Last Post: DerVVulfman
   Master Party-Leader Substitution DerVVulfman 0 5,339 01-24-2013, 05:26 PM
Last Post: DerVVulfman
   Party Changer Dargor 7 19,397 06-10-2010, 05:02 AM
Last Post: Meegz0
   Actor & Party's Self Variables XP PK8 0 919 09-17-2009, 01:47 AM
Last Post: PK8
   [Unsupported] Actor & Party's Self Switches XP PK8 3 8,829 09-17-2009, 01:46 AM
Last Post: Yin
   Party Changer by Leon Westbrooke earthboy 0 5,568 03-06-2008, 06:42 AM
Last Post: earthboy
   Changing Party Order Yargovish 0 4,776 03-03-2008, 04:41 AM
Last Post: Yargovish
   FFI Party Select Trickster 0 4,796 03-02-2008, 04:42 AM
Last Post: Trickster
   Exseiken's Party Switcher Trickster 0 5,039 03-02-2008, 04:35 AM
Last Post: Trickster



Users browsing this thread: 2 Guest(s)