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

jonjowett

Field Marshal
83 Badges
Aug 31, 2012
3.393
2.013
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Monks and Mystics
  • BATTLETECH
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Distant Stars
  • Europa Universalis IV: Golden Century
  • Surviving Mars
  • Shadowrun Returns
  • Cities: Skylines - Parklife
  • Tyranny - Bastards Wound
  • Cities: Skylines - Green Cities
  • Stellaris: Megacorp
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV
  • Europa Universalis IV: Dharma
  • Imperator: Rome Sign Up
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Rule Britannia
  • BATTLETECH - Digital Deluxe Edition
  • Shadowrun: Dragonfall
  • Victoria 2
  • 500k Club
  • Stellaris: Ancient Relics
  • Europa Universalis IV: El Dorado
  • Europa Universalis 4: Emperor
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Imperator: Rome Deluxe Edition
One line summary of your issue
[2.8.3.3] [SAHQ] Miscalculated score for sending physician to China

Game Version
[2.8.3.3] [SAHQ]

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.
In the attached screenshots, you can see the score calculation for the two physicians who are eligible to be sent to China. They are both slightly incorrect.

---

Mir Sayyid Ali:
- Has +25 for Patient, but does not have the Patient trait
- Does not have +25 for his Diligent trait
- Does not have +50 for Mastermind Theologian

20181001003202_1.jpg

---

Badda:
- Has +25 for Patient, but does not have the Patient trait
- Does not have +25 for Scholarly Theologian

20181001002930_1.jpg

---

My theory on looking at the relevant code is that something is going wrong with the scope for thescoring part of this event. Notice how all of the correctly-evaluated scores have a FROMFROM block, whereas the incorrectly-evaluated scores don't. Logically, I would expect all of the blocks relating to the physician should have the same structure, but they don't. So I'm pointing my finger at this as the probable cause!

Code:
        third_party_score = {
            factor = 100
        
            additive_modifier = {
                value = -50
                FROMFROM = {
                    show_scope_change = no
                    NOT = { learning = 8 }
                }
            }
        
            additive_modifier = {
                value = 40
                FROMFROM = {
                    show_scope_change = no
                    learning = 8                
                    hidden_trigger = {
                        NOT = { learning = 12 }
                    }
                }
            }
            additive_modifier = {
                value = 60
                FROMFROM = {
                    show_scope_change = no
                    learning = 12                
                    hidden_trigger = {
                        NOT = { learning = 16 }
                    }
                }
            }
            additive_modifier = {
                value = 100
                FROMFROM = {
                    show_scope_change = no
                    learning = 16            
                    hidden_trigger = {
                        NOT = { learning = 20 }
                    }
                }
            }
            additive_modifier = {
                value = 140
                FROMFROM = {
                    show_scope_change = no
                    learning = 20            
                    hidden_trigger = {
                        NOT = { learning = 24 }
                    }
                }
            }
            additive_modifier = {
                value = 180
                FROMFROM = {
                    show_scope_change = no
                    learning = 24            
                    hidden_trigger = {
                        NOT = { learning = 28 }
                    }
                }
            }
            additive_modifier = {
                value = 220
                FROMFROM = {
                    show_scope_change = no
                    learning = 28            
                    hidden_trigger = {
                        NOT = { learning = 32 }
                    }
                }
            }
            additive_modifier = {
                value = 260
                FROMFROM = {
                    show_scope_change = no
                    learning = 32
                }
            }
            additive_modifier = {
                value = 100
                FROMFROM = {
                    show_scope_change = no
                    trait = genius
                }
            }
            additive_modifier = {
                value = 50
                FROMFROM = {
                    show_scope_change = no
                    trait = quick
                }
            }
            additive_modifier = {
                value = 50
                FROMFROM = {
                    show_scope_change = no
                    trait = shrewd
                }
            }
            additive_modifier = {
                value = 150
                FROMFROM = {
                    show_scope_change = no
                    trait = physician
                }
            }
            additive_modifier = {
                value = 50
                FROMFROM = {
                    show_scope_change = no
                    trait = mystic
                }
            }
            additive_modifier = {
                value = 50
                FROMFROM = {
                    show_scope_change = no
                    trait = scholar
                }
            }
            additive_modifier = {
                value = 25
                trait = scholarly_theologian
            }
            additive_modifier = {
                value = 50
                trait = mastermind_theologian
            }
            additive_modifier = {
                value = 25
                trait = patient
            }
            additive_modifier = {
                value = 25
                trait = diligent
            }
            modifier = {
                factor = 1.5
                FROM = {
                    show_scope_change = no
                    liked_by_offmap = {
                        type = offmap_china
                    }
                }
            }
            modifier = {
                factor = 0.66
                FROM = {
                    show_scope_change = no
                    disliked_by_offmap = {
                        type = offmap_china
                    }
                }
            }
        }

I think that the blocks without FROMFROM are scoping to the protector general, as he is Patient but not Diligent. (My character has neither trait, and the offmap Chinese emperor doesn't have any traits.)

20181001003452_1.jpg 20181001003916_1.jpg

Steps to reproduce the issue.
Load the attached save and choose the option to send a physician to China. Notice that the score calculations are incorrect.

Upload Attachment
 

Attachments

  • Ironman_BedouinMR.ck2
    17,4 MB · Views: 0
Last edited:
Upvote 0