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

Dhop84

Major
4 Badges
Dec 28, 2012
790
0
  • Crusader Kings II
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
In the gain_effect part of a minor title how would i put in there so that the effect of this minor title is that the spouse of the guy who gets the title also gets the female form of the title ?
 

AnaxXiphos

Colonel
21 Badges
Jun 25, 2013
961
68
  • Crusader Kings II: Charlemagne
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • 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
  • Teleglitch: Die More Edition
  • Victoria 2
  • War of the Roses
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Humble Paradox Bundle
  • Crusader Kings II: Horse Lords
  • Shadowrun Returns
  • Shadowrun: Hong Kong
  • Prison Architect
In the gain_effect part of a minor title how would i put in there so that the effect of this minor title is that the spouse of the guy who gets the title also gets the female form of the title ?

Completely untested, but:

Code:
gain_effect = {
	spouse = {
		give_minor_title = title_female_form_of_title
	}
}

Depending on other factors, you might want to add some logic to make sure the spouse is female, make sure the spouse doesn't already have the title, and so forth.
 

talias

Captain
54 Badges
Feb 7, 2011
389
19
  • Crusader Kings II
  • Europa Universalis IV
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Surviving Mars: Digital Deluxe Edition
  • Surviving Mars: First Colony Edition
  • Surviving Mars: First Colony Edition
  • Crusader Kings III: Royal Edition
In the gain_effect part of a minor title how would i put in there so that the effect of this minor title is that the spouse of the guy who gets the title also gets the female form of the title ?
Something like this:
Code:
	gain_effect = {
		if = {
			limit = {
				is_married = yes
				NOT = { spouse = { has_minor_title = XXX } }
			}
			spouse = { give_minor_title = XXX }
		}
	}
 

Dhop84

Major
4 Badges
Dec 28, 2012
790
0
  • Crusader Kings II
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
Completely untested, but:

Code:
gain_effect = {
	spouse = {
		give_minor_title = title_female_form_of_title
	}
}

Depending on other factors, you might want to add some logic to make sure the spouse is female, make sure the spouse doesn't already have the title, and so forth.[/QUOTE]
Thanks mate

Something like this:
Code:
	gain_effect = {
		if = {
			limit = {
				is_married = yes
				NOT = { spouse = { has_minor_title = XXX } }
			}
			spouse = { give_minor_title = XXX }
		}
	}
Thanks mate
 

Chris93

Captain
22 Badges
Jun 4, 2011
464
29
  • Crusader Kings II
  • Stellaris: Galaxy Edition
  • Semper Fi
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Stellaris
  • Victoria 3 Sign Up
  • Crusader Kings III
  • Prison Architect
  • Imperator: Rome
  • Age of Wonders III
  • Surviving Mars
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • 500k Club
  • Victoria 2
  • Hearts of Iron III
  • Europa Universalis IV
  • For the Motherland
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
Is it possible to mod a trait so that it gives a relations bonus only with certain religions/cultures? For example, can a trait give a bonus in relations only to, let's say, the catholic religion?
 

Blood Royal

General
37 Badges
Jun 1, 2007
2.199
543
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Horse Lords
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Crusader Kings III
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • War of the Roses
  • 500k Club
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
For a character event trigger, I want it to trigger when the ruler - or one of his vassals - has a certain kingdom title.

This doesn't seem to work:

Code:
trigger = {
	trait = evil_side
	has_landed_title = c_barad_dur
	NOT = { has_global_flag = sauronhasring30 }
	trait = ring
	k_anorien = {
	top_liege = ROOT 
	}
	NOT = {
	k_belfalas = {
	top_liege = ROOT 
	}
}
}

Nor does any_realm_title = k_anorien ... how does one put something like this in a trigger?

Has_landed_title is what I would usually use, but that only works if the player himself has it, and not one of his vassals, right?
 

Nivve

General
14 Badges
May 7, 2011
1.773
1
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Magicka
  • Naval War: Arctic Circle
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
For a character event trigger, I want it to trigger when the ruler - or one of his vassals - has a certain kingdom title.

This doesn't seem to work:

Code:
trigger = {
	trait = evil_side
	has_landed_title = c_barad_dur
	NOT = { has_global_flag = sauronhasring30 }
	trait = ring
	k_anorien = {
	top_liege = ROOT 
	}
	NOT = {
	k_belfalas = {
	top_liege = ROOT 
	}
}
}

Nor does any_realm_title = k_anorien ... how does one put something like this in a trigger?

Has_landed_title is what I would usually use, but that only works if the player himself has it, and not one of his vassals, right?

Doesn't 'any_vassal = { has_landed_title' work?
Or is it indeed only valid on a root for some reason?
 

Nivve

General
14 Badges
May 7, 2011
1.773
1
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Magicka
  • Naval War: Arctic Circle
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
1000 thanks, Nivve - with a few modifications, I got your event to work in our mod as well :)

Still wondering what was actually wrong with your event, but I am glad it worked :)
 

Jorlem

Field Marshal
118 Badges
May 9, 2012
4.562
4.049
  • Victoria 3 Sign Up
  • Crusader Kings III: Royal Edition
  • Imperator: Rome Deluxe Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • 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
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • The Showdown Effect
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Humble Paradox Bundle
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
What would be the easiest way of modding the DLCs, so I could listen to the Songs of Yuletide music pack all year round?
 

Nivve

General
14 Badges
May 7, 2011
1.773
1
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Magicka
  • Naval War: Arctic Circle
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
What would be the easiest way of modding the DLCs, so I could listen to the Songs of Yuletide music pack all year round?

You can edit the song text files of all the music dlc. These files contain the sections which restrict the music to certain environments. There is even a tutorial somewhere on the forum.

dlc003/4/6/9/17/19/23/25/35 are the music dlcs (open the zip file, alter the text file and zip them again.)
 

Blood Royal

General
37 Badges
Jun 1, 2007
2.199
543
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Horse Lords
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Crusader Kings III
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • War of the Roses
  • 500k Club
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
Thanks once again, Nivve! The "'any_vassal = { has_landed_title = xxx } " did the trick :)

Now just one last question, since we're very very close to actually finishing a working first version of mod, and I think this is the last complicated bit of scripting I need to do for a while.

Once the province has been conquered, and the people fled, I need to get rid of the nobles as well. I need Sauron to usurp the titles of all vassals of a certain religious group...

I've been trying now for hours, and this was my best shot, but it still doesn't usurp the titles:

Code:
	option = {
	name = "Kill them all!"
	any_realm_character = { 
	limit = {
		OR = {
		religion = religion_dunedain
		religion = religion_moriquendi
		religion = religion_calaquendi
		religion = religion_mahal
		religion = religion_rhovanion
		}
		NOT = { trait = evil_side }
		}
	character_event = { id = conflict.8 }
	any_realm_title = {
		usurp_title = ROOT
		}
	}
	}

They get the character event, but their titles don't get usurped.

I've also tried on the other end where the vassal receives the message, to put:

Code:
	option = {
		name = "Curses!"
		banish = yes
		any_realm_title = {
		usurp_title = FROM
		}
		}

But the character only gets banished, the title isn't usurped. Can anyone spot what's wrong here?
 

Jorlem

Field Marshal
118 Badges
May 9, 2012
4.562
4.049
  • Victoria 3 Sign Up
  • Crusader Kings III: Royal Edition
  • Imperator: Rome Deluxe Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • 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
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • The Showdown Effect
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Humble Paradox Bundle
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
You can edit the song text files of all the music dlc. These files contain the sections which restrict the music to certain environments. There is even a tutorial somewhere on the forum.

dlc003/4/6/9/17/19/23/25/35 are the music dlcs (open the zip file, alter the text file and zip them again.)
Thanks. However, I was thinking more along the lines of a togglable mod, which I'm not sure is possible, given that the files that need to be copied to the mod folder are in zips. Would I need to recreate the zips over in the mod folder's hierarchy?
 

Aardvark Bellay

Lord Wuffington of Grumpytown by the barks
21 Badges
Apr 5, 2001
15.447
2.862
  • 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
Thanks. However, I was thinking more along the lines of a togglable mod,...

Perfectly possible. I have several of my own music mods.

Would I need to recreate the zips over in the mod folder's hierarchy?

No, just treat them then as any other music file.


edit: so folder structure "Dis_is_my_music_mod_1" - music - music files (inlcuding the text file for the included songs in this folder)
 
Last edited: