• 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.
1) don't worry about that. Check if you have enough semicolons, but that's not much to worry about.
2) character flags do not actually give you any modifiers - they're simply tools to check if something had given them. For example: you have an event that has two options: give cash or get a character flag. You also have another event whose condition to fire is having that very same flag. The option does something (idk, gets ninja kittens to kill you) but it doesn't happen if you don't have the flag. You can then remove the flag if you don't want that event to pop up randomly or leave it so that the kittens keep coming back.
 
1) don't worry about that. Check if you have enough semicolons, but that's not much to worry about.
2) character flags do not actually give you any modifiers - they're simply tools to check if something had given them. For example: you have an event that has two options: give cash or get a character flag. You also have another event whose condition to fire is having that very same flag. The option does something (idk, gets ninja kittens to kill you) but it doesn't happen if you don't have the flag. You can then remove the flag if you don't want that event to pop up randomly or leave it so that the kittens keep coming back.

Ok, so I do event code blah blah blah set_character_flag = ninja_kittens, but then is there a special thing I need to do to localize that or can ninja_kitten never have appeared in any line of code before that and the game will be fine because all it cares about are events that say to add that flag and events that check if I have the flag?
 
I'd like to know more about the "logic gates" in CKII modding (y'know, we have NOT, OR and AND, at least) more specifically, I'd like to know if there's something to the effect of this: if trigger X is true, then trigger Y must be true (or not), otherwise, trigger Y is ignored. I need something to this effect because I've made an event that gives out a trait and I only want the trait to be available to women if the succession law isn't Agnatic.
 
I have a question, maybe someone can help me:

Code:
##########################################################
# Wanderungen, Veranstaltungen etc.
##########################################################

# Confirm decision and check religion

character_event = {
	id = 180000
	desc =*EVTDESC_180000
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_180000
		piety = 20
		set_character_flag = preparing_pilgrimage
		clr_character_flag = activated_pilgrimage
		hidden_tooltip = {
			if = {
				limit = {
					OR = {
						religion = atheisten
					}
				}
				character_event = { id = 180001 }
			}
			if = {
				limit = {
					OR = {
						religion = creationisten
					}
				}
				character_event = { id = 180002 }
			}
		}
	}
}

# Wohin soll die Reise gehen?
character_event = {
	id = 180001
	desc =*EVTDESC_180001
	picture = GFX_evt_icon
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_180001
		trigger = {
			NOT = { at_location = 448 }
		}
		set_character_flag = wissensreise_nach_salzburg
		hidden_tooltip = {
			character_event = { id = 180010 days = 15 }
		}
	}

	option = {
		name = EVTOPTB_180001
		trigger = {
			NOT = { at_location = 936 }
		}
		set_character_flag = wissensreise_nach_marl
		hidden_tooltip = {
			character_event = { id = 180011 days = 15 }
		}
	}
}

# Reise nach Salzburg
character_event = {
	id = 180010
	desc =*EVTDESC_180010
	picture = GFX_evt_pilgrims_epic_journey
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_180010
		clr_character_flag = preparing_pilgrimage
		hidden_tooltip = {
			add_trait = on_pilgrimage
			set_character_flag = good_pilgrimage
			narrative_event = { id = 180030 days = 30 }
		}
		hidden_tooltip = {
			if = {
				limit = {
					location = {
						distance = {
							where = 448	# Salzburg
							value = 400	# Longer journey
						}
					}
				}
				random_list = {
					10 = {  character_event = { id = SoA.5026 days = 5 random = 9 } } # List for 

longer journeys only
					10 = {  character_event = { id = SoA.5027 days = 5 random = 9 } }
					10 = {  narrative_event = { id = SoA.5028 days = 5 random = 9 } }
					10 = {  character_event = { id = SoA.5029 days = 5 random = 9 } }
					10 = {  character_event = { id = SoA.5030 days = 5 random = 9 } }
				}
			}
	
			random_list = {
				10 = {  character_event = { id = SoA.5031 days = 15 random = 7 } } # List that is 

always checked
				10 = {  character_event = { id = SoA.5032 days = 15 random = 7 } }
				10 = {  narrative_event = { id = SoA.5033 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5034 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5035 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5036 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5037 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5038 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5039 days = 15 random = 7 } }
			}
			if = {
				limit = {
						OR = {
							is_title_active = d_wissende_garde
						}
				}
				random_list = {
					10 = {  narrative_event = { id = 180020 days = 23 random = 4 } } # Holy 

orders events, close to destination
					10 = {  character_event = { id = 180021 days = 23 random = 4 } }
					10 = {  character_event = { id = 180022 days = 23 random = 4 } }
				}
			}
		}
	}
}

The first two events show up, the third one doesn't. Where is the problem?

When I trigger 180010 directly, some days later, the character gets an SoA Event (since I got the DLC, there is no problem). But then, there should triggert the rest of the chain from pilgrimage event chain from SoA.

This is the event that should follow the route-event from SoA:

Code:
# Ankunft in Salzburg
narrative_event = {
	id = 180030
	title = EVTNAME_180030
	desc =*EVTDESC_180030
	picture = GFX_evt_market_byzantine
	border = GFX_event_narrative_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_180030
		hidden_tooltip = { character_event = { id = SoA.5055 days = 5 } }
	}
}

Nothing...
 
I'd like to know more about the "logic gates" in CKII modding (y'know, we have NOT, OR and AND, at least) more specifically, I'd like to know if there's something to the effect of this: if trigger X is true, then trigger Y must be true (or not), otherwise, trigger Y is ignored. I need something to this effect because I've made an event that gives out a trait and I only want the trait to be available to women if the succession law isn't Agnatic.
You can mostly do that by using IF with a limit, inside an event's option.
Code:
IF = {
    limit = { is_female = yes }
    #stuff for women
}
IF = {
    limit = { is_female = no }
    #stuff for men
}
etc.
 
[B@W] Abominus;16533615 said:
I have a question, maybe someone can help me:

Code:
##########################################################
# Wanderungen, Veranstaltungen etc.
##########################################################

# Confirm decision and check religion

character_event = {
	id = 180000
	desc =*EVTDESC_180000
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_180000
		piety = 20
		set_character_flag = preparing_pilgrimage
		clr_character_flag = activated_pilgrimage
		hidden_tooltip = {
			if = {
				limit = {
					OR = {
						religion = atheisten
					}
				}
				character_event = { id = 180001 }
			}
			if = {
				limit = {
					OR = {
						religion = creationisten
					}
				}
				character_event = { id = 180002 }
			}
		}
	}
}

# Wohin soll die Reise gehen?
character_event = {
	id = 180001
	desc =*EVTDESC_180001
	picture = GFX_evt_icon
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_180001
		trigger = {
			NOT = { at_location = 448 }
		}
		set_character_flag = wissensreise_nach_salzburg
		hidden_tooltip = {
			character_event = { id = 180010 days = 15 }
		}
	}

	option = {
		name = EVTOPTB_180001
		trigger = {
			NOT = { at_location = 936 }
		}
		set_character_flag = wissensreise_nach_marl
		hidden_tooltip = {
			character_event = { id = 180011 days = 15 }
		}
	}
}

# Reise nach Salzburg
character_event = {
	id = 180010
	desc =*EVTDESC_180010
	picture = GFX_evt_pilgrims_epic_journey
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_180010
		clr_character_flag = preparing_pilgrimage
		hidden_tooltip = {
			add_trait = on_pilgrimage
			set_character_flag = good_pilgrimage
			narrative_event = { id = 180030 days = 30 }
		}
		hidden_tooltip = {
			if = {
				limit = {
					location = {
						distance = {
							where = 448	# Salzburg
							value = 400	# Longer journey
						}
					}
				}
				random_list = {
					10 = {  character_event = { id = SoA.5026 days = 5 random = 9 } } # List for 

longer journeys only
					10 = {  character_event = { id = SoA.5027 days = 5 random = 9 } }
					10 = {  narrative_event = { id = SoA.5028 days = 5 random = 9 } }
					10 = {  character_event = { id = SoA.5029 days = 5 random = 9 } }
					10 = {  character_event = { id = SoA.5030 days = 5 random = 9 } }
				}
			}
	
			random_list = {
				10 = {  character_event = { id = SoA.5031 days = 15 random = 7 } } # List that is 

always checked
				10 = {  character_event = { id = SoA.5032 days = 15 random = 7 } }
				10 = {  narrative_event = { id = SoA.5033 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5034 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5035 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5036 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5037 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5038 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5039 days = 15 random = 7 } }
			}
			if = {
				limit = {
						OR = {
							is_title_active = d_wissende_garde
						}
				}
				random_list = {
					10 = {  narrative_event = { id = 180020 days = 23 random = 4 } } # Holy 

orders events, close to destination
					10 = {  character_event = { id = 180021 days = 23 random = 4 } }
					10 = {  character_event = { id = 180022 days = 23 random = 4 } }
				}
			}
		}
	}
}

The first two events show up, the third one doesn't. Where is the problem?

When I trigger 180010 directly, some days later, the character gets an SoA Event (since I got the DLC, there is no problem). But then, there should triggert the rest of the chain from pilgrimage event chain from SoA.

This is the event that should follow the route-event from SoA:

Code:
# Ankunft in Salzburg
narrative_event = {
	id = 180030
	title = EVTNAME_180030
	desc =*EVTDESC_180030
	picture = GFX_evt_market_byzantine
	border = GFX_event_narrative_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_180030
		hidden_tooltip = { character_event = { id = SoA.5055 days = 5 } }
	}
}

Nothing...

Noone can help me? :(
 
[B@W] Abominus;16533615 said:
I have a question, maybe someone can help me:

Code:
##########################################################
# Wanderungen, Veranstaltungen etc.
##########################################################

# Confirm decision and check religion

character_event = {
	id = 180000
	desc =*EVTDESC_180000
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_180000
		piety = 20
		set_character_flag = preparing_pilgrimage
		clr_character_flag = activated_pilgrimage
		hidden_tooltip = {
			if = {
				limit = {
					OR = {
						religion = atheisten
					}
				}
				character_event = { id = 180001 }
			}
			if = {
				limit = {
					OR = {
						religion = creationisten
					}
				}
				character_event = { id = 180002 }
			}
		}
	}
}

# Wohin soll die Reise gehen?
character_event = {
	id = 180001
	desc =*EVTDESC_180001
	picture = GFX_evt_icon
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_180001
		trigger = {
			NOT = { at_location = 448 }
		}
		set_character_flag = wissensreise_nach_salzburg
		hidden_tooltip = {
			character_event = { id = 180010 days = 15 }
		}
	}

	option = {
		name = EVTOPTB_180001
		trigger = {
			NOT = { at_location = 936 }
		}
		set_character_flag = wissensreise_nach_marl
		hidden_tooltip = {
			character_event = { id = 180011 days = 15 }
		}
	}
}

# Reise nach Salzburg
character_event = {
	id = 180010
	desc =*EVTDESC_180010
	picture = GFX_evt_pilgrims_epic_journey
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_180010
		clr_character_flag = preparing_pilgrimage
		hidden_tooltip = {
			add_trait = on_pilgrimage
			set_character_flag = good_pilgrimage
			narrative_event = { id = 180030 days = 30 }
		}
		hidden_tooltip = {
			if = {
				limit = {
					location = {
						distance = {
							where = 448	# Salzburg
							value = 400	# Longer journey
						}
					}
				}
				random_list = {
					10 = {  character_event = { id = SoA.5026 days = 5 random = 9 } } # List for 

longer journeys only
					10 = {  character_event = { id = SoA.5027 days = 5 random = 9 } }
					10 = {  narrative_event = { id = SoA.5028 days = 5 random = 9 } }
					10 = {  character_event = { id = SoA.5029 days = 5 random = 9 } }
					10 = {  character_event = { id = SoA.5030 days = 5 random = 9 } }
				}
			}
	
			random_list = {
				10 = {  character_event = { id = SoA.5031 days = 15 random = 7 } } # List that is 

always checked
				10 = {  character_event = { id = SoA.5032 days = 15 random = 7 } }
				10 = {  narrative_event = { id = SoA.5033 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5034 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5035 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5036 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5037 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5038 days = 15 random = 7 } }
				10 = {  character_event = { id = SoA.5039 days = 15 random = 7 } }
			}
			if = {
				limit = {
						OR = {
							is_title_active = d_wissende_garde
						}
				}
				random_list = {
					10 = {  narrative_event = { id = 180020 days = 23 random = 4 } } # Holy 

orders events, close to destination
					10 = {  character_event = { id = 180021 days = 23 random = 4 } }
					10 = {  character_event = { id = 180022 days = 23 random = 4 } }
				}
			}
		}
	}
}

The first two events show up, the third one doesn't. Where is the problem?

When I trigger 180010 directly, some days later, the character gets an SoA Event (since I got the DLC, there is no problem). But then, there should triggert the rest of the chain from pilgrimage event chain from SoA.

This is the event that should follow the route-event from SoA:

Code:
# Ankunft in Salzburg
narrative_event = {
	id = 180030
	title = EVTNAME_180030
	desc =*EVTDESC_180030
	picture = GFX_evt_market_byzantine
	border = GFX_event_narrative_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_180030
		hidden_tooltip = { character_event = { id = SoA.5055 days = 5 } }
	}
}

Nothing...

I have no idea, where the problem is...
 
how would an event appear in the middle of the battle and give bonus to the attacker's attack or defense bonus to the defender?
EDIT: How to put the chances of appearing, type 80% or 33% chance of occurring?
 
Bad, bad necro - this thread was 5 years old!
Also, no need to post in so many different threads simultaneously - either post a new thread where you bundle all your questions, or ask periodically in the Quick Questions thread. It may take time until people answer, but you have to patient, as not everyone has enough knowledge to help you. If after several days you still have no answer, just bump it again.

But 5 year old threads... let them sleep. Rather start a new one, as moderators will only close this one down.