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

Jorlem

Field Marshal
118 Badges
May 9, 2012
4.564
4.056
  • Victoria 3 Sign Up
  • Crusader Kings III: Royal Edition
  • Imperator: Rome Deluxe Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • 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
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • The Showdown Effect
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Humble Paradox Bundle
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
In this save, I just received event 100070. I selected option B, the tooltip for which stated it would add the Zealous trait and remove the Cruel trait. As can be seen in the screenshot below, the Zealous trait was added, but the Cruel trait was not removed.



This is the code for the event in question:

Code:
### I can't stand someone! ###
character_event = {
    id = 100070
    desc = EVTDESC100070
    picture = GFX_evt_child_bully
   
    prisoner = no
    min_age = 11
    max_age = 16
   
    trigger = {
        NOT = {
            num_of_friends = 2
        }
        NOT = {
            num_of_rivals = 2
        }
        OR = {
            trait = cruel
            trait = wroth
            trait = envious
        }
        host = {
            any_courtier = {
                prisoner = no
                OR = {
                    AND = {
                        ROOT = {
                            is_female = yes
                        }
                        is_female = yes
                    }
                    AND = {
                        ROOT = {
                            is_female = no
                        }
                        is_female = no
                    }
                }
                age = 11
                NOT = {
                    age = 16
                }
                at_location = ROOT
                NOT = {
                    sibling = ROOT
                }
                NOT = {
                    num_of_friends = 2
                }
                NOT = {
                    num_of_rivals = 2
                }
                NOT = {
                    is_friend = ROOT
                }
                NOT = {
                    is_rival = ROOT
                }
            }
        }
    }
   
    mean_time_to_happen = {
        months = 80
       
        modifier = {
            factor = 2
            trait = honest
        }
        modifier = {
            factor = 0.5
            trait = deceitful
        }
        modifier = {
            factor = 0.5
            intrigue = 5
        }
        modifier = {
            factor = 2
            NOT = { intrigue = 5 }
        }
    }
   
    option = {
        name = EVTOPTA100070
        host = {
            random_courtier = {
                limit = {
                    prisoner = no
                    OR = {
                        AND = {
                            ROOT = {
                                is_female = yes
                            }
                            is_female = yes
                        }
                        AND = {
                            ROOT = {
                                is_female = no
                            }
                            is_female = no
                        }
                    }
                    age = 11
                    NOT = {
                        age = 16
                    }
                    at_location = ROOT
                    NOT = {
                        sibling = ROOT
                    }
                    NOT = {
                        num_of_friends = 2
                    }
                    NOT = {
                        num_of_rivals = 2
                    }
                    NOT = {
                        reverse_opinion = { who = ROOT value = -10 }
                    }
                    NOT = {
                        is_friend = ROOT
                    }
                    NOT = {
                        is_rival = ROOT
                    }
                }
                add_rival = ROOT
                character_event = {
                    id = 100071
                    days = 1
                    random = 3
                    tooltip = EVTTOOLTIP100071
                }
            }
        }
    }
   
    option = {
        name = EVTOPTB100070
        if = {
            limit = {
                NOT = {
                    num_of_traits = 5
                }
                NOT = {
                    trait = zealous
                }
            }
            add_trait = zealous
        }
        if = {
            limit = {
                NOT = {
                    num_of_traits = 5
                }
                trait = wroth
                NOT = {
                    trait = envious
                }
            }
            remove_trait = wroth
        }
        if = {
            limit = {
                NOT = {
                    num_of_traits = 5
                }
                trait = cruel
                NOT = {
                    trait = wroth
                }
            }
            remove_trait = cruel       
        }
        if = {
            limit = {
                NOT = {
                    num_of_traits = 5
                }
                trait = envious
                NOT = {
                    trait = cruel
                }
            }
            remove_trait = envious       
        }
    }
   
    option = {
        name = EVTOPTC100070
        host = {
            random_courtier = {
                limit = {
                    prisoner = no
                    OR = {
                        AND = {
                            ROOT = {
                                is_female = yes
                            }
                            is_female = yes
                        }
                        AND = {
                            ROOT = {
                                is_female = no
                            }
                            is_female = no
                        }
                    }
                    age = 11
                    NOT = {
                        age = 16
                    }
                    at_location = ROOT
                    NOT = {
                        sibling = ROOT
                    }
                    NOT = {
                        num_of_friends = 2
                    }
                    NOT = {
                        num_of_rivals = 2
                    }
                    NOT = {
                        is_friend = ROOT
                    }
                    NOT = {
                        is_rival = ROOT
                    }
                }
                character_event = {
                    id = 100072
                    days = 1
                    random = 3
                    tooltip = EVTTOOLTIP100072
                }
            }
        }
    }
}

The event can be found in friends_rivals_events.txt.

Here is the autosave from before the event triggered.


I believe this occurred because the part of the event that is supposed to remove the Cruel trait checks the number of traits the character has, and does not remove the trait if the character has five or more traits. As the addition of the Zealous trait brought my character up to five traits, it could not remove the Cruel trait as it was supposed to. This unneeded check is also present on the other removal effects in this event, and likely in other events as well. Why check to make sure that the character does not have too many traits when removing one?
 
Upvote 0

Leo Larsson

QA
35 Badges
Feb 23, 2015
249
70
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Rights of Man
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Prison Architect
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Warlock: Master of the Arcane
  • Teleglitch: Die More Edition
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Hi Jorlem!

Thank you for providing with savefiles and good information on how&where this issue is occurring.
This issue has now been added to our database.

Nice report!
 
  • 1
Reactions: