Yes. But I'm not talking about what the Tavern/Guild would have inside of it. I'm talking about this:
I mean, it's still just lots of eventing like Andar said. It's gonna require a lot of conditional branches like Willibab said, just like any other game with story-active party members. Plenty of games do this; you just have to create every interaction in the game with the consideration that a certain party member might be present, and include a conditional branch to account for their potential dialogue/action/whatever.
In any given event, if you want one party member's interaction to win out over another's (e.g. if Bob and Bill are both in the party, then Bob speaks and Bill does not), then you'd check if Bob is in the party first -> if so, he speaks/acts and continue the event -> if not, check if Bill is in the party to give him a chance to speak/act instead.
In any given scenario, if you want multiple party members to each have their turn speaking/acting (assuming they're present), then it's as simple as just not nesting the conditional branches. Just start with checking the presence of whichever character you'd want to speak/act first, don't include "else" branches, and then just continue on in the event to check for the presence of the next.
If you want their dialogue/actions to interact with
each other in a given event, then when you're building the event, just consider how you'd want that to go, and have a conditional branch for each potential scenario (i.e. combination of party members present). Without scripting, this would have to be achieved with strategic/logical nesting of conditional branches. It might look something like this:
- if: Bob is in party
- if: Bill is in party
- (they both interact however you want)
- else:
- (Bob is present but Bill is not, so only Bob speaks/acts)
- else:
- if: Bill is in party
- (Bob is not present but Bill is, so only Bill speaks/acts)
- else:
- (neither are in the party - either make something else happen instead, or omit this "else" branch altogether for nothing to happen)
However, this would probably start to get confusing with more than two characters that are supposed to potentially interact, as the number of possible combinations grows exponentially. Using scripts in your conditional branches would still require considering each possible combination, but it would make it much easier to keep track of what's going on, because you can just use scripting to check if multiple characters are in the party at once, in one line, rather than the strategically-nested branches getting increasingly out of control. The logic of using scripting for the conditions (I'm not providing the
actual script/code here) might look something like this:
- if: Bill, Bob, Sally, and Sarah are all in the party
- (all 4 of these characters interact)
- else:
- if: Bill, Bob, and Sally
- (only these 3 characters interact - maybe they gossip about Sarah because she's not there, for example)
- else:
- if: Bill, Bob, and Sarah
- (only these 3 characters interact)
- else:
- if: Bill, Sally, and Sarah
- (only these 3 characters interact)
- else:
- if: Bob, Sally, and Sarah
- (only these 3 characters interact)
- else:
- (and so on with combinations of two, and then so on for each character alone)
So, yes... depending on the number of party members and how interactive you want them to be with each other (or otherwise, how much each of their presences generally synergize to affect outcomes in unique ways), this can become very complex. Difficulty is something else entirely, though, and that depends on how well you're able to keep everything straight
🙂
P.S. Don't forget about how the party members' actions/interactions impact things later in the story. For example, don't have an NPC say something that requires the context of something Sarah would have done at the end of the first dungeon, if there's a chance that Sarah might not have been in the party when you reached the end of the first dungeon (and therefore wouldn't have gotten to act, thus providing no context for the NPC's dialogue later on). So, on top of considering how you want every party member to potentially interact whenever you build an event, also make sure you're setting variables or flipping switches every time they do or say something that might impact a later event - and then make sure you
check for that variable or switch when that later event arrives.