I want when i click to --Start "Sunset Invasion"-- start this event. How can i do guys.?
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.
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.
