• 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.

Gladiated

Private
52 Badges
May 26, 2012
20
0
  • Crusader Kings II
  • Knights of Honor
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Rome: Vae Victis
  • Crusader Kings III
  • 500k Club
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Imperator: Rome - Magna Graecia
  • Supreme Ruler 2020
  • Europa Universalis III Complete
  • Victoria 2
  • Europa Universalis III Complete
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Heir to the Throne
  • Rome Gold
  • Victoria: Revolutions
  • Majesty 2
  • The Kings Crusade
  • For The Glory
  • Lead and Gold
  • Arsenal of Democracy
  • Mount & Blade: Warband
  • Sword of the Stars
  • Penumbra - Black Plague
  • Semper Fi
  • Cities: Skylines
Okay, does anybody else here use "any_dynasty_member_even_if_dead"? I'm on 2.8.1. Cuz no matter what I do, the effects I want to happen are shown in the tooltip but not actually exceuted.

Code:
targeted_form_cadet_dynasty = {
    
        is_high_prio = yes
        
        third_party = ROOT
        third_party_filter = dynasty
        show_third_party_potential = yes
        
        from_potential = {
            ai = no
        }
        
        potential = {
            ai = yes
        }
        
        third_party_potential = {
            FROMFROM = {
                show_scope_change = no
                is_descendant_of = ROOT
                is_female = no
                mother_even_if_dead = {
                    NOT = {
                        is_descendant_of = ROOT
                    }
                }
            }
        }
        
        third_party_allow = {
            FROMFROM = {
                is_descendant_of = ROOT
                is_female = no
            }
        }
        
        allow = {
            always = yes
        }
        
        effect = {
            
            ROOT = {
                dynasty = father_bastard
            }
            
            FROMFROM = {
                dynasty = ROOT
                any_dynasty_member_even_if_dead = {
                    limit = {
                        is_descendant_of = ROOT
                        is_female = no
                        mother_even_if_dead = {
                            NOT = {
                                is_descendant_of = ROOT
                            }
                        }
                    }
                    dynasty = ROOT
                }
            }
            
        }
        
    }

Even if I don't use the third party, as I said in https://forum.paradoxplaza.com/forum/index.php?threads/modding-quick-questions.589686/page-1631, "any_dynasty_member_even_if_dead" doesn't work. Not sure if bug or what.

Also, I tried using variables and count or whatever to keep track of a generation, but it doesn't work? Probably doing it wrong. Like I've brought a character from the dead to make targetable but it still doesn't work.

How exactly do you use "is_descendant_of" and "is_ancestor_of"? Is there a generation condition or limit? It's not on the official CK2 wiki. I want to limit the scope to a character's great grandfather or something like that instead of the 16 (generation) max that the developers said is the limit.

I just want to (properly; with dynasty tree view working; no unlinked characters)prune a dynasty after it has dispersed. And I want to distinguish between (bastard) maternal and paternal descendants.

This patch made me think that what I want is now possible. It's just the commands are not working or conditions are missing.

Like if I use "any_child_even_if_dead", it works right. But I have to keep repeating it over and over again. That's why I was so stoked for "is_descendant_of" and "is_ancestor_of".

"effect_even_if_dead" also doesn't work in my context?

Again, "any_dynasty_member_even_if_dead" shows what I want in the tooltip but it doesn't actually execute it.
 

blackninja9939

Experienced Programmer - Crusader Kings 3
Paradox Staff
78 Badges
Aug 28, 2013
2.401
7.847
  • Crusader Kings III
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
Okay, does anybody else here use "any_dynasty_member_even_if_dead"? I'm on 2.8.1. Cuz no matter what I do, the effects I want to happen are shown in the tooltip but not actually exceuted.

Code:
targeted_form_cadet_dynasty = {
   
        is_high_prio = yes
       
        third_party = ROOT
        third_party_filter = dynasty
        show_third_party_potential = yes
       
        from_potential = {
            ai = no
        }
       
        potential = {
            ai = yes
        }
       
        third_party_potential = {
            FROMFROM = {
                show_scope_change = no
                is_descendant_of = ROOT
                is_female = no
                mother_even_if_dead = {
                    NOT = {
                        is_descendant_of = ROOT
                    }
                }
            }
        }
       
        third_party_allow = {
            FROMFROM = {
                is_descendant_of = ROOT
                is_female = no
            }
        }
       
        allow = {
            always = yes
        }
       
        effect = {
           
            ROOT = {
                dynasty = father_bastard
            }
           
            FROMFROM = {
                dynasty = ROOT
                any_dynasty_member_even_if_dead = {
                    limit = {
                        is_descendant_of = ROOT
                        is_female = no
                        mother_even_if_dead = {
                            NOT = {
                                is_descendant_of = ROOT
                            }
                        }
                    }
                    dynasty = ROOT
                }
            }
           
        }
       
    }

Even if I don't use the third party, as I said in https://forum.paradoxplaza.com/forum/index.php?threads/modding-quick-questions.589686/page-1631, "any_dynasty_member_even_if_dead" doesn't work. Not sure if bug or what.

Also, I tried using variables and count or whatever to keep track of a generation, but it doesn't work? Probably doing it wrong. Like I've brought a character from the dead to make targetable but it still doesn't work.

How exactly do you use "is_descendant_of" and "is_ancestor_of"? Is there a generation condition or limit? It's not on the official CK2 wiki. I want to limit the scope to a character's great grandfather or something like that instead of the 16 (generation) max that the developers said is the limit.

I just want to (properly; with dynasty tree view working; no unlinked characters)prune a dynasty after it has dispersed. And I want to distinguish between (bastard) maternal and paternal descendants.

This patch made me think that what I want is now possible. It's just the commands are not working or conditions are missing.

Like if I use "any_child_even_if_dead", it works right. But I have to keep repeating it over and over again. That's why I was so stoked for "is_descendant_of" and "is_ancestor_of".

"effect_even_if_dead" also doesn't work in my context?

Again, "any_dynasty_member_even_if_dead" shows what I want in the tooltip but it doesn't actually execute it.
If I've correctly grasped what you want then the issue is you are changing the dynasty of FROMFROM to be ROOT's then looking for their dynasty members to make ROOT's dynasty as well. Because you are doing FROMFROM first you then look through all the members of their new dynasty and make the into the same dynasty they already are. Move the dynasty change of FROMFROM themselves to be after you search for their dynasty members.

effect_even_if_dead is only for history entries not decisions etc.
 

Abominus

French Maid
81 Badges
Sep 18, 2003
994
41
www.abominus.de.vu
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis III Complete
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Nemesis
  • Darkest Hour
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Arsenal of Democracy
  • Deus Vult
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron III Collection
  • Heir to the Throne
I want a trigger to check, if there is NO province in someones lieges provinces with a specific province modifier:

Code:
    trigger = {
        has_minor_title = title_forest_ranger
        liege = {
            any_demesne_province = {
                NOT = { has_province_modifier = better_defences_3 }
            }
        }
    }

Is this the right one?
 

Omniscient

Major
33 Badges
Oct 31, 2006
732
16
  • Stellaris: Apocalypse
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Crusader Kings II
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Victoria 2
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV
  • 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: Charlemagne
I want a trigger to check, if there is NO province in someones lieges provinces with a specific province modifier:

Code:
    trigger = {
        has_minor_title = title_forest_ranger
        liege = {
            any_demesne_province = {
                NOT = { has_province_modifier = better_defences_3 }
            }
        }
    }

Is this the right one?
That checks if there are any provinces without the modifier. You want the not around the any demense province
 

Rydelfox

Lt. General
90 Badges
Oct 30, 2016
1.476
12
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Sword of the Stars
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • 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
  • Hearts of Iron III
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV
Sometimes a missing "=" can break the events too. I've had it happen before.

No missing =, but moving the events into a different files in a different namespace fixed it. Simply copying the text into a new file alone didn't no anything (not file corruption), so I'm going to assume the original namespace is cursed.
 

Sniggles

Major
75 Badges
Feb 27, 2012
503
4
  • Crusader Kings II: Charlemagne
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • 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
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Conquest of Paradise
  • Darkest Hour
  • Europa Universalis IV: El Dorado
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Gold Edition
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Stellaris: Leviathans Story Pack
  • Stellaris: Nemesis
  • 500k Club
  • War of the Roses
  • Europa Universalis IV
  • Victoria 2
  • Europa Universalis III Complete
What files (if any; I'm not sure if it's moddable) or modifiers control whether a character will use his court chaplain to proselytize to unreformed pagans? I'm using HIP Hydra2, but for some reason it seems like no AI character is willing to proselytize to pagans any longer. I made some changes to the files but I'm not sure what controls AI chances (I can still manually proselytize so I know it's not entirely broken) so I don't know what I could've done which makes them unwilling to try to convert.
 

PowerlessToaster

Recruit
34 Badges
Nov 5, 2017
2
0
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Holy Fury
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Crusader Kings III
  • Tyranny: Archon Edition
  • 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
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
I'm trying just to add max_consorts to another religion but after trying i'm not able to take any concubines. I also just changed max_wives for Sunni to 2 and tried that and they are still able to take 4. Why does the game not recognize the changes i've made?
 

Yoshilin

Corporal
35 Badges
Feb 12, 2016
41
1
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II
  • Ship Simulator Extremes
  • Hearts of Iron III
  • Impire
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Sengoku
  • Magicka 2
  • Teleglitch: Die More Edition
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
  • Age of Wonders III
  • Crusader Kings II: Jade Dragon
  • Shadowrun Returns
  • Crusader Kings II: Holy Fury
  • Crusader Kings III
  • Humble Paradox Bundle
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • War of the Roses
  • Victoria 2
  • Europa Universalis IV
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Hey guys, I'm having some trouble uploading my mods to the Steam Workshop (I was so glad when the finally removed that file size limit in the last update). So my issue is with the thumbnail, I can't seem to get the thumbnail to show up for the mod. Sometimes the mod just won't upload at all. Any thoughts?
 

Aardvark Bellay

Lord Wuffington of Grumpytown by the barks
21 Badges
Apr 5, 2001
15.440
2.857
  • Divine Wind
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III
  • Deus Vult
  • 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: Charlemagne
So my issue is with the thumbnail, I can't seem to get the thumbnail to show up for the mod.

What worked for me.
- In the .mod file a line like: picture="NoWiki.jpg"
- The picture itself inside the mod folder, not the 'mod' folder.
- jpg format and small size (=/< 50kb). I use the "Save for Web" option in Irfanview for that.
- Additonaly on your mods page in "Owner Controls" on the right you can use the "Add/edit Images &Videos" option.

Sometimes the mod just won't upload at all. Any thoughts?

- Sometimes ? Did you do anything different then when it works or not. Elaborate.
- How do you know it hasn't uploaded ? Do you check "Your Workshop Files"/Workshop Items ?
If you just look at the Workshoip itself then the mod might be hidden. Go to "Change Visibility".
 
Last edited:

LordPeter

Marjoram
49 Badges
Mar 5, 2012
2.249
382
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Conclave
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Prison Architect
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV: Res Publica
  • 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
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Stellaris
  • Europa Universalis IV: Third Rome
  • Cities: Skylines
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Cradle of Civilization
Can provinces be turned into wastelands?
Not dynamically if you mean that, no.
An older CK2+ version had a Iceland with "no character" as holder until it would have been colonized, but the system was bugged. And AGOT seems to circumvent the problem by having fake characters such as "Ruin" to hold the supposedly empty provinces.
So no, there is no known way to properly make provinces into wasteland or vice versa dynamically, only crafty workarounds.
I'm trying just to add max_consorts to another religion but after trying i'm not able to take any concubines. I also just changed max_wives for Sunni to 2 and tried that and they are still able to take 4. Why does the game not recognize the changes i've made?
Did you make your own mod (as opposed to editing vanilla files), and activate it?
Forgive me if this sounds obvious, but I tend to begin with asking the easy things first ^^
 

Undecided

First Lieutenant
78 Badges
Apr 27, 2008
290
3
  • Semper Fi
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Leviathan: Warships
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis IV: Res Publica
  • Hearts of Iron II: Armageddon
  • Sword of the Stars II
  • Supreme Ruler: Cold War
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings II: Jade Dragon
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Art of War
  • A Game of Dwarves
  • 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
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Europa Universalis IV
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Europa Universalis III Complete
  • Crusader Kings III
I want to write an event (a simulated competition) where the character is granted different amounts of gold based on the presence of different traits. I created a simple event, and made an single event "choice" which calculates and adds the rewards as a single payout. The event has been tested and works properly. Here is the relevant section.

Code:
        if = { limit = { trait = A }
            wealth = +1
        }
        if = { limit = { trait = B }
            wealth = +2
        }
        if = { limit = { trait = C }  
            wealth = +3                  
        }

Now, let's say I wanted to put restrictions on which characters can apply certain traits. For example, gender. What is the most efficient way to do this? I know the "is_female = yes/no" variable exists, but I'm uncertain how to format the code.

Could I use some form of sublist to avoid writing "is_female = yes/no" inside every option? Like:

Code:
        if = {
            limit = {
                is_female = yes
                    if = { trait = A }
                        wealth = +1
                    }
                    if = { trait = B}
                        wealth = +2
                    }
                    if = { trait = C }
                        wealth = +3
                    }
                }
            }
        if = {
            limit = {
                is_female = no
                    if = { trait = D }
                        wealth = +1
                    }
                    if = { trait = E }
                        wealth = +2
                    }
                    if = { trait = F }
                        wealth = +3
                    }
                }
            }
        }
 

LordPeter

Marjoram
49 Badges
Mar 5, 2012
2.249
382
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Conclave
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Prison Architect
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV: Res Publica
  • 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
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Stellaris
  • Europa Universalis IV: Third Rome
  • Cities: Skylines
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Cradle of Civilization
I want to write an event (a simulated competition) where the character is granted different amounts of gold based on the presence of different traits. I created a simple event, and made an single event "choice" which calculates and adds the rewards as a single payout. The event has been tested and works properly. Here is the relevant section.

Code:
        if = { limit = { trait = A }
            wealth = +1
        }
        if = { limit = { trait = B }
            wealth = +2
        }
        if = { limit = { trait = C }
            wealth = +3                
        }

Now, let's say I wanted to put restrictions on which characters can apply certain traits. For example, gender. What is the most efficient way to do this? I know the "is_female = yes/no" variable exists, but I'm uncertain how to format the code.

Could I use some form of sublist to avoid writing "is_female = yes/no" inside every option? Like:

Code:
        if = {
            limit = {
                is_female = yes
                    if = { trait = A }
                        wealth = +1
                    }
                    if = { trait = B}
                        wealth = +2
                    }
                    if = { trait = C }
                        wealth = +3
                    }
                }
            }
        if = {
            limit = {
                is_female = no
                    if = { trait = D }
                        wealth = +1
                    }
                    if = { trait = E }
                        wealth = +2
                    }
                    if = { trait = F }
                        wealth = +3
                    }
                }
            }
        }
Yes you can stack if-clauses inside each other. However, your formatting is wrong - you must NOT put the 2nd-level clauses inside the first "limit" brackets, but rather after that.
Because inside a "limit" clause you can only ever check things, never actually do stuff. This distinction is super-important in coding, and not abiding to this rule will cause all sorts of problems. So how it should properly read is this:
Code:
if = {
    limit = {
        is_female = yes
    }
    if = {
        limit = {
            trait = A
        }
        wealth = 1
    }
    if = {
        limit = {
            trait = B
        }
        wealth = 2
    }
    if = {
        limit = {
            trait = C
        }
        wealth = 3
    }
}
if = {
    limit = {
        is_female = no
    }
    if = {
        limit = {
            trait = D
        }
        wealth = 1
    }
    if = {
        limit = {
            trait = E
        }
        wealth = 2
    }
    if = {
        limit = {
            trait = F
        }
        wealth = 3
    }
}
Also note that afaik you must not specifically mark positive numbers, as I don't think the game understands "+3". Instead, just write "3", and the game will automatically assume that this is a positive number (but you must, of course, designate negative numbers).
 

Yoshilin

Corporal
35 Badges
Feb 12, 2016
41
1
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II
  • Ship Simulator Extremes
  • Hearts of Iron III
  • Impire
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Sengoku
  • Magicka 2
  • Teleglitch: Die More Edition
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
  • Age of Wonders III
  • Crusader Kings II: Jade Dragon
  • Shadowrun Returns
  • Crusader Kings II: Holy Fury
  • Crusader Kings III
  • Humble Paradox Bundle
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • War of the Roses
  • Victoria 2
  • Europa Universalis IV
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
What worked for me.
- In the .mod file a line like: picture="NoWiki.jpg"
- The picture itself inside the mod folder.
- jpg format and small size (=/< 50kb). I use the "Save for Web" option in Irfanview for that.
- Additonaly on your mods page in "Owner Controls" on the right you can use the "Add/edit Images &Videos" option.



- Sometimes ? Did you do anything different then when it works or not. Elaborate.
- How do you know it hasn't uploaded ? Do you check "Your Workshop Files"/Workshop Items ?
If you just look at the Workshoip itself then the mod might be hidden. Go to "Change Visibility".

Alright so the solution was pretty simple - In the case of the mod thumbnails not showing up you need to put the image file inside the directory folder for your mod's files (I was just putting them directly into my CK2/mods folder). As for the mods not showing up on the Workshop, just be patient, it's just CK2 / Steam Workshop being difficult. You can't actually modify the thumbnail for the mod using "Add/edit images..." you need to update the mod with the new thumbnail through the content tab in-game.
 

LordPeter

Marjoram
49 Badges
Mar 5, 2012
2.249
382
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Conclave
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Prison Architect
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV: Res Publica
  • 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
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Stellaris
  • Europa Universalis IV: Third Rome
  • Cities: Skylines
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Cradle of Civilization
This might be a bug, but using saved event targets in localization doesn't seem to work as it used to. Is anyone else having the same problem?
Dunno, but there has been some (undocumented?) change to certain localization issues in 2.8.
I experienced it when I tried my custom localization on a province modifier on the new patch, and found that using "Root.Custom_Province_Localization_Thingy" (just an example) wouldn't work anymore, as the "Root" scope that was essential was not necessary anymore, and I would just have to use the localization command directly, without first having to scope to Root - which is actually much more plausible, so maybe to old thing was simply some sort of bug.
Long story short, maybe something else is affecting you? I could imagine scoping in localization could have changed in other places as well.