Chaos Project

RPG Maker => General Discussion => Topic started by: Xim on July 15, 2013, 10:18:10 pm

Title: How to check the number of party members in an event
Post by: Xim on July 15, 2013, 10:18:10 pm
Hey everybody, how's it going? I'm making a game with RMXP, where you can hire members, and remove and re-add them through events. But I have one problem, when I add a party member when I have a full party (3 members plus the hero), the character isn't added to the party at all. I could avoid this if I could just check how many members are in the party and if it's above the max then disallow adding the new member. I'm using Blizz ABS and "Law's Custom Menu Screen" by The Law G14 if that's important. Any help would be appreciated.
Title: Re: How to check the number of party members in an event
Post by: KK20 on July 15, 2013, 11:21:42 pm
$game_party.actors.size
Title: Re: How to check the number of party members in an event
Post by: Heretic86 on July 16, 2013, 05:11:28 pm
A bit more specific: Conditional Branch -> Script "if ($game_party.actors.size == X)" where X is your max party size.  In your script box, you'll just put in "$game_party.actors.size == X"