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

Sute]{h

Field Marshal
88 Badges
Jun 25, 2002
3.508
199
  • Europa Universalis IV: Pre-order
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome Collectors Edition
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Victoria 3 Sign Up
  • Europa Universalis IV: Art of War
  • 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
  • Deus Vult
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Majesty 2
Hi. I'm toying around with my exalted mod again, and for some reason these events doesn't trigger. The traits mentioned are all added to the mod, so the problem must be something else. I'm wondering if the father and mother switches isn't working properly for some reason.

I know the MTTH seems large compared to the fact, that they only have a year to happen, but note that modifiers of the first event practically eliminate the MTTH. Also while no one starts out with any of the flags random chars are generated with one of the five aspect traits, and the good pedigree event should therefor happen to their children. But it hasn't fired once in a test lasting about 15 years. And several chars with the aspect traits had children within that periode.

Also the name and desc text is simply placeholders, as far as I know missing localisation text for events doesn't prevent them for firing properly.

Code:
#Good pedigree
character_event = {

	id = 10010

	trigger = {
		age = 2
		NOT = { 
			age = 3
			character_culture = chayan 
			has_character_flag = good_pedigree 
			has_character_flag = impeccable_pedigree 
			has_character_flag = legendary_pedigree 
		}
		OR = {
			father = {
				OR = {
					traits = air_aspected
					traits = earth_aspected
					traits = fire_aspected
					traits = water_aspected
					traits = wood_aspected
					has_character_flag = impeccable_pedigree 
					has_character_flag = legendary_pedigree
				}
			}
			mother = {
				OR = {
					traits = air_aspected
					traits = earth_aspected
					traits = fire_aspected
					traits = water_aspected
					traits = wood_aspected
					has_character_flag = impeccable_pedigree 
					has_character_flag = legendary_pedigree
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 180

		modifier = {
			factor = 0.01
			father = {
				OR = {
					traits = air_aspected
					traits = earth_aspected
					traits = fire_aspected
					traits = water_aspected
					traits = wood_aspected
				}
			}
		}
		modifier = {
			factor = 0.01
			mother = {
				OR = {
					traits = air_aspected
					traits = earth_aspected
					traits = fire_aspected
					traits = water_aspected
					traits = wood_aspected
				}
			}
		}
		modifier = {
			factor = 0.9
			father = { has_character_flag = impeccable_pedigree }
		}
		modifier = {
			factor = 0.9
			mother = { has_character_flag = impeccable_pedigree }
		}
		modifier = {
			factor = 0.3
			father = { has_character_flag = legendary_pedigree }
		}
		modifier = {
			factor = 0.3
			mother = { has_character_flag = legendary_pedigree }
		}
	}

	title = "EVTNAME10000"
	desc = "EVTDESC10000"

	immediate = {
		set_character_flag = good_pedigree
	}

	option = {
	name = "EVTOPTA10000"
		prominence = 5
	}
}

#Impeccable pedigree
character_event = {

	id = 10011

	trigger = {
		age = 1
		NOT = { 
			age = 2 
			character_culture = chayan
			has_character_flag = good_pedigree 
			has_character_flag = impeccable_pedigree 
			has_character_flag = legendary_pedigree 
		}
		father = {
			OR = {
				traits = air_aspected
				traits = earth_aspected
				traits = fire_aspected
				traits = water_aspected
				traits = wood_aspected
			}
		}
		mother = {
			OR = {
				traits = air_aspected
				traits = earth_aspected
				traits = fire_aspected
				traits = water_aspected
				traits = wood_aspected
			}
		}
		OR = {
			father = {
				OR = { 
					has_character_flag = good_pedigree
					has_character_flag = impeccable_pedigree 
					has_character_flag = legendary_pedigree
				}
			}
			mother = {
				OR = { 
					has_character_flag = good_pedigree
					has_character_flag = impeccable_pedigree 
					has_character_flag = legendary_pedigree
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 20

		modifier = {
			factor = 0.9
			father = { has_character_flag = good_pedigree }
		}
		modifier = {
			factor = 0.9
			mother = { has_character_flag = good_pedigree }
		}
		modifier = {
			factor = 0.6
			father = { has_character_flag = impeccable_pedigree }
		}
		modifier = {
			factor = 0.6
			mother = { has_character_flag = impeccable_pedigree }
		}
		modifier = {
			factor = 0.3
			father = { has_character_flag = legendary_pedigree }
		}
		modifier = {
			factor = 0.3
			mother = { has_character_flag = legendary_pedigree }
		}
	}

	title = "EVTNAME10001"
	desc = "EVTDESC10001"

	immediate = {
		set_character_flag = impeccable_pedigree
	}

	option = {
	name = "EVTOPTA10001"
		prominence = 15
	}
}

#Legendary pedigree
character_event = {

	id = 10012

	trigger = {
		age = 0
		NOT = { 
			age = 1 
			character_culture = chayan
			has_character_flag = good_pedigree
			has_character_flag = impeccable_pedigree 
			has_character_flag = legendary_pedigree 
		}
		father = {
			OR = {
				traits = air_aspected
				traits = earth_aspected
				traits = fire_aspected
				traits = water_aspected
				traits = wood_aspected
			}
			OR = {
				traits = impeccable_pedigree
				traits = legendary_pedigree
			}
		}
		mother = {
			OR = {
				traits = air_aspected
				traits = earth_aspected
				traits = fire_aspected
				traits = water_aspected
				traits = wood_aspected
			}
			OR = {
				traits = impeccable_pedigree
				traits = legendary_pedigree
			}
		}
	}

	mean_time_to_happen = {
		months = 12

		modifier = {
			factor = 0.4
			father = { has_character_flag = legendary_pedigree }
		}
		modifier = {
			factor = 0.4
			mother = { has_character_flag = legendary_pedigree }
		}
	}

	title = "EVTNAME10002"
	desc = "EVTDESC10002"

	immediate = {
		set_character_flag = legendary_pedigree
	}

	option = {
	name = "EVTOPTA10002"
		prominence = 30
	}
}
 
Just a wild guess here... but isn't your MTTH of 180 months in the first event meaning that it can't fire at all, since the character at that point is only between 2 and 3 years old? I don't really know how MTTH works, so please enlighten me if I am totally of the mark.
 
Tjeck this guide if you want to know how MTTH works.
http://forum.paradoxplaza.com/forum/showthread.php?t=384455

A MTTH of 180 on an event that runs for 12 months would trigger in 4,52% of the cases. Granted that isn't much, but note the modifiers below. If even one of them are true, the MTTH becomes 1.8 month instead of 180. That should give a chance to happen of 99,02% meaning it should fire in pretty much every case where one of the parents has one of the aspect traits.
 
Thanks for the link to the guide, will certainly be useful.

Also, I ran a few tests with a light-weight event resembling yours, and with MTTH of days = 1 just so it would fire everytime.

It seems that when it fires from the person you want the event to happen for, nothing happens, at all. I made two separate events, one firing for the child's parent (who in this case must have the trait ambitious, this was only so I could narrow out wich country to play) and the other firing for the child.
When I let it run for a year, I checked through the save file, and the flag added for the parent's event was there for the child, but the other was not.

Code:
#Good Pedigree
character_event = {

	id = 10010

	trigger = {
		any_child = { age = 1
				  NOT = { age = 3
					    has_character_flag = good_pedigree }
					}
		traits = ambitious
		}
	
	mean_time_to_happen = { days = 1 }

	title = "???"
	desc = "???"
		immediate = {
			any_child = { 
				age = 1
				NOT = { age = 3
					  has_character_flag = good_pedigree }
		      set_character_flag = good_pedigree } }
		option = { name = "???"
			     any_child = {
					age = 1
				  	NOT = { age = 3
					has_character_flag = good_pedigree }
			     prominence = 5 } }
		}
}

#nice pedigree
character_event = {

	id = 10011

	trigger = {
		age = 1
		NOT = { age = 3
			  has_character_flag = nice_pedigree }
		father = { traits = ambitious }
			}
	
	mean_time_to_happen = { days = 1 }

	title = "???"
	desc = "???"
		immediate = { set_character_flag = nice_pedigree }
		option = { name = "???"
			     prominence = 5 }
		}
}

The first event worked but the second didn't: I believe that you have to assign the event to the child's parents rather than the child to make it happen. I also compared this to the trait-events that happen to children when they grow up, and they show the same thing: The event fires for the parent (however, this might be this way only so that the player can choose what to happen.).
 
Thanks for doing that test. I think I'll try to trigger it via the console. I think the issue might be related to the mother and father scopes. If these doesn't work it properly tests if the child has the traits rather than the parents. That would effectively prevent it from ever triggering.

A solution would be to have it trigger for the parents instead like you did, but that presents another line of problems for some of my related events. But if the father and mother scopes are disfunctional it would be nice to know.
 
I have now run a little test with the following event:

Code:
character_event = {

	id = 11111

	trigger = {
	}

	mean_time_to_happen = {
		months = 1
	}

	title = "TEST"
	desc = "TEST"

	immediate = {
		set_character_flag = good_pedigree
	}

	option = {
	name = "TEST"
		prominence = 5
	}
}

This works fine, but as soon as I add a father or mother switch to the trigger it stops working. Curiously enough when I trigger it from the console the text in the upper left corner says that the father or mother condition is furfilled. Yet it doesn't happen.

So in conclusion the father and mother switches seem to be bugged. So I guess I have to rework the events so that they trigger for the parent.
 
I don't think there are any mother or father scopes, there are none listed in Johan's modding manual expect for the usual ones, and tests haven't worked. Of course, it would be great if I am proved wrong :)
 
Sute]{h;9704980 said:
Just wanted to note that the "father" and "mother" switches doesn't work. I tried using them and it stops the event from triggering.

Read this thread for dokumentation:
http://forum.paradoxplaza.com/forum/showthread.php?t=407123

they should work fine, they are even used in vanilla EUR scripts, and were documented as modifications included in VV v2.1 patch (see patch'es readme file: "- Added event target scopes 'father' and 'mother'.").

have a look at internal_politics_monarchy.txt events:

Code:
# A Mother's Love
character_event = {

	id = 3400
	
	major_character = yes
	
	trigger = {
		country = { government = monarchy }
		is_female = yes
		NOT = { any_child = { is_primary_heir = yes } }
		any_child = { is_pretender = yes }
		wealth = 50
		prisoner = no
	}
	
	mean_time_to_happen = {
		months = 360
		modifier = {
			traits = ambitious
			factor = 0.5
		}
		modifier = {
			traits = deceitful
			factor = 0.5
		}
		modifier = {
			any_child = { 
				is_pretender = yes 
				OR = {
					traits = deceitful
					traits = ambitious
					has_objective = obj_become_ruler
				}
			}
			factor = 0.5
		}
		modifier = {
			traits = corrupt
			factor = 0.8
		}
		modifier = {
			traits = cold
			factor = 0.8
		}
		modifier = {
			traits = loving # children first!
			factor = 0.8
		}
		modifier = {
			NOT = { loyalty = 70 }
			factor = 0.9
		}
		modifier = {
			NOT = { loyalty = 60 }
			factor = 0.9
		}
		modifier = {
			NOT = { loyalty = 50 }
			factor = 0.9
		}
		modifier = {
			traits = content
			factor = 1.25
		}
		modifier = {
			traits = just
			factor = 1.25
		}
		modifier = {
			traits = righteous
			factor = 1.25
		}
		modifier = {
			traits = humble
			factor = 1.25
		}
		modifier = {
			traits = honest
			factor = 1.25
		}
	}

	title = "EVTNAME3400"
	desc = "EVTDESC3400"	

	option = {
		name = "EVTOPTA3400"
		wealth = -50
		random_list = {
			40 = {
				country = {
					current_heir = {
						mother = {
							add_rival = THIS
						}
						death = yes
					}
				}
			}
			20 = {
				country = {
					current_heir = {
						mother = {
							add_rival = THIS
						}
						add_trait = maimed
					}
				}
			}
			20 = {
				popularity = -50
				remove_spouse = yes
				prisoner = yes
				random_child = {
					limit = { is_pretender = yes }
					popularity = -50
					prisoner = yes
				}
			}
			20 = {
				popularity = -50
				remove_spouse = yes
				banish = yes
				random_child = {
					limit = { is_pretender = yes }
					popularity = -50
					banish = yes
				}
			}
		}
	}
}

also in the ruler.txt events file:

Code:
# A female friend of the ruler gives birth to a royal bastard
character_event = {
	id = 561
	
	major_character = yes
	
	is_triggered_only = yes 
	trigger = {
		always = yes
	}
		
	title = "EVTNAME561"
	desc = "EVTDESC561"

	option = {
		name = "EVTOPTA561"
		father = {
			popularity = -5
			spouse = {
				add_trait = suspicious
				loyalty = -20
			}
		}
		mother = {
			popularity = -20
			spouse = {
				add_trait = suspicious
				loyalty = -20
			}
		}
	}
	
	option = {
		name = "EVTOPTB561"
		
		family = father
		
		father = {
			popularity = -10
			spouse = {
				random_list = {
					50 = {
						loyalty = -20
						character_event = 562 # Blame the slut mother
					}
					50 = {
						loyalty = -50 # Blame the king
					}
				}
			}
		}
		mother = {
			family_prestige = 20
			popularity = -20
			spouse = {
				random_list = {
					40 = {
						character_event = 563 # Blame the king
					}
					40 = {
						remove_spouse = yes # Blame the wife
						loyalty = -20
					}
					20 = { # Forgive and forget
						loyalty = -10
					}
				}
			}
		}
	}
}
Code:
# The queen is pissed off
character_event = {
	id = 562
	
	major_character = yes
	
	is_triggered_only = yes 
	
	trigger = {
		always = yes
	}
		
	title = "EVTNAME562"
	desc = "EVTDESC562"

	option = {
		name = "EVTOPTA562"
		from = {
			mother = {
				remove_friend = THIS
				add_rival = THIS
			}
		}
	}
}

as a conclusion, it should work just fine, but you aren't using them as you should. have a look at PI's usage, and try to figure it out.

regards,
dan
 
It seems it is only usable in options and not in triggers then. Though I can't imagine why...
 
i don't think this would be the case. it would made them different than the other script commands, and I really doubt it.

it should either be an error in their implementation from PI (check to see if they are working in the PI vanilla events, maybe they aren't working in there too) = a bug, or due to an improper for of usage by you (try to do more tests, with simple events). i don't have time to play with them and see what's happening now, sorry :(