Hello everybody!
I am working on a game that will allow players to add NPCs to their parties as generic bonis actors who give the entire party a bonus. Players can swap out characters by leaving then or picking them up.
I wanted the total party max to be five members.
3 Slots for main character
And
2 Slots for generic.
I don't want the limit of generic characters to exeed 2.
Thank you in adv
And where do you have problems with that?
because actors can only be added by events, there is no problem in checking if the actor is allowed due to the numbers of actors present or not. Jast define two variables for generic and main actor numbers, whenever you add an actor you increase the correct variable by one and check before adding if the limit is reached or not.
The way i would think to do it is create two "blank" charcaters, when you accept a new bonus have the event replace the stats, graphics and name of that character ID. on replace have the player chose which character to replace, use text codes to grab the current character name for the choice dialog, and run the info swap on choice (i'd set the stat gain on blanks to an even leveling pattern, set level to 1, replace stats, set level to average party level). I'd have to test it to see if my theory works, but it's how I would see you keeping the character slots to a minimum. As far as the party bonus... that would require more thinking. Perhaps a unique item slot that can only be changed via the event? Like it the NPC gives more gold gain have the unique item be something like an "endless gold pouch" and increases gold gain from battle
edit: or you could have the bonus be in a class and that can be changed at the stat swap