• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Yonni

Sergeant
21 Badges
Sep 24, 2012
74
1
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • 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: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Victoria 2
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
For the first one, edit events/HF_sainthood_events.txt, search for the first random and change the chance to a lower value.
For the second, I think you can create a triggered_modifier. Leave potential and allow empty. Put health = -x and an icon in.

Dude thank you for both!

I had a hunch it was a a trigger modifier thing just didn’t know how to get it to work, now I’ve learned I can add exceptions for traits and things this is awesome.
 

Silversweeeper

Ichi no Hito
58 Badges
Aug 24, 2012
3.951
2.853
  • Stellaris - Path to Destruction bundle
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Charlemagne
  • Stellaris Sign-up
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • 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
  • Europa Universalis III Complete
  • Magicka
Is there a way to block a religion group behind a DLC? Because we have a buddhist_group and we aren't sure PDX would be happy if it didn't require Rajas of India to play.

Unfortunately there is no way to DLC lock a religion or religion group. I suggest you put the religions in your buddhist_group back in indian_group, as that'd definitely avoid DLC lock issues if you've got any intention to publish the mod. Scoping can be simplified a bit with a custom is_buddhist_religion_trigger, which should make up for one of the benefits of having a separate group.

It might also be permissible to use a buddhist_group if you lock everything that checks for the Buddhist religion in vanilla to RoI, but that'd at the very least fail to lock playing as a Buddhist (or whatever the actual religion would be after the split) ruler, which might be enough on its own to count as a rule violation, and as it would require about the same amount of work as the option above (as you'd need to hunt down the same "religion = buddhist" references and change them) it seems better to go with the safer option.
 

Aerotinge

Gouverneur van Torkia
41 Badges
Aug 1, 2018
570
170
  • Battle for Bosporus
  • Surviving Mars
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings III Referal
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV
  • 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: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Pre-order
So, is any attempts to move "buddhist" out of "indian_group" illegal?
Code:
indian_group = {
    #buddhist = {
    #...
    #}
}

buddhist_group = {
    buddhist = { # id is for back-ward compatibility, it works like Chalcedonian in Christianity
    }
    #tibet_buddhist = {
    #han_buddhist = {
    #theravada_buddhist = {
}

I was trying split buddhism elements from RoI, since it's already spearded to an extended, farther lands before the beginning of CK2 timeframe.
More, It's ridiculous to lock buddhist with RoI DLC, especially when it became extinct in India in 12 century.

I own that DLC and neverseldom play with it, I have to give up buddhist characters, even if they're Japanese.

EDIT: Ah, forget I'm coming for asking a question,

Is variable still 32-bit signed fixed-point? Is 3.3 patch change this part?
EDIT2: Alright find the answer myself. Yes it's still 32-bit signed fixed-point.
 
Last edited:

Aerotinge

Gouverneur van Torkia
41 Badges
Aug 1, 2018
570
170
  • Battle for Bosporus
  • Surviving Mars
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Cadet
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings III Referal
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV
  • 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: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Pre-order
Last edited:

Whizzer

CKPlus Triumvirate
77 Badges
Jun 17, 2014
1.625
799
  • Semper Fi
  • Hearts of Iron III Collection
  • Heir to the Throne
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Victoria: Revolutions
  • Rome Gold
  • Cities in Motion
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron III
  • A Game of Dwarves
  • Cities in Motion 2
  • 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: Sword of Islam
  • Dungeonland
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Divine Wind
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Crusader Kings III
  • Europa Universalis IV
In regards to this post is it possible to mod this (also for forts) or is it hardcoded?

Hardcoded as far as I know.

Is it possible to mod it so a count who holds at least 51% of a de jure duchy can't create the ducal title if they're a vassal?

Yes, you'd have to add conditions to title creation in landed titles. I suggest you make it a scripted trigger, which you can then add to every single duchy title by hand.
 

Rags17

Ludere Ludum
62 Badges
Dec 11, 2014
5.953
3.631
  • 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
  • Crusader Kings II
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Mass Transit
  • Steel Division: Normandy 44
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Surviving Mars
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Holy Fury
  • Crusader Kings Complete
  • Stellaris: Distant Stars
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Battle for Bosporus
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rule Britannia
  • Imperator: Rome Sign Up
  • Crusader Kings III
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Europa Universalis IV: Dharma
  • Victoria 2
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: La Resistance
  • Stellaris
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Call to arms event
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
Hi All

After two years away from modding I am back into CK2 and more importantly back into modding. I play with a custom minimod to which I keep adding decisions and events, the most recent decision will allow a tribal player to build a colony in an empty nomadic province. After lots of futzing about (my skills have become very rusty !) I finally worked out how to get what I want by simply usurping the province title from the nomadic holder, then picking an appropriate courtier at random, then handing it over to them along with a weak claim and alliance to the player.

The decision and its event are now about 99% complete apart from two minor but annoying issues, and thus my queries

1) What is the syntax to build a fort in the province ? After taking over the area I get a free Tribal village but it starts off empty of garrison or levy and nothing seems to restock this so I am thinking instead of just adding a fort to give the colony some sort of minimal defence until the village restores its troops.

2) What is the syntax to scope the decision to only appear for provinces that are nomadic and empty, ie not the capital of the holder or their liege ? So far I have successfully limited it to nomadic provinces within 100 miles away only, I just can't seem to work out the syntax for this last restriciton..

The decision and its associated event are detailed below -

Code:
# Establish a colony in empty nomadic land
title_decisions = {
    establish_colony = {
        only_playable = yes

# Must be out of prison, be feudal or tribal, not have a disqualifying trait
        from_potential = {
            is_adult = yes
            OR = {
                government = tribal_government
                government = feudal_government
            }
            NOR = {
                trait = incapable
                trait = imbecile
            }
        }
       
# Target province must be not owned by the decision taker, be less than 80 miles away, and be empty nomadic land
        potential = {
            NOR = {
                owner = { liege = { character = FROM } }
            }
           
            NOT = {
                distance = { who = FROM value = 100 }
            }
           
            holder_scope = {
                government = nomadic_government
#                NOT = { capital_scope = PREVPREV }
            }
        }
   
# Decision taker must not be in prison, in hiding or at war, and have at least 50 gold and 200 prestige
        allow = {
            FROM = {
                prisoner = no
                NOT = { trait = in_hiding }
                war = no
               
                wealth = 50
                prestige = 200
            }
        }
       
# Save target province, fire event
        effect = {
            save_event_target_as = colonised_province
           
            FROM = { character_event = { id = TTTB_tributary.001 } }
        }
       
        revoke_allowed = { always = no }
        ai_will_do = { factor = 0 }
    }
}

Code:
namespace = TTTB_tributary


character_event = {
    id = TTTB_tributary.001
    desc = EVTDESC_TTTB_tributary.001
    picture = GFX_evt_culture_change

    is_triggered_only = yes
   
    option = {
        name = EVTOPTA_TTTB_tributary.001
       
        event_target:colonised_province = {
            usurp_title = ROOT
            build_holding = { type = fort holder = ROOT }  
        }
       
        random_courtier = {
            limit = {
                is_adult = yes
                is_landed = no
                is_voter = no
                prisoner = no
               
                OR = {
                    trait = administrator
                    trait = ambitious
                    trait = brave
                    trait = diligent
                    trait = greedy
                    trait = proud
                    trait = zealous
                }
                NOR = {
                    trait = craven
                    trait = depressed
                    trait = imbecile
                    trait = incapable
                }
            }
           
            grant_title = event_target:colonised_province
            set_defacto_liege = THIS
            add_alliance = { who = ROOT years = 10 }
        }
       
        event_target:colonised_province = { add_weak_claim = ROOT }
        wealth = -50
        prestige = -200
    }

    option = {
        name = EVTOPTB_TTTB_tributary.001
        prestige = -5
        letter_event = { id = TTTB_tributary.001 }
    }

    option = {
        name = EVTOPTC_TTTB_tributary.001
        prestige = -20
    }
}
 

Whizzer

CKPlus Triumvirate
77 Badges
Jun 17, 2014
1.625
799
  • Semper Fi
  • Hearts of Iron III Collection
  • Heir to the Throne
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Victoria: Revolutions
  • Rome Gold
  • Cities in Motion
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron III
  • A Game of Dwarves
  • Cities in Motion 2
  • 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: Sword of Islam
  • Dungeonland
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Divine Wind
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Crusader Kings III
  • Europa Universalis IV
1) What is the syntax to build a fort in the province ? After taking over the area I get a free Tribal village but it starts off empty of garrison or levy and nothing seems to restock this so I am thinking instead of just adding a fort to give the colony some sort of minimal defence until the village restores its troops.

2) What is the syntax to scope the decision to only appear for provinces that are nomadic and empty, ie not the capital of the holder or their liege ? So far I have successfully limited it to nomadic provinces within 100 miles away only, I just can't seem to work out the syntax for this last restriciton..

1) 'create_hospital' exists, so perhaps 'create_fort' works as well. You'll have to try it out and see if the game works along.

2) Try this:

Code:
NOT = {
    any_province_holding = {
        OR = {
            holding_type = CASTLE
            holding_type = CITY
            holding_type = TEMPLE
            holding_type = TRIBAL
        }
    }
}
 

jursamaj

General
125 Badges
Aug 20, 2012
2.360
216
  • 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
  • Hearts of Iron IV: No Step Back
Hi All

After two years away from modding I am back into CK2 and more importantly back into modding. I play with a custom minimod to which I keep adding decisions and events, the most recent decision will allow a tribal player to build a colony in an empty nomadic province. After lots of futzing about (my skills have become very rusty !) I finally worked out how to get what I want by simply usurping the province title from the nomadic holder, then picking an appropriate courtier at random, then handing it over to them along with a weak claim and alliance to the player.

The decision and its event are now about 99% complete apart from two minor but annoying issues, and thus my queries

1) What is the syntax to build a fort in the province ? After taking over the area I get a free Tribal village but it starts off empty of garrison or levy and nothing seems to restock this so I am thinking instead of just adding a fort to give the colony some sort of minimal defence until the village restores its troops.

2) What is the syntax to scope the decision to only appear for provinces that are nomadic and empty, ie not the capital of the holder or their liege ? So far I have successfully limited it to nomadic provinces within 100 miles away only, I just can't seem to work out the syntax for this last restriciton..

The decision and its associated event are detailed below -

Code:
# Establish a colony in empty nomadic land
title_decisions = {
    establish_colony = {
        only_playable = yes

# Must be out of prison, be feudal or tribal, not have a disqualifying trait
        from_potential = {
            is_adult = yes
            OR = {
                government = tribal_government
                government = feudal_government
            }
            NOR = {
                trait = incapable
                trait = imbecile
            }
        }
      
# Target province must be not owned by the decision taker, be less than 80 miles away, and be empty nomadic land
        potential = {
            NOR = {
                owner = { liege = { character = FROM } }
            }
          
            NOT = {
                distance = { who = FROM value = 100 }
            }
          
            holder_scope = {
                government = nomadic_government
#                NOT = { capital_scope = PREVPREV }
            }
        }
  
# Decision taker must not be in prison, in hiding or at war, and have at least 50 gold and 200 prestige
        allow = {
            FROM = {
                prisoner = no
                NOT = { trait = in_hiding }
                war = no
              
                wealth = 50
                prestige = 200
            }
        }
      
# Save target province, fire event
        effect = {
            save_event_target_as = colonised_province
          
            FROM = { character_event = { id = TTTB_tributary.001 } }
        }
      
        revoke_allowed = { always = no }
        ai_will_do = { factor = 0 }
    }
}

Code:
namespace = TTTB_tributary


character_event = {
    id = TTTB_tributary.001
    desc = EVTDESC_TTTB_tributary.001
    picture = GFX_evt_culture_change

    is_triggered_only = yes
  
    option = {
        name = EVTOPTA_TTTB_tributary.001
      
        event_target:colonised_province = {
            usurp_title = ROOT
            build_holding = { type = fort holder = ROOT } 
        }
      
        random_courtier = {
            limit = {
                is_adult = yes
                is_landed = no
                is_voter = no
                prisoner = no
              
                OR = {
                    trait = administrator
                    trait = ambitious
                    trait = brave
                    trait = diligent
                    trait = greedy
                    trait = proud
                    trait = zealous
                }
                NOR = {
                    trait = craven
                    trait = depressed
                    trait = imbecile
                    trait = incapable
                }
            }
          
            grant_title = event_target:colonised_province
            set_defacto_liege = THIS
            add_alliance = { who = ROOT years = 10 }
        }
      
        event_target:colonised_province = { add_weak_claim = ROOT }
        wealth = -50
        prestige = -200
    }

    option = {
        name = EVTOPTB_TTTB_tributary.001
        prestige = -5
        letter_event = { id = TTTB_tributary.001 }
    }

    option = {
        name = EVTOPTC_TTTB_tributary.001
        prestige = -20
    }
}
From the change log for 2.4:
- Added effects create_fort, destroy_fort, seize_fort, random_fort and any_fort.
- Added triggers any_fort, num_of_forts, num_of_forts_diff, has_fort, fort_has_building and fort_has_any_building.
Sadly, create_fort is not in the wiki, and not used in vanilla code. Presumably it works just like create_hospital: be scoped to the person building the fort and 'create_fort = <province>', where <province> is a numeric ID or a scope (like ROOT or PREV or event target) that points to a province.
 

Rags17

Ludere Ludum
62 Badges
Dec 11, 2014
5.953
3.631
  • 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
  • Crusader Kings II
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Mass Transit
  • Steel Division: Normandy 44
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Surviving Mars
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Holy Fury
  • Crusader Kings Complete
  • Stellaris: Distant Stars
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Battle for Bosporus
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rule Britannia
  • Imperator: Rome Sign Up
  • Crusader Kings III
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Europa Universalis IV: Dharma
  • Victoria 2
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: La Resistance
  • Stellaris
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Call to arms event
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
That worked, thanks guys.

Two more questions -

1) Is it possible to force open the character window ? My custom decision picks a courtier at random to be the nominated owner of the new colony but one of the options allows the player to basically "re-roll" the courtier at the cost of 5 Prestige. I'd like the character portrait to open automatically so that the player does not have to click on the random courtier's portrait.

2) How do you create a random courtier for an event, then use that courtier's name and details in the localization of the various button options ? My event has some standard guff followed by the options A) "<random courtier> is perfect, they will have my full support !" B) "No <random courtier> is not up to the task, maybe someone else ?" and C) "Maybe this is not such a good idea..."

I have tried selecting the random courtier via an "immediate block" then saving it as an event target and using that in the following option blocks and their localization but all I am getting is a blank letter event block. What am I missing here ?

Code:
namespace = TTTB_tributary

character_event = {
    id = TTTB_tributary.001
    desc = EVTDESC_TTTB_tributary.001
    picture = GFX_evt_culture_change

    is_triggered_only = yes
    
    immediate - {
        random_courtier = {
            limit = {
                is_adult = yes
                is_landed = no
                is_voter = no
                prisoner = no
                
                OR = {
                    trait = administrator
                    trait = ambitious
                    trait = brave
                    trait = diligent
                    trait = envious
                    trait = greedy
                    trait = zealous
                }
                NOR = {
                    trait = craven
                    trait = humble
                    trait = imbecile
                    trait = incapable
                }
            }
            
            save_event_target_as = chosen_governor
        }
    }
    
    option = {
        name = EVTOPTA_TTTB_tributary.001
        
        event_target:colonised_province = { usurp_title = ROOT }
        
        event_target:chosen_governor = {
            grant_title = event_target:colonised_province
            set_defacto_liege = THIS
            create_fort = event_target:colonised_province
            
            add_alliance = { who = ROOT years = 10 }
        }
        
        event_target:colonised_province = { add_weak_claim = ROOT }
        wealth = -50
        prestige = -200
    }

    option = {
        name = EVTOPTB_TTTB_tributary.001
        prestige = -5
        letter_event = { id = TTTB_tributary.001 }
    }

    option = {
        name = EVTOPTC_TTTB_tributary.001
        prestige = -20
    }
}
 

Silversweeeper

Ichi no Hito
58 Badges
Aug 24, 2012
3.951
2.853
  • Stellaris - Path to Destruction bundle
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Charlemagne
  • Stellaris Sign-up
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • 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
  • Europa Universalis III Complete
  • Magicka
Is there a way to adjust the base income of different holding types? ex: Castles have a base tax of 4.00. If I wanted to raise this to 5.00 or 6.00 (if possible), where should I look? Defines?

Check static_modifiers.txt. Keep in mind that it applies the changes globally, and that there will be various side-effects (e.g. richer provinces are more likely to get disease outbreaks, and all provinces with a castle will be richer if you increase the castle base tax), so consider not making big changes (4 -> 5 is already a 25 % increase per castle) right away.
 

Silversweeeper

Ichi no Hito
58 Badges
Aug 24, 2012
3.951
2.853
  • Stellaris - Path to Destruction bundle
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Charlemagne
  • Stellaris Sign-up
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • 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
  • Europa Universalis III Complete
  • Magicka
How can scope to a newly built holding, created by "build_holding = { type = castle }" ?
There's no new_holding scope.

As a workaround, apply some kind of dummy modifier to all other built holdings in the province before you build the new holding, use any/random_province_holding with a limit that excludes holdings with the modifier as your scope, do whatever you want to do with the holding, and then clear out the modifier after you're done with the holding. It's rather ugly, but it should work.
 

jursamaj

General
125 Badges
Aug 20, 2012
2.360
216
  • 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
  • Hearts of Iron IV: No Step Back
How can scope to a newly built holding, created by "build_holding = { type = castle }" ?
There's no new_holding scope.
As an alternate to Silversweeper's idea, if you don't need to do your thing in the same event, there is a on_settlement_construction_completed action. You could add a dummy flag/modifier to the province, then have an event fired under on_settlement_construction_completed watch for that flag/modifier, do it's thing, then unflag the province. Downside is, it's a separate event that doesn't inherit the scopes of the original event.
 

LaTueur

Regent
9 Badges
Jul 29, 2014
101
94
  • Crusader Kings II
  • Europa Universalis IV
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV Sign-up
  • Age of Wonders III
  • Crusader Kings III
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
That worked, thanks guys.

Two more questions -

1) Is it possible to force open the character window ? My custom decision picks a courtier at random to be the nominated owner of the new colony but one of the options allows the player to basically "re-roll" the courtier at the cost of 5 Prestige. I'd like the character portrait to open automatically so that the player does not have to click on the random courtier's portrait.

2) How do you create a random courtier for an event, then use that courtier's name and details in the localization of the various button options ? My event has some standard guff followed by the options A) "<random courtier> is perfect, they will have my full support !" B) "No <random courtier> is not up to the task, maybe someone else ?" and C) "Maybe this is not such a good idea..."

I have tried selecting the random courtier via an "immediate block" then saving it as an event target and using that in the following option blocks and their localization but all I am getting is a blank letter event block. What am I missing here ?

Code:
namespace = TTTB_tributary

character_event = {
    id = TTTB_tributary.001
    desc = EVTDESC_TTTB_tributary.001
    picture = GFX_evt_culture_change

    is_triggered_only = yes
   
    immediate - {
        random_courtier = {
            limit = {
                is_adult = yes
                is_landed = no
                is_voter = no
                prisoner = no
               
                OR = {
                    trait = administrator
                    trait = ambitious
                    trait = brave
                    trait = diligent
                    trait = envious
                    trait = greedy
                    trait = zealous
                }
                NOR = {
                    trait = craven
                    trait = humble
                    trait = imbecile
                    trait = incapable
                }
            }
           
            save_event_target_as = chosen_governor
        }
    }
   
    option = {
        name = EVTOPTA_TTTB_tributary.001
       
        event_target:colonised_province = { usurp_title = ROOT }
       
        event_target:chosen_governor = {
            grant_title = event_target:colonised_province
            set_defacto_liege = THIS
            create_fort = event_target:colonised_province
           
            add_alliance = { who = ROOT years = 10 }
        }
       
        event_target:colonised_province = { add_weak_claim = ROOT }
        wealth = -50
        prestige = -200
    }

    option = {
        name = EVTOPTB_TTTB_tributary.001
        prestige = -5
        letter_event = { id = TTTB_tributary.001 }
    }

    option = {
        name = EVTOPTC_TTTB_tributary.001
        prestige = -20
    }
}
The first one isn't really possible. You can display the portrait with portrait = event_target:chosen_governor.
The second should work fine. You need to write [chosen_governor.GetFirstName] or something like this in loc. You may have put an event_target: before chosen_governor, you shouldn't do that. I'm just saying, because I always made this mistake for a while.