[Dev] Party Manager

I've completed the basic functionality for the Party Manager.


If you're familiar with a similar script I wrote for Ace, well, it's pretty much the same idea.


The party manager allows you to maintain multiple parties.


Each party has their own set of actors, inventory, and other party-related information.


The party manager allows you to create parties.


You can choose which actors will be in those parties, and where those parties will be placed.


After additional parties have been created, you can switch between them.


You can switch with other parties that are on the current map, or even parties that are on different maps.


Parties can be merged if needed. For example, if an actor decides she is bored of picking fruit, she can "regroup" with the "main" party and all of the fruits she picked will be merged into the main party's inventory.


While all of this works, there's one problem: can different parties see each other?


If you have two parties on different maps, that's fine. But what happens if they're on the same map?


In Ace, I created something called Idle Party Events, which were events that represents parties that you weren't currently controlling. These were set up like any other event, except during the game, they would be positioned where the party should be, and the character that you see is the party's leader.


In the MV version, the party manager will support all of these functions in the base script, since I consider it to be an essential function and not just an add-on, which is why the plugin hasn't been released yet.


But for now, you get to watch the video at the top which showcases some of the functions that I described.
Wow!
 


This seems very useful!


Thank you for your hard work!
Yay! I cant wait to play with it! I LOVED it in Ace!


One question though; Will it still be possible to do the hing with one party member on a button, opening a door? I remember the Slime Hunter showing us that in a video showcasing the ACE version!
Yes, each party stores the map and position.


I can then provide ways to allow you to easily check if a specific party is at a specific position.


It might look like this


IF Party.pos(1, 10, 20)


Which means if party 1 is at position (10, 20)
Ok, so implementing idle party events turns out to be a lot more complex than I originally thought it was.


The Ace version was designed so that every map required you to define an idle party event, and that would be the event used when an idle party is on that map.


However, this may not be optimal. if interacting with the idle party is supposed to do the same thing on EVERY map, it would be much better to have ONE event somewhere, and then the game will copy that over when it needs it.


We could then introduce map-specific idle party events, if you wanted specific events to run on that map without having to worry about things like managing dozens of page conditions to handle every possible situation on various maps.


But there are some other things that might become a bit problematic: for example, if players could split up parties whenever they want, however they want, how would you set up events for that? I've only thought of how you would create events for "specific" situations, like if you had two actors and they split up as a result of an event, you have full control over their ID's and other things.


This problem may or may not be solvable with the evented approach I'm using. May need to add "conditions" to determine *which* event will be used for which party, perhaps based on WHO is in the party, WHEN the party was created, and so on.


Overall, how you would like to design your idle party events would be up to you. 


You could choose to have one event that handles everything (via page condtiions and other things), or you might go with idle party events on every map, or a mix of both.


Due to the complexity of this problem I am considering to leave that feature out in the initial version.


I should be able to release the initial version of the plugin later today or tomorrow.


Also, some news on other features.


1. Someone on youtube also suggested the ability to have "required" members/leaders in parties. This will be added in a later version as well.

2. A request was made for inventory trading between parties. This will be added in a later version.
So the party manager has been released already, but new features are still being added.


Here are the latest features: http://himeworks.com/2016/02/update-party-manager-checking-location/


1. Checking whether a specific party, or ANY party, is at a certain position


2. Checking whether a specific party, or ANY party, is at a certain region


The following script calls are provided. All of them return true or false.


Party.atLocation( partyID, x, y, mapID)
Party.atAtRegion( partyID, regionID )

Party.anyAtLocation( x, y, mapID)
Party.anyAtRegion( regionID )


The map ID can be omitted if you would like to mean the current map.


Here's a small video showing what you can do with these checks.

Original thread: https://forums.rpgmakerweb.com/threads/dev-party-manager.55945/