I would like a change in the level of political influence to result in the player receiving a certain message.
I know that this can be done by writing an appropriate script that will instruct the game to display a given message when certain conditions are met.
However, I am having trouble formulating these conditions. I tried to use the formula from the thirst for power trait, only that the level of political power that is measured by the trait does not correspond in any way to the percentage of influence that is displayed in the game (I suspect that this is some kind of calculation based on the number of gravitas, because the numbers I got in log form were nowhere near the percentage of influence or the number of senators).
I was wondering about the CampaignEffectsBundleAwarded function, but I don't know if it's possible to define the specific effect it would take into account, and in this case the effect bundle key, which can be found in the effect_bundles_to_effects_junctions table.
I would appreciate any suggestions.