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

moscal

Field Marshal
55 Badges
Jan 6, 2012
3.940
3.008
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Tyranny: Archon Edition
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: El Dorado
  • Europa Universalis 4: Emperor
  • Imperator: Rome
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • Warlock: Master of the Arcane
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
I want check all coastal provinces in specific gulfs. I made this code, but game see here endless OR. Anybody have idea to repair or rework? If I will remove this fragment of all event - option shows up.

Code
Code:
       1001 = {
           any_neighbor_province = {
               owner = ROOT
               NOT = { has_province_modifier = marauding_pirates }
           }
       }
       1002 = {
           any_neighbor_province = {
               owner = ROOT
               NOT = { has_province_modifier = marauding_pirates }
           }
       }

Resoult
1F23F15C94F63878341DE85E94EDE03699EFE07E
 
Last edited:

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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 IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2
Quick question, I created a custom empire title that can only be created under certain conditions. However, looking at how the Kingdom of Prussia mod was constructed, I built my own like it and everything worked perfectly...... except that the title never appeared and the decision just stuck around......

You could click on it and loose the 1200 gold, as well as gain 2000 prestige, but the actual empire title would not show up.... any ideas?

Side note, I did not edit any duchies/kingdoms to become de jure to this empire if that had any impact.
 

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
Quick question, I created a custom empire title that can only be created under certain conditions. However, looking at how the Kingdom of Prussia mod was constructed, I built my own like it and everything worked perfectly...... except that the title never appeared and the decision just stuck around......

You could click on it and loose the 1200 gold, as well as gain 2000 prestige, but the actual empire title would not show up.... any ideas?

Side note, I did not edit any duchies/kingdoms to become de jure to this empire if that had any impact.
Without seeing your script my quick guess would be your title starts out deactivated and you are not activating the title in the decision before granting it to someone
 

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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 IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2
Without seeing your script my quick guess would be your title starts out deactivated and you are not activating the title in the decision before granting it to someone
I can post all of the scripting, however there is a hefty amount and it could be a hassle to read through all of it.
Code:
#crown_parthava
    crown_parthava = {
        is_high_prio = yes
        desc = crown_parthava
        
        potential = {
            is_playable = yes
            culture = tocharian
            OR = {
                tier = KING
            }
            OR = {
                religion = zoroastrian
                religion = mazdaki
                religion = manichaean
            }
            OR = {
                has_landed_title = k_persia
            }
            e_parthava = { has_holder = no }
            
            NOT = { is_nomadic = yes }
            NOT = { is_tribal = yes }
        }
        
        allow = {
            war = no
            is_adult = yes
            culture = tocharian
            OR = {
                religion = zoroastrian
                religion = mazdaki
                religion = manichaean
            }
            NOT = { trait = incapable }
            prisoner = no
            prestige = 1500
            wealth = 1200
            NOT = { tier = EMPEROR }
            has_landed_title = k_persia
            NOT {
                OR {
                    primary_title = { title = e_persia }
                }
            }
            completely_controls = d_tabaristan
            completely_controls = d_khorasan
            completely_controls = d_hamadan
            realm_size = 100
        }
        
        effect = {
            set_character_flag = crown_parthava_flag           
            #set the capital to Gurgan if not already
            if = {
                limit = {
                    NOT = {
                        capital_scope = { province_id = 633 }
                    }
                }
                633 = { #Gurgan
                    ROOT = { capital = PREV }
                }
            }
            
            # set the new capital culture to tocharian, also religion
            capital_scope = {
                if = {
                    limit = {
                        NOT = { culture = ROOT }
                    }
                    culture = ROOT
                }
                if = {
                    limit = {
                        NOT = { religion = ROOT }
                    }
                    religion = ROOT
                }
            }
            
            prestige = 3000
            
            wealth = -1200
            
            character_event = { id = PH.0001 }
        }
        
        revoke_allowed = {
            always = no
        }
        
        ai_will_do = {
            factor = 1
        }
    }

As it stands, I think this is where the problem is, but I can post more if you need it.
 

Stono

Private
30 Badges
Dec 2, 2015
11
14
  • Europa Universalis IV
  • Cities: Skylines - After Dark
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Crusader Kings II
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Prison Architect
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Europa Universalis IV: Cradle of Civilization
  • Empire of Sin
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Europa Universalis IV: Common Sense
  • Mount & Blade: With Fire and Sword
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Victoria 2
  • Europa Universalis IV: Cossacks
Quick question, I just bumped into something I haven't noticed before while writing CK2 Events. From what I have been able to collect it seems like some people put their localization strings within quotation marks, and I can't seem to figure out why the hell they are doing it. Does anyone have a clue?

Code:
# Blackmail or not
letter_event = {
    id = 7255
    desc = "EVTDESC7255"
    picture = GFX_evt_whispers
    
    hide_from = yes
    
    is_triggered_only = yes
    
    option = {
        name = "EVTOPTA7255"
        ai_chance = {
            factor = 75
            modifier = {
                factor = 2
                NOT = { opinion = { who = FROM value = -25 } }
            }
        }
        FROM = { letter_event = { id = 7260 days = 1 tooltip = "EVTTOOLTIP7260" } }
    }
    option = {
        name = "EVTOPTB7255"
        ai_chance = {
            factor = 25
            modifier = {
                factor = 0
                NOT = { opinion = { who = FROM value = -50 } }
            }
        }
    }
}

Now the natural question would obviously be, why the hell would someone ask a question like this. Which also happens to be a question I'll quite happily answer!

For the last couple of days I've been working on a tool which converts the localization strings of an Event file and puts it in a .csv for you! So far it's working out pretty much as expected, but I'd like to ensure that it works with as many ways of creating localization as possible, and therefore knowing why some mod developers (and even Paradox employees mind you!) do this.

Looking forward to understanding this part of the localization process!
Stroopwaffel
 

Gohatwoono

Corporal
84 Badges
Apr 28, 2012
48
250
  • Victoria: Revolutions
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Jade Dragon
  • Age of Wonders III
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Majesty 2 Collection
  • Hearts of Iron III Collection
  • Crusader Kings II: Sons of Abraham
  • 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
  • Hearts of Iron III: Their Finest Hour
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • A Game of Dwarves
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
I'm currently experiencing an issue with my total conversion mod with a custom map, which is also my first mod ever, I know, bad idea. I've gotten the game to a point where I'm able to actually load it up and play it. The issue I'm having is that the game will CTD after about 200-250 years years. I can load up the save, but it always crashes pretty quickly. The earliest was about 3 months, and the longest was about 10 years. I experienced this issue when I just had 9 counties and no events or decisions at all, and I'm still having it with 40+ counties and with birth events added back in.

The crash seems to happen no matter the starting date. When running from 1066 the game starts to crash in the 1260s or 1270s. I changed the earliest start date to 500 and the crash occured in the 760s. Any idea what could be causing this crash?
 

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
Quick question, I just bumped into something I haven't noticed before while writing CK2 Events. From what I have been able to collect it seems like some people put their localization strings within quotation marks, and I can't seem to figure out why the hell they are doing it. Does anyone have a clue?

Code:
# Blackmail or not
letter_event = {
    id = 7255
    desc = "EVTDESC7255"
    picture = GFX_evt_whispers
   
    hide_from = yes
   
    is_triggered_only = yes
   
    option = {
        name = "EVTOPTA7255"
        ai_chance = {
            factor = 75
            modifier = {
                factor = 2
                NOT = { opinion = { who = FROM value = -25 } }
            }
        }
        FROM = { letter_event = { id = 7260 days = 1 tooltip = "EVTTOOLTIP7260" } }
    }
    option = {
        name = "EVTOPTB7255"
        ai_chance = {
            factor = 25
            modifier = {
                factor = 0
                NOT = { opinion = { who = FROM value = -50 } }
            }
        }
    }
}

Now the natural question would obviously be, why the hell would someone ask a question like this. Which also happens to be a question I'll quite happily answer!

For the last couple of days I've been working on a tool which converts the localization strings of an Event file and puts it in a .csv for you! So far it's working out pretty much as expected, but I'd like to ensure that it works with as many ways of creating localization as possible, and therefore knowing why some mod developers (and even Paradox employees mind you!) do this.

Looking forward to understanding this part of the localization process!
Stroopwaffel
It makes no difference, probably gets done by some as an old habit.
 

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
I can post all of the scripting, however there is a hefty amount and it could be a hassle to read through all of it.
Code:
#crown_parthava
    crown_parthava = {
        is_high_prio = yes
        desc = crown_parthava
      
        potential = {
            is_playable = yes
            culture = tocharian
            OR = {
                tier = KING
            }
            OR = {
                religion = zoroastrian
                religion = mazdaki
                religion = manichaean
            }
            OR = {
                has_landed_title = k_persia
            }
            e_parthava = { has_holder = no }
          
            NOT = { is_nomadic = yes }
            NOT = { is_tribal = yes }
        }
      
        allow = {
            war = no
            is_adult = yes
            culture = tocharian
            OR = {
                religion = zoroastrian
                religion = mazdaki
                religion = manichaean
            }
            NOT = { trait = incapable }
            prisoner = no
            prestige = 1500
            wealth = 1200
            NOT = { tier = EMPEROR }
            has_landed_title = k_persia
            NOT {
                OR {
                    primary_title = { title = e_persia }
                }
            }
            completely_controls = d_tabaristan
            completely_controls = d_khorasan
            completely_controls = d_hamadan
            realm_size = 100
        }
      
        effect = {
            set_character_flag = crown_parthava_flag         
            #set the capital to Gurgan if not already
            if = {
                limit = {
                    NOT = {
                        capital_scope = { province_id = 633 }
                    }
                }
                633 = { #Gurgan
                    ROOT = { capital = PREV }
                }
            }
          
            # set the new capital culture to tocharian, also religion
            capital_scope = {
                if = {
                    limit = {
                        NOT = { culture = ROOT }
                    }
                    culture = ROOT
                }
                if = {
                    limit = {
                        NOT = { religion = ROOT }
                    }
                    religion = ROOT
                }
            }
          
            prestige = 3000
          
            wealth = -1200
          
            character_event = { id = PH.0001 }
        }
      
        revoke_allowed = {
            always = no
        }
      
        ai_will_do = {
            factor = 1
        }
    }

As it stands, I think this is where the problem is, but I can post more if you need it.
As Rydelfox said, I fail to see the part here that gives out the title. Unless that part is in the event?
 

Fiery Phoenix

Private
52 Badges
Nov 29, 2014
16
0
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Pillars of Eternity
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • 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
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • 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
  • Victoria 2
Code:
option = {
        any_ruler = {
            if = {
                limit = {
                    OR = {
                        culture = croatian
                        culture = romanian
                        culture = serbian
                        culture = bulgarian
                        culture = hungarian
                    }
                }
                character_event = { id = myevent }
            }
        }
    }

Just need to know, why is scoping like this not working/allowed and how to work around it i.e. send this event to a ruler with one of those cultures.
 

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
Any_ruler already allows a limit, making the If unneccessary. Just put this:
Code:
option = {
    any_ruler = {
        limit = {
            OR = {
                culture = croatian
                culture = romanian
                culture = serbian
                culture = bulgarian
                culture = hungarian
            }
        }
        character_event = { id = myevent }
    }
}
 

joos

Colonel
44 Badges
Mar 22, 2010
1.046
327
  • Crusader Kings II
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Surviving Mars: First Colony Edition
  • Stellaris: Federations
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Rajas of India
  • 500k Club
  • Europa Universalis IV
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Cossacks
  • Cities: Skylines
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Jade Dragon
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
I want to prohibit nomads from creating duchy level titles. Is there an easier way to do this other than manually going through all the titles and adding in a potential = { is_nomadic = no }?
 

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
The opinions are located in common/opinions. The localization (which will, naturally, be in the localization folder) for the opinion's name will be the name of the opinion itself from the aforementioned files. The description will be <opinion_name>_desc
 

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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 IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2
As Rydelfox said, I fail to see the part here that gives out the title. Unless that part is in the event?
I don't see a part where you're actually giving the character the title. Is that in the event PH.0001? If so, is that event firing?
Hmmm,

Is there a specific line of code I could add in that would do just that? I am an amateur modder at best so what I can do, I do by mimicry until I learn it. I have looked through the other mod's files and haven't seen anything that would simply give the title to said character.
 

Teutonic King

Vine-Regent of Dorwinion
68 Badges
Dec 8, 2012
928
242
  • Crusader Kings II: Charlemagne
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • 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 IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2
Depending on your exact needs, either grant_title or usurp_title
You can find the details and syntax of the commands at https://ck2.paradoxwikis.com/Commands
Will that also grant the title to my character, even if it is an imperial title?

EDIT: By which I mean, if I add in this line of code to my event then my character will get the title if I take the decision?