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 }
#2
For some reason I keep getting an error when I start the game saying:

Script 'Party Splitting' line 445: SyntaxError occurred

How do I fix this?
Reply }
#3
hm the demo is working well for me... dunno what you did Oo
[Image: 76561198077561206.png]
Reply }
#4
It works, and lookin at this gives me more concept and storylines in my game. I think it's best to let it run event based to avoid minor bug or annoyance to occur.
Reply }
#5
Sorry, I don't know how to use this Script :( I talk to a Lancer and he said that he allow to make 2 parties. And then I open the Menu and my team are still 4 members...
If the party was splitted, my team should have 2 members, and remain 2 members are somewhere on the Map
Please... give me an explain

!
Reply }
#6
Within the script, it displayed
Code:
# --Configurables--

  # This determines what keys are used by the system.
  # Note:  Input::Z = the 'D' button, and
  #        Input::Z = the 'A' button on your keyboard.
  #
  SWITCH_PARTY = Input::Z   # Key to change parties on the map.
  FINISH_PARTY = Input::X   # Key to finalize parties on the splitting menu.
So when you are in the menu and are satisfied with the parties, hit the 'A' key on your keyboard (set by Input::X). That takes you out and your party is split in two. To switch between the parties, hit the 'D' key on your keyboard (set by the Input::Z).

There's very little to read in this script, but this was right there at the top.


Minor Note: Having been created in 2005, this script (being 8years old at the time of this post) is likely the oldest party splitting script for RPGMaker XP on record.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#7
Yeah... Now I can do something...
But have a trouble thing... when saving, and then re-load, the positions and something of 2 parties are reseted :(

!
Reply }
#8
That, I cannot help. This has been a tried and true system for eight years, the first known one of its kind for RPGMaker XP.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


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



Users browsing this thread: 1 Guest(s)