I generally like the ideas others have come up with so far!
Building off the stat combo option, as an example that I'm doing in my game, there's a variable chance for ice spells to freeze an enemy, and if they're run up to and smashed with certain types of heavy weapons, there's another chance (based partly on their HP) that you could just shatter them - ice, enemy, and all - essentially dealing a killing blow. Mine's an action battle system, but that just means it would probably be simpler to implement in a turn-based system. If you did something like this to encourage swapping party members, you could do so by giving one character ice spells and another a huge war hammer; or in the case of implementing lightning, maybe the other character's lightning strike would cause the shattering. But then, perhaps you have another character good with fire magic who could jump in and melt one of the player's own party members if they happen to get frozen by an enemy
😉
You could be endlessly creative with combos/action sequences like this and how the results are affected by different combinations of enemy weaknesses and resistances, thus encouraging the player to also get more creative with switching up strategies (and thus, party member swapping as needed).
Any time someone asks a question like this (how to make players play the way I want them to), I encourage them to consider if it's really necessary.
Most of the time, people are going to want to use the party members they find interesting as characters. If you have a good variety available and they're all different from each other, different players will be using different favorite parties. Why is it necessary to force them to switch members mid-battle? Just because you paid for the plugin? 😉
But I also agree with this. However, I don't think it's inherently bad to encourage players to play a certain way (which I know ATT was not saying - I'm just expanding on the subject!). It's just a matter, I think, of remembering the difference between "encouraging to play in X way" and "discouraging from playing Y way". Shaking things up and incentivizing players to play differently than they normally do, to take advantage of a game's unique and rewarding systems, can be a good thing and make a game stand out and feel fresh to play.
But this only works if changing their playstyle in the way you want them to feels a) natural and b) worth it. No one likes playing a game that forces them to play in a way they're unused to simply because they'll be "punished" for not doing so, or are faced with otherwise arbitrary limitations. Therefore, while anything could be implemented creatively enough to be accepted by players, I'd still be wary of flooding your system with limitations and punishments without an acceptable-enough reason for them. For instance, if you were to implement the no-healing-in-battle thing, I would make sure it either ties in with the game's lore or is balanced out somewhere else in the game, etc. and not just a random limitation that screams "I'm only here to situationally force you into playing a certain way".
Like I said, the above can be done well
🙂 I'm not an expert on it though, so my advice kind of ends there. But overall, I
personally would lean more toward the mechanics that don't directly limit or punish the players for not playing the way you want (because as ATT said,
why?), but rather those that make them
want to play that way; that give extra payoff for using them, whether that's in the form of damage bonuses, loot/EXP bonuses, visual/aesthetic satisfaction, etc., or (ideally) some combination of those.
TL;DR - Whichever ideas you take, I would focus on rewarding players for swapping party members, rather than punishing them for not doing so (or otherwise forcing their hand).