How to check the number of party members in an event

Started by Xim, July 15, 2013, 10:18:10 pm

Previous topic - Next topic


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.





Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!


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"
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)