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

BillyDeeWilliams

Private
75 Badges
May 13, 2015
18
8
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Victoria 2: A House Divided
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Way of Life
  • Stellaris
  • Surviving Mars
  • Shadowrun Returns
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Stellaris: Apocalypse
  • Surviving Mars: First Colony Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Expansion Pass
  • BATTLETECH
  • Cities: Skylines Industries
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV
  • Crusader Kings III
  • Cities: Skylines - Parklife
  • Cities: Skylines - Green Cities
  • Imperator: Rome
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis III Complete
  • Shadowrun: Dragonfall
  • Europa Universalis III Complete
  • Stellaris: Distant Stars
  • Stellaris: Federations
  • Victoria 2
  • Stellaris: Ancient Relics
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Art of War
  • Victoria 2: Heart of Darkness
I'd like to create some new melting pot cultures (Anglo-Dutch, Occitano-Catalan, Greek-Pecheneg/Khazar/Cuman for Crimea, Carthaginian as a version of Outremer for the Maghreb, etc.) but I'm having a hard time parsing the language of the existing events to make my mods do what I want. The first culture that I want to create is Trinacrian, which would be Catalan melting in with the various cultures in Sicily, because I find absurd that the de Barcelona kings of Trinacria immediately turn Italian, even though that's exactly what they did in real life. I want to create an event that can only fire in counties where the liege is in the Iberian group, so I don't get overlap with the original Sicilian melting pot, but I also want the Trinacrian melting pot to be able to come out of pretty much any culture you're likely to find in Sicily, including italian, greek, berber, sicilian, siculo-greek, and siculo-arabic. Since Sicilian itself is pretty complex, and is supposed to be able to come out of greek, norman, and berber leaders, I think it's better to use Anglo-Norse as the template. So, for example:

# The Anglo-Norse Melting Pot
character_event = {
id = Plus.635
desc = EVTDESC_Plus_670
picture = GFX_evt_throne_room

only_rulers = yes
min_age = 16
capable_only = yes
prisoner = no

trigger = {
year = 900
OR = {
culture = saxon <---------------------- These terms seem to indicate to me that the melting pot can fire even
culture = norse <--------------------- if the liege is Saxon, which doesn't make sense to me.
}
capital_scope = { region = custom_england }
OR = {
independent = yes
top_liege = { culture = english_norse } <------This term indicates to me that the melting pot can fire if the liege is already anglo-norse, which seems impossible since this is the event that triggers the melting pot. Also, "top liege" would seem to mean "independent liege," but that doesn't match up with my experience, wherein, for example, the Norman Dukes of Antioch almost immediately melt into Latin, even when (as often happens), they get conquered by the Byzantines
}
any_demesne_province = {
num_of_settlements = 1
region = custom_england
NOT = { culture = ROOT }
OR = {
culture = saxon <------------------------- Again, these terms seem to indicate that the melting pot can fire
culture = norse <------------------------- Saxon-on-Saxon, which it obviously can't. What am I missing?
}
}
NOT = { has_character_flag = no_melting_pot }
}

mean_time_to_happen = {
months = 500
modifier = {
factor = 0.25
independent = no
}
modifier = {
factor = 0.5
year = 1000
}
modifier = {
factor = 0.5
year = 1100
}
modifier = {
factor = 0.5
year = 1200
}
modifier = {
factor = 1.05
NOT = { learning = 1 }
}
modifier = {
factor = 1.05
NOT = { learning = 2 }
}
modifier = {
factor = 1.05
NOT = { learning = 3 }
}
modifier = {
factor = 1.05
NOT = { learning = 4 }
}
modifier = {
factor = 1.05
NOT = { learning = 5 }
}
modifier = {
factor = 1.05
NOT = { learning = 6 }
}
modifier = {
factor = 1.05
NOT = { learning = 7 }
}
modifier = {
factor = 1.05
NOT = { learning = 8 }
}
modifier = {
factor = 1.05
NOT = { learning = 9 }
}
modifier = {
factor = 0.95
learning = 11
}
modifier = {
factor = 0.95
learning = 12
}
modifier = {
factor = 0.95
learning = 13
}
modifier = {
factor = 0.95
learning = 14
}
modifier = {
factor = 0.95
learning = 15
}
modifier = {
factor = 0.95
learning = 16
}
modifier = {
factor = 0.95
learning = 17
}
modifier = {
factor = 0.95
learning = 18
}
modifier = {
factor = 0.95
learning = 19
}
modifier = {
factor = 0.95
learning = 20
}
modifier = {
factor = 0.95
learning = 21
}
modifier = {
factor = 0.95
learning = 22
}
modifier = {
factor = 0.95
learning = 23
}
modifier = {
factor = 0.95
learning = 24
}
modifier = {
factor = 0.95
learning = 25
}
}

immediate = {
if = {
limit = {
capital_scope = {
num_of_settlements = 1
region = custom_england
NOT = { culture = ROOT }
OR = {
culture = saxon
culture = norse
}
}
}
capital_scope = { save_event_target_as = melting_pot_province }
break = yes
}
random_demesne_province = {
limit = {
num_of_settlements = 1
region = custom_england
NOT = { culture = ROOT }
OR = {
culture = saxon
culture = norse
}
}
save_event_target_as = melting_pot_province
}
}

I don't know what any of the 'immediate' terms mean. Can melting pots happen instantly? I guess it might explain why those Hautevilles in Antioch turn Latin so fast.

Side note regarding mechanics: due to Catalan interest in Sardinia and Corsica, I edited custom_sicily to include d_sardinia.

Also, side note regarding Anglo-Norse in particular, and of this I'm positive, the fact that Anglo-Norse can't melt from the successor Scand cultures seems wrong. It's quite plausible for Danes or Norwegians to conquer England instead of William, and having them sit for centuries on a jigsaw of Danish and Saxon provinces honestly horrifies my inner history nerd.

Appreciate any help with this.
 
I suggest posting this in Modding questions thread here: https://forum.paradoxplaza.com/forum/index.php?threads/modding-quick-questions.589686/
Also, you can use code wrapping in your posts.

If modding was easy everyone would have their own personal mods, and there would be no "big" mods. But for the sake of education here's an explanation of immediate.

Code:
immediate = {
    if = {
        limit = {
            capital_scope = {
                num_of_settlements = 1
                #Character ROOT has capital in England
                region = custom_england
                #Capital has different culture than Character ROOT
                NOT = { culture = ROOT }
                #Capital is either anglo-saxon or norse
                OR = {
                    culture = saxon
                    culture = norse
                }
            }
        }
        #If conditions in limit are true, save that capital into melting_pot_province variable.
        capital_scope = { save_event_target_as = melting_pot_province }
        #This exits immediate.
        break = yes
    }
    #If stuff above is NOT true then check all provinces
    random_demesne_province = {
        limit = {
            #Character has a province england
            num_of_settlements = 1
            region = custom_england
            #That province is not of Character culture
            NOT = { culture = ROOT }
            #That province is norman or anglo-saxon
            OR = {
                culture = saxon
                culture = norse
            }
        }
        #Save the province that meets conditions from limit to melting_pot_province
        save_event_target_as = melting_pot_province
    }
}
 
NOT = { culture = ROOT }
OR = {
culture = saxon <------------------------- Again, these terms seem to indicate that the melting pot can fire
culture = norse <------------------------- Saxon-on-Saxon, which it obviously can't. What am I missing?
}
}

Here your missing the line above - NOT = { culture = ROOT } this means that the capital province (which is the current scope) can't have the same culture as the ruler who the event fires for (i.e. ROOT). If you were converting a province you could use the same line of code but would put it inside owner scope instead and ROOT would refer to the province.
 
Yes, that would be equivalent to:
Code:
OR = {
    AND = {
        NOT = { culture = ROOT }
        culture = norse
    }
    AND = {
        NOT = { culture = ROOT }
        culture = saxon
    }
}

EDITED.