The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => Topic started by: Mushu on June 22, 2013, 05:46:01 AM

Title: [VXA]Party Maximum?
Post by: Mushu on June 22, 2013, 05:46:01 AM
I'm trying to keep it where the party maximum is 4 where you can't just switch out people if the main party is running out of hp. Is this possible with events without getting lag?
Title: Re: [VXA]Party Maximum?
Post by: &&&&&&&&&&&&& on June 22, 2013, 06:24:24 AM
I thought the party max was already 4.
Title: Re: [VXA]Party Maximum?
Post by: modern algebra on June 22, 2013, 12:59:30 PM
You mean total, even outside of battle members?

It's certainly possible with events. At any event where you would otherwise add an actor, you could first check the number of party members like so:

@>Control Variables: [0000: ABC] = Game Data: Other: Party Members
@>Conditional Branch: Variable [0000: ABC] < 4
    @> # Add party member events
 : Else
    @> # Event to say your party is too full
 : Branch End

It would also be doable through scripts of course, but in this case I expect it would be better to do it through events since that way you can set up events for what happens when a party member does not want to join - maybe set up an evented way to trade members too.
Title: Re: [VXA]Party Maximum?
Post by: Mushu on June 22, 2013, 04:09:30 PM
You mean total, even outside of battle members?

It's certainly possible with events. At any event where you would otherwise add an actor, you could first check the number of party members like so:

@>Control Variables: [0000: ABC] = Game Data: Other: Party Members
@>Conditional Branch: Variable [0000: ABC] < 4
    @> # Add party member events
 : Else
    @> # Event to say your party is too full
 : Branch End

It would also be doable through scripts of course, but in this case I expect it would be better to do it through events since that way you can set up events for what happens when a party member does not want to join - maybe set up an evented way to trade members too.
It took me a little bit, but it works now! I didn't know about game data: party members, it makes it so much easier. I kept doing party member#5 ID < 1 etc. and it started getting really complicated. lol

I thought the party max was already 4.
I was kind of vague. I wanted it where you can only add or remove party members in town so that you have to rely on the people you chose (and have no party 'repository'). When you enter a dungeon, between battles, if 3 of your people die, you can't just switch them out with persons #5-8 to have a party with full hp again using the party arrange in the menu.