• Crusader Kings II Expansion Subscription

    Subscribe to the CK II Expansion and enjoy unlimited access to 13 major expansions and more!


  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning

mjohnson85

Keeper of Western Europe
29 Badges
Apr 12, 2012
2.160
2.267
  • Crusader Kings II: Charlemagne
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings III
  • Imperator: Rome
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
Yes, I also did the same with the mid, and erased all crowns in the 3( headgear, mid, behind) before copy and pasting the desired helms.
Code:
     name = "PORTRAIT_darknutgfx_male"
     effectFile = "gfx/FX/portrait.lua"
     layer = { # GFX_TYPE:[d|p]INDEX:COLOR_LINK:DONT_REFRESH_IF_VALID:CULTURE_INDEX
       "GFX_character_background:p0"
       "GFX_western_male_clothes_behind:p3:c0"
       "GFX_darknut_male_headgear_behind:p5:c1"
       "GFX_western_male_hair_behind:p1:h:y"
       "GFX_western_male_beard_behind:p4:h:y"
       "GFX_western_male_base:p2"
       "GFX_western_male_neck:d0"
       "GFX_western_male_cheeks:d4"
       "GFX_western_male_chin:d1"
       "GFX_western_male_mouth:d2:o75x49"
       "GFX_western_male_nose:d3:o80x65"
       "GFX_western_male_eyes:d6:o47x74"
       "GFX_western_male_eyes2:d6:e:o74x92"
       "GFX_character_scars:p7:y"
       "GFX_character_reddots:p8"
       "GFX_character_boils:p9"
       "GFX_character_blinded_eyes:p10"
       "GFX_western_male_clothes:p3:c2"
       "GFX_darknut_male_headgear_mid:p5:c3"
       "GFX_western_male_ear:d7:o27x54"     
       "GFX_western_male_beard:p4:h:y"
         "GFX_western_male_hair:p1:h:y"
       "GFX_western_male_clothes_infront:p3:c4"
       "GFX_darknut_male_headgear:p5:c5"
       "GFX_character_imprisoned:p6"
       "GFX_player_overlay:p11"
     }

Did you correct the alpha layers on the relevant files? It sounds like the old alpha layers is still being recognized.
 

Madfrancis

Captain
53 Badges
May 30, 2012
401
606
  • Crusader Kings II: Charlemagne
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Stellaris Sign-up
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings III
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Stellaris: Necroids
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III: Royal Edition
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Warlock: Master of the Arcane
  • War of the Vikings
  • 500k Club
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
Question about the retinuesize modifer.

The CivII Wiki modifers page lists retinuesize as valid trait modifier. When I add it to a trait it shows up in the tooltip, but doesn't seem to effect the retinue size limit. This was tried with an Irish tribal catholic nation.

Does retinuesize only effect a specific govt, cultural or religious group or am I missing something?
 

jursamaj

General
120 Badges
Aug 20, 2012
2.324
199
  • Victoria 2: Heart of Darkness
  • Hearts of Iron III
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
  • Cities in Motion
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Victoria 2: A House Divided
  • Leviathan: Warships
  • Rome: Vae Victis
  • Stellaris
  • Europa Universalis IV: Pre-order
  • Magicka 2 - Signup Campaign
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III Complete
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Conclave
  • Europa Universalis III Complete
  • Europa Universalis IV: Common Sense
  • Europa Universalis III Complete
  • Pillars of Eternity
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Necroids
Regarding buildings:

I know that in the potential clause, FROM is the settlement holder and FROMFROM is the settlement itself. Is it possible to scope to the person who is trying to build it (in case a liege wants to build in a vassal's settlement)?

Also, when the file comments say "start trigger is in title scope", what exactly does that mean?
 

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
Question about the retinuesize modifer.

The CivII Wiki modifers page lists retinuesize as valid trait modifier. When I add it to a trait it shows up in the tooltip, but doesn't seem to effect the retinue size limit. This was tried with an Irish tribal catholic nation.

Does retinuesize only effect a specific govt, cultural or religious group or am I missing something?

No, it likely means the wiki is wrong, I updated the cell. :)
When a modifier shows up properly in the tooltip, it's sometime hard to know if the effects are actually taken into account by the game.

Regarding buildings:

I know that in the potential clause, FROM is the settlement holder and FROMFROM is the settlement itself. Is it possible to scope to the person who is trying to build it (in case a liege wants to build in a vassal's settlement)?

Also, when the file comments say "start trigger is in title scope", what exactly does that mean?

I doubt it, since ROOT is the province, it would have to be FROMFROMFROM ?
 
  • 1
Reactions:

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
In WtWSMS there is a vanilla province (PROV1452 / c_dunkheger) whose name doesn't appear on the map, and all the "layers" it is part of (duchy, kingdom, culture, religion, ...) have their name completely off in their respective map modes.
Any idea what might be causing this ?
This part of the map is not actually modded (same as vanilla), though other parts are modded via provinces.bmp and terrain.bmp

Province name not appearing:
Map-province-issue1.jpg
Rouran Khaganate is all over the place:
Map-province-issue2.jpg
 

Tintiam

Captain
9 Badges
Jul 14, 2015
339
114
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
Hmm. The externals is what usually causes a name to not show up when zoomed out. But since you're also having other name weirdness, and it's not externals, the only thing I can think of is stray pixels. What you can try is using the magic wand to select that pixel but setting it to global (non-contiguous), and then painting a very fat border around it (in photoshop it's edit->stroke->100px). That should point out where the stray pixels are (if there are any).

Can't think of any other reason atm
 
  • 1
Reactions:

mjohnson85

Keeper of Western Europe
29 Badges
Apr 12, 2012
2.160
2.267
  • Crusader Kings II: Charlemagne
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings III
  • Imperator: Rome
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
Hmm. The externals is what usually causes a name to not show up when zoomed out. But since you're also having other name weirdness, and it's not externals, the only thing I can think of is stray pixels. What you can try is using the magic wand to select that pixel but setting it to global (non-contiguous), and then painting a very fat border around it (in photoshop it's edit->stroke->100px). That should point out where the stray pixels are (if there are any).

Can't think of any other reason atm

I would have to echo this sentiment. It sounds like it is probably a stray pixel.
 
  • 1
Reactions:

Dhekelian

First Lieutenant
33 Badges
Sep 20, 2014
225
33
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings III
  • Surviving Mars: First Colony Edition
  • Crusader Kings II: Holy Fury
  • Surviving Mars: First Colony Edition
  • Steel Division: Normandy 44 -  Back to Hell
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Jade Dragon
  • Steel Division: Normand 44 - Second Wave
  • Surviving Mars
  • Steel Division: Normandy 44
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Cities: Skylines
  • Europa Universalis IV
  • Cities: Skylines - After Dark
In landed_titles.txt, in the appropriate county block, put
Code:
angelcynn = xxx
anglo_saxon = yyy
saxon = zzz
replacing the xxx, yyy and zzz with the appropriate localizations. (Make sure the tags are right too, I'm just guessing what you're using.)


Just saw this, thank you for the prompt reply. I just like to edit other mods for my benefit.
 
Last edited:

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
I didn't even know <title>_adj_<culture> was a thing.
 

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
Hmm. The externals is what usually causes a name to not show up when zoomed out. But since you're also having other name weirdness, and it's not externals, the only thing I can think of is stray pixels. What you can try is using the magic wand to select that pixel but setting it to global (non-contiguous), and then painting a very fat border around it (in photoshop it's edit->stroke->100px). That should point out where the stray pixels are (if there are any).

Can't think of any other reason atm

I would have to echo this sentiment. It sounds like it is probably a stray pixel.

Indeed that was the cause, thanks for the help !
 

fanoI

General
2 Badges
Aug 26, 2012
1.870
105
  • Crusader Kings II
  • Europa Universalis IV
When I do any_realm_character and the character is the liege he is not comprises in the scope so if I want to send the event to him too I should do:

Code:
       character_event = { id = my_event.1 days = 3 random = 2 }       

        any_realm_character = {
            limit = {
                trait = xxx
            }

            character_event = { id = my_event.1 days = 3 random = 2 }
        }

But what's happens when the character is part of the realm but he is not the liege? any_realm_character will send the event to him too or not? How to do this in a reliable way? I'm doing an election system and so should never happen that the event is sent two times to the same character as - in that case - he will express two votes!
 

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
When I do any_realm_character and the character is the liege he is not comprises in the scope so if I want to send the event to him too I should do:

Code:
       character_event = { id = my_event.1 days = 3 random = 2 }      

        any_realm_character = {
            limit = {
                trait = xxx
            }

            character_event = { id = my_event.1 days = 3 random = 2 }
        }

But what's happens when the character is part of the realm but he is not the liege? any_realm_character will send the event to him too or not? How to do this in a reliable way? I'm doing an election system and so should never happen that the event is sent two times to the same character as - in that case - he will express two votes!

Yes, you could add: NOT = { character = ROOT } in the limit block to prevent that.
 

fanoI

General
2 Badges
Aug 26, 2012
1.870
105
  • Crusader Kings II
  • Europa Universalis IV
Hmm do you mean to have the same code if "ROOT" is the liege or not I should do:

Code:
        character_event = { id = my_event.1 days = 3 random = 2 }     

        any_realm_character = {
            limit = {
                trait = xxx
                NOT = { character = ROOT }
            }

            character_event = { id = my_event.1 days = 3 random = 2 }
        }

Is this correct? There is no way to make this more simple? That is obtain the real "any_real_lord" comprensive of ROOT if he is the liege or not...

It seems random_realm_character has a similar issue being the liege I'm not counted so I need to do this "kludge" to give the event to him and then call random_realm_character for the others... a little annoying!
 

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
If you limit the event to only rulers, then you don't have to check for ROOT in the any/random_realm_character limit.
 

fanoI

General
2 Badges
Aug 26, 2012
1.870
105
  • Crusader Kings II
  • Europa Universalis IV
How this could be done? I see only any_independent_ruler and any_playable_ruler as scopes that contained the "ruler" word...

For example this case is too "messy" too really work! First a little of back story of what is happening a party of the Roman Republic is suddenly without a leader (he is died, has become incapable or is deemed unfit to the role) so a random member of the party is chosen as "provisional head" of the party only for to count the votes during the election of a new candidates. The reader from U.S.A. could like to call this process "Primaries" ;)

Any member of the party could chose to candidate himself and obviously the "provisional head" could chose to candidate himself. Now we have filtered the number of candidates to 4 (CK2 windows limitation and I don't liked to do use the "more" trick... for now at least) and it is time to number them. We are in a special case: the "provisional head" (that is who receives this event) is a a candidate and so shall receive a number and the other candidates are indeed 3 (not four) how to discriminate well between this two cases?

Code:
# Candidates chosen returning now to the Provisional Head of the Party to start the proper election process
character_event = {
    id = senatorial_rep.110
    title = EVTNAMEsenatorial_rep.110
    desc = EVTDESCsenatorial_rep.110
    picture = GFX_evt_council

    is_triggered_only = yes

    immediate = {
        set_character_flag = candidate_number_found
       
        if = {
            limit = {
                trait = imperial_party
            }

            if = {
                limit = {
                    has_character_flag = head_of_party_candidate
                    NOT = { has_character_flag = head_of_party_candidate_numbered }
                }

                save_event_target_as = head_of_party_imperial_candidate_1
                set_character_flag = head_of_party_candidate_numbered
                set_global_flag = first_candidate_is_liege
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                    NOT = { has_character_flag = head_of_party_candidate_numbered }
                    # I really hate this!
                    NOT = { has_global_flag = first_candidate_is_liege } 
                }
                save_event_target_as = head_of_party_imperial_candidate_1
                set_character_flag = head_of_party_candidate_numbered
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                    NOT = { has_character_flag = head_of_party_candidate_numbered }
                }
                save_event_target_as = head_of_party_imperial_candidate_2
                set_character_flag = head_of_party_candidate_numbered
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                    NOT = { has_character_flag = head_of_party_candidate_numbered }
                }
                save_event_target_as = head_of_party_imperial_candidate_3
                set_character_flag = head_of_party_candidate_numbered
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                    NOT = { has_character_flag = head_of_party_candidate_numbered }
                }
                save_event_target_as = head_of_party_imperial_candidate_4
                set_character_flag = head_of_party_candidate_numbered
            }
        }

        if = {
            limit = {
                trait = republican_party
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_republican_candidate_1
                set_character_flag = head_of_party_republican_candidate_1st
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_republican_candidate_2
                set_character_flag = head_of_party_republican_candidate_2st
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_republican_candidate_3
                set_character_flag = head_of_party_republican_candidate_3st
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_republican_candidate_4
                set_character_flag = head_of_party_republican_candidate_4st
            }
        }

        if = {
            limit = {
                trait = papaline_party
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_papaline_candidate_1
                set_character_flag = head_of_party_papaline_candidate_1st
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_papaline_candidate_2
                set_character_flag = head_of_party_papaline_candidate_2st
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_papaline_candidate_3
                set_character_flag = head_of_party_papaline_candidate_3st
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_papaline_candidate_4
                set_character_flag = head_of_party_papaline_candidate_4st
            }
        }

        if = {
            limit = {
                trait = neutral_party
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_neutral_candidate_1
                set_character_flag = head_of_party_neutral_candidate_1st
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_neutral_candidate_2
                set_character_flag = head_of_party_neutral_candidate_2st
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_neutral_candidate_3
                set_character_flag = head_of_party_neutral_candidate_3st
            }

            random_realm_character = {
                limit = {
                    has_character_flag = head_of_party_candidate
                }
                save_event_target_as = head_of_party_neutral_candidate_4
                set_character_flag = head_of_party_neutral_candidate_4st
            }
        }

        # In 6 days the election should have ended...
        character_event = { id = senatorial_rep.115 days = 6 }
    }

    option = {
        name = EVTOPTOPTELECTsenatorial_rep.110

        trigger = {
            trait = imperial_party
        }

        character_event = { id = senatorial_rep.111 days = 3 random = 2 }       

        any_realm_character = {
            limit = {
                trait = imperial_party
            }

            character_event = { id = senatorial_rep.111 days = 3 random = 2 }
        }
    }

    option = {
        name = EVTOPTOPTELECTsenatorial_rep.110

        trigger = {
            trait = republican_party
        }

        any_realm_character = {
            limit = {
                trait = republican_party
            }

            character_event = { id = senatorial_rep.112 days = 3 random = 2 }
        }
    }

    option = {
        name = EVTOPTOPTELECTsenatorial_rep.110

        trigger = {
            trait = papaline_party
        }

        any_realm_character = {
            limit = {
                trait = papaline_party
            }

            character_event = { id = senatorial_rep.113 days = 3 random = 2 }
        }
    }

    option = {
        name = EVTOPTOPTELECTsenatorial_rep.110

        trigger = {
            trait = neutral_party
        }

        any_realm_character = {
            limit = {
                trait = neutral_party
            }

            character_event = { id = senatorial_rep.114 days = 3 random = 2 }
        }
    }
}
 
Last edited: