Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
This thread is meant to give you some information about what's being done by the Usermod Coordinator regarding the moddability for CK2, like bug fixes, new triggers & effects and new features.

This is not the place to report bugs or ask general modding questions - there are already threads for that.
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Update:

- check_variable trigger now take a value, scope or another variable as an argument.
- Added subtract_variable, multiply_variable and divide_variable effects
- All variable effects now take a scope or second variable as right-side argument
 
Last edited:

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Update:

- Added event target dynasty_head
- difficulty trigger can now take a text string as well as an integer number
- Added num_of_max_settlements trigger
- Added num_of_empty_holdings trigger
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Update:

- Added trigger borders_major_river
 

Meneth

Crusader Kings 3 Programmer
128 Badges
Feb 9, 2011
10.056
5.358
www.paradoxwikis.com
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Teleglitch: Die More Edition
  • Crusader Kings II: Conclave
  • Hearts of Iron IV Sign-up
  • Surviving Mars
  • Stellaris: Galaxy Edition
  • 500k Club
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Cradle of Civilization
  • Magicka: Wizard Wars Founder Wizard
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Field Marshal
  • Age of Wonders III
  • Europa Universalis III Complete
  • Crusader Kings II: The Old Gods
  • Hearts of Iron IV: Cadet
  • Steel Division: Normand 44 Sign-up
  • Crusader Kings Complete
  • Europa Universalis IV
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Prison Architect
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Stellaris Sign-up
  • Europa Universalis III Complete
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Magicka 2 - Signup Campaign
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Mare Nostrum
  • Knights of Honor
  • Deus Vult
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
Update:

- check_variable trigger now take a value, scope or another variable as an argument.
- Added subtract_variable, multiply_variable and divide_variable effects
- All variable effects now take a scope or second variable as right-side argument
Definitely my favorite change so far.
I'm really looking forward to finally being able to code proper compounding interest for PB.
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Update:

- Added set_graphical_culture effect
- Added is_variable_equal trigger (will check if a variable has the exact value, so not >=)
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Update:

- Added is_looting trigger
- Added is_looting_in trigger
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
OMG :eek:hmy::eek:hmy::eek:hmy:

Best thing ever. Go and release 2.1.5 right away!!

None of this is in the new patch. Will see if I can lift some of it for the next patch. Anything big I might do down the line though will probably only be included in the next expansion/DLC patch.
 

Zusk

Captain
83 Badges
Apr 29, 2011
443
83
  • Europa Universalis IV
  • 500k Club
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Nemesis
  • Divine Wind
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
Update:

- Added set_graphical_culture effect
- Added is_variable_equal trigger (will check if a variable has the exact value, so not >=)

If I can ask, what does the "set_graphical_culture" effect take as a argument?

Does it only take culture or can you do something like "set_graphical_culture = FROM"
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
If I can ask, what does the "set_graphical_culture" effect take as a argument?

Does it only take culture or can you do something like "set_graphical_culture = FROM"

You can use both a culture or a scope, and the scope can point to another character or a province.
 

Hotl3looded

Second Lieutenant
17 Badges
Jun 11, 2012
146
18
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • 500k Club
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • 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
Update:

- Added event target dynasty_head
- difficulty trigger can now take a text string as well as an integer number
- Added num_of_max_settlements trigger
- Added num_of_empty_holdings trigger

Does the num_of_empty_holdings trigger considers a holding slot in which a settlement is being built as empty?
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Does the num_of_empty_holdings trigger considers a holding slot in which a settlement is being build as empty?

No. Empty is completely empty.
 

Captain Gars

Lead AI Programmer
4 Badges
Oct 4, 2010
5.887
902
  • Crusader Kings II
  • Sengoku
  • 500k Club
  • Paradox Order
Update:

- Untangled and made cardinal election moddable
- Added moddable opinion for brother
- Added moddable opinion for half-brother
- Added moddable opinion for sister
- Added moddable opinion for half-sister
- Added moddable opinion for grandfather
- Added moddable opinion for grandmother
- Added moddable opinion for grandchild
- Added moddable opinion for uncle
- Added moddable opinion for aunt
- Added moddable opinion for nephew
- Added moddable opinion for niece

These opinions are by default set to zero, but setting them to any other value will apply them in the game.
 

fanoI

General
2 Badges
Aug 26, 2012
1.870
105
  • Crusader Kings II
  • Europa Universalis IV
Update:
- Untangled and made cardinal election moddable

How much is this moddable? I could use this succession law to elect a feudal / republican ruler too?
As said in the Suggestion thread I wanted to use it to emulate the Senate of the Roman Republic that should elect the Consul (and after the Emperor) not a priest.