The problem is that while you're joining the war to prevent A from becoming too powerful by conquering B, you also don't want B to become too strong either, which might happen in the peace deals if you tip the scales too much in B's favor."Offer to join war"? Seems simple enough to script up, with AI willingness to allow being based on the extent that they fear that they might lose and the amount they don't wish to share the spoils. Toss in some extra conditionality based on whether you have a truce with any of the belligerents.
Only issue I can think is, if I recall from the EU4 scripting effect of joining a war, you can only ever join all of someone's wars rather than a single, specific war. Which seems reasonable?
You avoid the stability hit of a no-CB war declaration at the downside of joining someone else's war rather than starting your own, and joining all of their wars rather than just the one.
I'm not sure if there's a designated war leader in EU5, but if there is, a previously neutral country that enters the conflict should have some influence over the peace term, at least being able to block deals that would be disadvantageous to their interests.
- 1