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

jordarkelf

01_TITLE_STRING
164 Badges
Jul 13, 2005
8.040
648
erbkaiser.nl
  • Impire
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Galactic Assault
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Iron Cross
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Lead and Gold
  • Legio
  • Leviathan: Warships
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Victoria 3 Sign Up
  • Crusader Kings II: Sons of Abraham
  • Ancient Space
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • Dungeonland
  • East India Company
  • East India Company Collection
  • Europa Universalis III
I'm sure most of us here have had the event "You have become infatuated to a girl in the same court" fire for a brother and sister before... ick.

I think I've finally figured out a fix for it, but I need some more people to test it.

Please change event 8201 in 'romance_events.txt' to the following:
Code:
character_event = { # You have become infatuated to a girl in the same court
	id = 8201

	picture = "event_romance"

	trigger = {
		condition = { type = gender value = male }
		condition = { type = age value = 12 }
		condition = { type = not value = { type = age value = 20 } }
		condition = { type = not value = { type = is_married } }
		condition = { type = not value = { type = ruler } }
		condition = { type = not value = { type = num_friends value = 3 } }
		condition = { type = not value = { type = trait value = celibate } }
		condition = { type = not value = { type = trait value = pneumonia } }
		condition = { type = not value = { type = trait value = blind } }
		condition = { type = not value = { type = trait value = leper } }
		condition = { type = not value = { type = trait value = plagueinfested } }
		condition = { type = not value = { type = trait value = depression } }
		condition = { type = not value = { type = trait value = schizofrenia } }
		condition = { type = not value = { type = trait value = maniac } }
		condition = { type = not value = { type = trait value = stress_symptom } }
		condition = { type = not value = { type = any_friend condition = { type = gender value = female } } }
		condition = { type = any_courtier
			condition = { type = gender value = female }
			condition = { type = age value = 12 }
			condition = { type = not value = { type = age value = 20 } }
			condition = { type = not value = { type = num_friends value = 3 } }
			condition = { type = not value = { type = is_friend } }
			condition = { type = not value = { type = is_rival } }
			condition = { type = not value = { type = is_married } }
			#condition = { type = not value = { type = is_sibling } } # Ick!
			condition = { type = not value = { type = trait value = celibate } }
			condition = { type = not value = { type = trait value = pneumonia } }
			condition = { type = not value = { type = trait value = blind } }
			condition = { type = not value = { type = trait value = leper } }
			condition = { type = not value = { type = trait value = plagueinfested } }
			condition = { type = not value = { type = trait value = depression } }
			condition = { type = not value = { type = trait value = schizofrenia } }
			condition = { type = not value = { type = trait value = maniac } }
			condition = { type = or
				condition = { type = not value = { type = num_friends value = 1 } }
				condition = { type = not value = { type = any_friend condition = { type = gender value = male } } }
			}
			condition = { type = save_target }
		}
		condition =  { type = not value = { type = father
			condition = { type = any_child
				condition = { type = and
					condition = { type = gender value = female }
					condition = { type = not value = { type = trait value = bastard } }
					condition = { type = is_alive }
					condition = { type = is_target }
				}
			}
		} }
		condition = { type = has_target }
	}

	mean_time_to_happen = {
		months = 100

		modifier = {
			condition = { type = trait value = romantic }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = reckless }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = proud }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = amiable }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = gregarious }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = lustful }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = chaste }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = shy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = hostile }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = modest }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = coward }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = pragmatic }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = illness }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = intestinal_worm }
			factor = 1.25
		}
	}

	action_a = { # I can feel the love overtake me!
		ai_chance = 50
		effect = { type = random chance = 75
			effect = { type = make_friend value = load_target }
		}
	}
	action_b = { # It will be fun for a while
		ai_chance = 25
		effect = { type = random chance = 25
			effect = { type = make_friend value = load_target }
		}
	}
	action_c = { # She's not that pretty really
		ai_chance = 25
		effect = { type = random chance = 20
			effect = { type = add_trait value = stress_symptom }
		}
	}
}

The new code is:
Code:
		condition =  { type = not value = { type = father
			condition = { type = any_child
				condition = { type = and
					condition = { type = gender value = female }
					condition = { type = not value = { type = trait value = bastard } }
					condition = { type = is_alive }
					condition = { type = is_target }
				}
			}
		} }

As can be seen, the new code just checks if the previously set target (female courtier in the same court) is not also a daughter of the same father, unless she's a bastard.
Paradox never uses the is_target code in its events but this actually seems to work!

Play a while with this version of the event and let me know if you still see it fire -- and if it does, if it works as wanted now. You should still see non-brothers and sisters fall in love, but no more incestuous relations occur.
 
I've installed it but I haven't gotten around to playing lately. I'll try it tonight, just for you :p

Edit: I've kept from sending out fosterlings and there have been no incestuous relationships yet. I haven't really had any unrelated children in the court to see if this works, though. I'll check back later.
 
Last edited:
If u make it into a file so i can dl it then i can test it ( I know im lazy)
 
@IamWhoa: thanks, that confirms what I've seen so far. I think it works right, as when I test-fire it it works as expected. Triggers do not match for siblings, but do for strangers. I just haven't had the event fire by itself yet :(

@Davisx3m: You must overwrite the event in romance_events.txt with this version. Providing a file would mean I'd have to upload the entire file here, and you already have it.
I think it works, so it'll go in the next DVIP. If you don't want to change it yourself, be patient ;)
 
An alternate way to fix such event could be the following:

condition = { type = not value = { type = father condition = { type = any_child condition = { type = is_receiver } } } }

Put this line inside any_courtier loop just before save_target check:

condition = { type = any_courtier
.....
condition = { type = not value = { type = father condition = { type = any_child condition = { type = is_receiver } } } }
condition = { type = save_target }
}

This way you check brotherhood directly into the loop, searching for further suitable girls instead of exit the loop and then abort the selected char

It needs a test.
 
Thanks IAW, that's all the confirmation I needed.

I've modified the version I actually use with ambrox62' suggestion, which potentially makes it fire more often for valid (non-relative) targets, so hopefully you will be able to see it in DVIP games -- but not for siblings :)