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

Talvos

First Lieutenant
69 Badges
Mar 23, 2009
231
79
  • Cities in Motion 2
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Cities in Motion
  • 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: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Stellaris: Leviathans Story Pack
  • Crusader Kings III
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Europa Universalis IV
  • Humble Paradox Bundle
  • Europa Universalis III Complete
  • Europa Universalis III Complete
One line summary of your issue
[3.3.0] Freckles inheritance script syntax issue (event HFP.30030)

Game Version
3.3

What expansions do you have installed?
All of the above

Do you have mods enabled?
No

Please explain your issue is in as much detail as possible.
I discovered this while bugfixing my own events based on the event HFP.30030 (triggered on_birth, does freckles inheritance).

The event checks scopes "mother_even_if_dead" and "real_father_even_if_dead" to determine parental freckles. The issue is that "real_father_even_if_dead" should be "true_father_even_if_dead". The scope "real_father_even_if_dead" only scopes to the real father in cases of misattributed parentage; "true_father_even_if_dead" scopes to either the father (if biological) or the real_father (if misattributed).

With how it works now, freckles can only be passed on through mothers, or by the father only through his hidden children at birth.

As another note (for the same event), that event also takes into account grandparents, but only the paternal grandfather and the maternal grandmother - not all four grandparents (ie. excludes the mother's father and the father's mother). Maybe those two other grandparents should be added in the calculations?

Steps to reproduce the issue.
See above; check file syntax.

Upload Attachment
 
Upvote 0
Side note: while implementing events for Improved Genetics' inheritance system into HIP, the developers encountered a lot of weird issues with the "true_father" and "true_father_even_if_dead" scopes, so I wouldn't necessarily trust them. Instead, you'd more likely have to do a more cumbersome "trigger_if" setup where you check "father_even_if_dead" if "is_father_real_father = yes", and otherwise you check "real_father_even_if_dead", and you do this at every single father check (so father, paternal grandfather, and maternal grandfather).