You are the Emperor (space empire).
* Planets have Loyalty.
* You have various imperial officials: (civil branch) planetary governors, imperial court, (military branch) army officers, fleet officers.
* There are court factions (5 of them), each civil servant (no military) supports one of them. The influence of a faction is based on how many officials support it. You want these factions to be more or less equally supported (there is "unbalance" variable which hold how unbalanced these are overall).
Question:
Now, I need to make the loyalty/faction's balance of power do something Like usurp/coup attempt chance of some sort?
At the moment I have this (but I'm not sure if it's so good and looking for alternatives/polish/etc): All loyalty is summed up and then there is "rebel support" variable which is derived out of it. Once rebels collect sufficient points a big rebelion starts (it's not specified who the rebels are, they are generic and supported by various sources).