• 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
  • Heir to the Throne
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • Stellaris - Path to Destruction bundle
  • 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
  • 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
  • Cities in Motion
  • Europa Universalis III Complete
  • 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
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Sons of Abraham
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings III
  • Stellaris: Leviathans Story Pack
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Magicka 2
  • Humble Paradox Bundle
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • 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).