Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Use this to set the members of party one and party two. The actors in party one will be the elements of the
- # array $PartyOneMembers and similarly for the second in $PartyTwoMembers. Their ids are just the id from the actor
- # list, starting from 1. In the example, I've used actors 1-5 for party one and 6-10 for party
- # two. You can just put this as a script in the eventing menu at the start of the split
- # section. Also, the order the IDs are in here will determine the initial party orders. I wrote
- # this for two equal parties of five, but it should be easily adapted to any size. Just add extra
- # entries to the appropriate array at initialization and tweak the script below.
- $PartyOneMembers = Array.new([1, 2, 3, 4, 5])
- $PartyTwoMembers = Array.new([6, 7, 8, 9, 10])
- # Now, for the events that swap the party, this script call records the current order of party
- # one, then removed it and adds party two based on the stored order. Put this in the event that
- # swaps party one to party two. If you added more or less than 5 members in party one, just add
- # an extra definition or remove the last, etc.
- $PartyOneMembers[0] = $game_party.members[0].id
- $PartyOneMembers[1] = $game_party.members[1].id
- $PartyOneMembers[2] = $game_party.members[2].id
- $PartyOneMembers[3] = $game_party.members[3].id
- $PartyOneMembers[4] = $game_party.members[4].id
- # Replace the removed actor ids here with the ids of the actors in party one. If you have more
- # than five in party one, add extra copies of $game_party.remove_actor(n)
- $game_party.remove_actor(1)
- $game_party.remove_actor(2)
- $game_party.remove_actor(3)
- $game_party.remove_actor(4)
- $game_party.remove_actor(5)
- # If party two is more than 5 members, then add 5, 6, 7... to the [] as needed.
- for n in [0, 1, 2, 3, 4]
- $game_party.add_actor($PartyTwoMembers[n])
- end
- # And this one does the same, only storing party two and swapping in party one:
- $PartyTwoMembers[0] = $game_party.members[0].id
- $PartyTwoMembers[1] = $game_party.members[1].id
- $PartyTwoMembers[2] = $game_party.members[2].id
- $PartyTwoMembers[3] = $game_party.members[3].id
- $PartyTwoMembers[4] = $game_party.members[4].id
- # Replace the removed actor ids here with the ids of the actors in party two. If you have more
- # than five in party two, add extra copies of $game_party.remove_actor(n)
- $game_party.remove_actor(6)
- $game_party.remove_actor(7)
- $game_party.remove_actor(8)
- $game_party.remove_actor(9)
- $game_party.remove_actor(10)
- # If party one is more than 5 members, then add 5, 6, 7... to the [] as needed.
- for n in [0, 1, 2, 3, 4]
- $game_party.add_actor($PartyOneMembers[n])
- end
Advertisement
Add Comment
Please, Sign In to add comment