Code:
#Portuguese AI check#
event = {
id = 260089
trigger = {
ai = yes
NOT = { owned = { province = 434 data = -1 } }
}
random = no
country = POR
name = "Portuguese AI check"
desc = "Portuguese AI check"
style = 2
date = { year = 1419 }
offset = 30
deathdate = { day = 1 month = january year = 1820 }
action_a ={
name = "Portuguese AI check"
command = { type = trigger which = 260088 }
}
}
#AI help for a defeated Portugal#
event = {
id = 260088
trigger = {
ai = yes
}
random = no
province = 434
style = 1
name = "Vassalization in exchange for Oporto and Algarve"
desc = "Vassalization in exchange for Oporto and Algarve"
action_a = {
name = "Keep Portugal alive"
command = { type = secedeprovince which = POR value = 434 } #Oporto
command = { type = secedeprovince which = POR value = 442 } #Algarve
command = { type = vassal which = POR }
}
}