Modding proposal, extended (has already been proposed, but since EU4 v1.4 implemented even more than my previously modest suggestion, it seems reasonable to ask for the same functionality that was introduced for modders in EU4 v1.4):
Variable arithmetic and comparison (against other variables), both intra-scope (different variable names) and cross-scope (same or different variable names). Scopes supported should be at least character and province, the current scopes in which the extremely limited variable support currently in CKII already function. Please see
this post from Paradox developer Captain Gars on the EU4 modding forum in response to my same request, which is when he first announced that he had implemented and tested all the new requested variable operations (and more), including cross-scope arithmetic/comparison even between different types of scopes (province vs. country in EU4), as well as automatic tooltip localisation for the variables.
He came back with this in a matter of a day. Meanwhile, CKII modders spend hours and hours each, some on a very regular basis, emulating arithmetic and simply failing to be able to provide the same kind of dynamic and powerful mod functionality that would be possible if CKII modding support were not inferior to that of EU4 v1.4, in this respect.
Official related patch notes from the release of EU4 1.4:
- Added effect multiply_variable
- Added effect divide_variable
- All variable effects can now take a second variable as an argument
- check_variable trigger now works the same way as variable effects
- All variable effects and triggers can now take a scope as an argument
So when can I stop emulating binary arithmetic through recursive events with power-of-2 compare-and-subtract chains (only works for integers)? You know, all to compare a single variable to another single variable, or a trigger like
wealth... Please end the madness.