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

0ffLin3

Private
1 Badges
Nov 17, 2019
12
1
  • Crusader Kings II: The Old Gods
I want when i click to --Start "Sunset Invasion"-- start this event. How can i do guys.?

Code:
decisions = {
    start_sunset_invasion = {
        only_playable = yes
  
        icon_religion = aztec
        ai_check_interval = 1

        hide_window = yes
      
        potential = {
            is_playable = yes
            religion = aztec
            has_dlc = "Sunset Invasion"
            NOT = {
                has_alternate_start_parameter = { key = religion_names value = random }
            }
        }
        allow = {
            has_landed_title = e_mexikha
            has_landed_title = d_aztec1
            any_realm_province = {
                OR = {
                    religion = aztec_reformed
                    religion = aztec
                }
            } 
            war = no
            age = 16
            prestige = 10000
            wealth = 10000
            piety = 1000
            is_feudal = yes
        }
        effect = { 
        }
        ai_will_do = {
            factor = 1
        }
    }
}

I need effect (and maybe ai_will_do) codes for this function.And am i must add some codes to events/sunset_invasion file?

I tried events/sunset_invasion's codes add to "effect". But not true working. I think i need trigger code. Please help me. Thx.

20191202233405_1.jpg
 
If you want start Vanilla SSI event chain via a decision,
Code:
...
effect = {
  random_province = {
    limit = {} # condition where they'll invade
    province_event = { id = SSI.1 }
  }
}