About elections, again...
I was thinking...
Why don't you let the player choose the winner just like in vanilla election events?
It could then work this way:
If country doesn't already have election events + democracy = or >5 OR left/right between 4 and 6
then set local flag: "new_democracy" (or wathewer)
So... decision avaliable: Call Elections
efects: +1 freedom ; +1% IC efficiency ; ; set the election result event for 60 days ; randomly three of the events below will fire.
events that can fire during the electoral process --- efects
- Smear campaign promoted by the opposing candidates --- +2 dissent ; +1 freedom
- Illegal use of public resources by current government in electoral campaign exposed --- +5 dissent ; -100 money ; +1 fredom
- Bad performance in campaign --- +2 dissent
- Famous person supports the concorrent --- +5 dissent
- Scandal in the opposition lines --- -2 dissent ; +1 freedom
- Great performance in the speech for the nation --- -2 dissent ; +1% IC efficiency
- Strong government propaganda --- -2 dissent ; -100 money
- Exchange of benefits --- -10 dissent ; -200 money ; -1% IC efficiency
After 60 days of the elections call, it's the great day and the player may choose between the following options --- efects:
- Elect conservative right --- +3 right ; +4 dissent ; the decision of calling an election will be avaliable again in 6 years
- Elect right --- +1 right ; +1 democracy ; +2 dissent ; the decision of calling an election will be avaliable again in 4 years
- Elect left --- +1 left ; +1 democracy ; +2 dissent ; the decision of calling an election will be avaliable again in 4 years
- Elect radical left --- +3 left ; +4 dissent ; the decision of calling an election will be avaliable again in 6 years
- Keep current --- +1 dissent ; the decision of calling an election will be avaliable again in 5 years
In this case I think you don't need to set a cabinet to each of the government types and for each single country, but I guess that only by moving the sliders, the game shall switch the ministers in cabinet automatically.
For AI you could set the following AI chances of made this choice:
- Elect conservative right --- 5% chance
- Elect right --- 10% chance
- Elect left --- 10% chance
- Elect radical left --- 5% chance
- Keep current --- 70% chance (IMO would be better not change that much the AI play, you know...)
And... parallel, you could write an event that checks:
If "new_democracy" is true but democracy < 5 then clear the flag, making it impossible to call out new elections.
Well, that's it.