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

Legeis

Sergeant
26 Badges
Aug 18, 2019
64
1
  • Crusader Kings II: Way of Life
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Cities: Skylines
  • Victoria 2
  • Hearts of Iron III
  • Europa Universalis IV
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Rajas of India
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Hi I'm new to modding ck2 I am working on my first mod and just slowly working through each of the basic categories, Basic text, traits, culture, religion, ect... making a small mods to learn the mechanics also for fun.

I am currently making a custom culture and was adding some modifiers to the culture to make it unique. I was wondering if it was possible to add an or operator of some sort the the "character_modifier" portion of the culture so I could do something like

character_modifier = { learning = 10 or martial = 5 }

so characters of that culture get either a boost to their learning or martial?

I see that the game dose support boonlengs for scripting in relation to event modding but I don't see it mentioned anywhere else.

Again I'm new to CK2 modding and I apologize if this is not the proper place to post.

Thank you in advance for your help!
 
You want to make two modifiers, one that gives learning +10 and one that gives martial +5, give them the same localizations, and assign them randomly using whatever method you want.
 
Modifier specifications use a rather limited subset of the scripting language. No room for conditionals, randomness, or anything. So you cannot do it within the character_modifier portion of a culture, as @faiuwle said.
What you need to do is make two event modifiers, explained here. Then have an event triggered by the on_birth on_action assign one or the other randomly to any character with your culture.
 
ah I see I haven't gotten to the point yet about learning event modding but its on my list. So far Iv'e done Traits, Culture, and am currently working on Religion. Events is definitely high on my list though, I'm trying to work through each area of CK2 modding creating a small mod to learn how modding works in ck2.

@faiuwle @Keizer Harm

Thank you 2 so much for your help!

Sincerely,
~Legeis