• 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.
Yes for events, no for traits. Events can use if = { limit = { religion = x } effects } to do different things for different religions. With traits, you could make multiple versions with one set for each religion, but you can't put an if clause inside a modifier.

So you'd have to make the conditions on the traits depend on the culture or religion instead. Hmm.
 
Are there any restrictions on custom music tracks, aside from .ogg? (i.e. max bitrate, max filesize, max length etc)
 
Any neighbor province needs to be inside a province scope. So you need something like this:
Code:
any_demesne_province = {
					any_neighbor_province = {
						owner = {
							top_liege = { 
								character = FROM
							}
						}
					}
				}
			}

That worked perfectly, thanks! With some modification, I was also able to apply a relations modifier to adjacent rulers after the conclusion of the war. Starting to get the hang of this strange Paradoxian syntax.
 
AFAIK, not directly, but if you don't mind huge mumbojumbos (see below) it is doable.

Mumbojumbos like this? :D This is to try to find the character with best martial in court. Up 23 are all the same.


Code:
option = { # 
					name = "EVTOPTA250299" 
					trigger = { 
							any_courtier = { 
							is_female = no
							martial = 9
							prisoner = no
							capable_only = yes }
					}

					random_courtier = {
					limit = {
						is_female = no
						martial = 23
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}
				random_courtier = {
					limit = {
						is_female = no
						martial = 22
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 21
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 20
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 19
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 18
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 17
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 16
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 15
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 14
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 13
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 12
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 11
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 10
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				
					random_courtier = {
					limit = {
						is_female = no
						martial = 9
						prisoner = no
						capable_only = yes
						not = { PREV = { has_character_flag = alr_elected_champion } }
					}
						hidden_tooltip = { character_event = { id = 250290 } }
						PREV = { set_character_flag = alr_elected_champion }
					}				

					}
 
Has anyone had any luck using flags or variables inside a title scope? I'm looking for some way to distinguish between castles in a province other than by name or is_capital.
 
Has anyone had any luck using flags or variables inside a title scope? I'm looking for some way to distinguish between castles in a province other than by name or is_capital.

Distinguish how? If you want specific castle in specific province, baron titles should be enough.
 
Distinguish how? If you want specific castle in specific province, baron titles should be enough.

I want to make a series of mutually exclusive buildings. If you've built building A, you can't build building B, etc.

AFAICT, there's no way to do this in the building potential/triggers/prereqs. What I can do is use province flags/modifiers, but those affect all the castles in the province.

What I'm looking for, however, is a way to make it so that if there are 3 castles in a province, and castle 1 has building A and castles 2 and 3 have neither building, then castle 1 wouldn't be able to build building B, but castles 2 and 3 would be able to build either one. In other words, I want a general way of flagging a specific holding to say this title does/doesn't have this building.

I could make a whole series of modifiers using the defined holding names, but that would be way more work that I want to do.
 
I want to make a series of mutually exclusive buildings. If you've built building A, you can't build building B, etc.

AFAICT, there's no way to do this in the building potential/triggers/prereqs. What I can do is use province flags/modifiers, but those affect all the castles in the province.

What I'm looking for, however, is a way to make it so that if there are 3 castles in a province, and castle 1 has building A and castles 2 and 3 have neither building, then castle 1 wouldn't be able to build building B, but castles 2 and 3 would be able to build either one. In other words, I want a general way of flagging a specific holding to say this title does/doesn't have this building.

I could make a whole series of modifiers using the defined holding names, but that would be way more work that I want to do.

I dont think there is a way, ive been trying to achieve it for a long time and i dont think it would even work with holding specific modifiers.
 
I dont think there is a way, ive been trying to achieve it for a long time and i dont think it would even work with holding specific modifiers.
Yeah, I was hoping for some way to put a flag inside a title, but flags seem limited to characters and provinces.
 
Would this work:
Death is an event no?
So add the trait Vampire and make sure the events for death include a line that says not if vampire
Same for Dwarf or Elf, make it an inheritabe trait and in the death events make it great increase the MTTH
(Idea from Vasious on the 1.05 Wishlist thread)