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

Elbadruhel

Sergeant
19 Badges
Apr 6, 2017
58
1
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Crusader Kings II: Sword of Islam
  • Majesty 2 Collection
  • Cities in Motion 2
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
I have a working event that turns someone into senator (by decision if some requisites are fulfilled). But i want this event to give extra traits if you previously had other trait. I checked in vanilla CK2 and they use "if" but it is not working on my event, any idea of what is wrong?

Code:
    option = {
        name = EVTOPTAromano.13
        trigger = {
            OR = {
                learning = 20
                diplomacy = 20
                intrigue = 20
                stewardship = 20
                martial = 20
            }
        }
        add_trait = senador
        piety = 75
        prestige = 150

        if = {
            limit = {
                trait = senador_tercera
            }
            trait = senador_patricio
            remove_trait = senador_tercera
        }
        if = {
            limit = {
                trait = senador_segunda
            }
            trait = senador_tercera
            remove_trait = senador_segunda
        }

        if = {
            limit = {
                trait = senador_primera
            }
            trait = senador_segunda
            remove_trait = senador_primera
        }
        if = {
            limit = {
                NOT = {
                    trait = senador_primera
                    trait = senador_segunda
                    trait = senador_tercera
                    trait = senador_patricio
                }
            }
            trait = senador_primera
        }
    }