The TurnNUmber specifies the turns lapsed rom the beginning of the campaign, with the first one being turn 0.
Here's a rough plan.
Code:
;------------------------------------------
Ancillary office_Quaestor1_gen1
Image non_existing_image.tga
Description office_Quaestor1_gen1_desc
EffectsDescription office_Quaestor1_gen1_effects_desc
Effect Electability 401
;------------------------------------------
Ancillary office_Quaestor2_gen1
Image non_existing_image.tga
Description office_Quaestor2_gen1_desc
EffectsDescription office_Quaestor2_gen1_effects_desc
Effect Electability 401
;------------------------------------------
Code:
;------------------------------------------
Trigger office_Quaestor1_gen1_gain
WhenToTest CharacterTurnEnd
Condition FactionType romans_julii
and I_TurnNUmber = 8
and not FactionwideAncillaryExists office_Quaestor1_gen1
and Attribute Electability = 0
and blablabla
AcquireAncillary office_Quaestor1_gen1 Chance 100
;------------------------------------------
Trigger office_Quaestor2_gen1_gain
WhenToTest CharacterTurnEnd
Condition FactionType romans_julii
and I_TurnNUmber = 8
and not FactionwideAncillaryExists office_Quaestor2_gen1
and Attribute Electability = 0
and blablabla
AcquireAncillary office_Quaestor2_gen1 Chance 100
;------------------------------------------
Code:
;------------------------------------------
Trait office_Quaestor
Characters family
Level office_Quaestor
Description office_Quaestor_desc
EffectsDescription office_Quaestor_effects_desc
Threshold 1
Effect x
Effect y
Effect z
Level office_Quaestor_ex1
Description office_Quaestor_ex1_desc
EffectsDescription office_Quaestor_ex1_effects_desc
Threshold 9
Effect xyz
Level office_Quaestor_ex2
Description office_Quaestor_ex2_desc
EffectsDescription office_Quaestor_ex2_effects_desc
Threshold 12
Effect Electability -401
;------------------------------------------
Code:
;------------------------------------------
Trigger office_Quaestor_advance
WhenToTest CharacterTurnEnd
Condition Trait office_Quaestor >= 1
Affects office_Quaestor 1 Chance 100
;------------------------------------------
Trigger office_Quaestor_gain
WhenToTest CharacterTurnEnd
Condition Attribute Electability = 401
and Trait office_Quaestor = 0
Affects office_Quaestor 1 Chance 100
;------------------------------------------
The amount of turns dictates the 'step' of the I_TurnNumber condition. If the elections are every 4 years, then the turn number should advance by 16 (in a 4tpy mod).
Obviously, you need a new anc for each 'generation' of each office. Lots of ancs for you to make.
The difference with Pontifex Maximus is that you only need 1 anc, since it's a life-long office.
The third level of each trait exists to remove the electability given by each anc and demonstarte the character is ready to be given a new office.
This is very rough, I'm sure it has some holes, it's just the basic structure.