the specifics:
claiming the throne of Aragon
Code:
claim_the_crown_of_aragon = {
potential = {
tag = CAS
NOT = { exists = SPA }
marriage_with = ARA
ARA = {
is_subject = no
not = { vassal_of = CAS }
is_lesser_in_union = no
}
}
allow = {
officials = 4 #FB
is_subject = no
war = no
prestige = 0.25
relation = { who = ARA value = 100 }
NOT = { iberian_peninsula = { owner = { religion_group = muslim } } }
}
effect = {
officials = -4 #
prestige = 0.10
vassalize = ARA
set_country_flag = overlord_of_ara
}
ai_will_do = {
factor = 1
}
ai_importance = 400
}
annexing Aragon
Code:
annex_aragon = {
potential = {
tag = CAS
NOT = { exists = SPA }
exists = ARA
marriage_with = ARA
overlord_of = ARA
has_country_flag = overlord_of_ara
had_country_flag = { flag = overlord_of_ara days = 3500 }
#year = 1450
}
allow = {
officials = 4 #FB
is_subject = no
war = no
prestige = 0.25
relation = { who = ARA value = 100 }
NOT = { iberian_peninsula = { owner = { religion_group = muslim } } }
}
effect = {
officials = -4 #
prestige = 0.10
inherit = ARA
clr_country_flag = overlord_of_ara
}
ai_will_do = {
factor = 1
}
ai_importance = 400
}
forming spain
Code:
spanish_nation = {
potential = {
OR = {
tag = CAS
tag = ARA
}
#OR = {
#culture_group = iberian
#primary_culture = basque
#}
owns = 217 # Madrid
owns = 213 # Barcelona
#check_variable = { which = "claim_on_spain" value = 25 }
}
allow = {
officials = 4 #FB
is_subject = no
war = no
NOT = { iberian_peninsula = { owner = { religion_group = muslim } } }
owns = 217 # Madrid
owns = 213 # Barcelona
#check_variable = { which = "claim_on_spain" value = 35 }
OR = {
AND = { tag = ARA CAS = { exists = no } }
AND = { tag = CAS ARA = { exists = no } }
AND = { ARA = { exists = no } CAS = { exists = no } }
} #FB
}
effect = {
officials = -4 #FB
random_owned = {
limit = { culture_group = iberian }
base_tax = 1
}
colonists = 1
prestige = 0.05
change_tag = SPA
iberian_peninsula = { add_core = THIS }
}
ai_will_do = {
factor = 1
}
ai_importance = 400
}
friendship with Aragon
Code:
friendship_with_Aragon = {
type = country
allow = {
tag = CAS
NOT = { last_mission = friendship_with_Aragon }
NOT = { relation = { who = ARA value = 100 } }
is_lesser_in_union = no
is_subject = no
num_of_cities = 3
exists = ARA
ARA = {
#is_lesser_in_union = no
#is_subject = no
religion = THIS
NOT = { war_with = THIS }
num_of_cities = 3
}
}
abort = {
OR = {
is_lesser_in_union = yes
is_subject = yes
NOT = { exists = ARA }
POR = {
OR = {
#is_lesser_in_union = yes
#is_subject = yes
NOT = { religion = THIS }
war_with = THIS
}
}
}
}
success = {
relation = { who = ARA value = 180 }
}
chance = {
factor = 1000
modifier = {
factor = 1.5
NOT = { relation = { who = ARA value = -100 } }
}
modifier = {
factor = 1.5
DIP = 6
}
modifier = {
factor = 1.5
DIP = 8
}
}
effect = {
diplomats = 2
prestige = 0.05
}
}
royal marriage with Aragon
Code:
royal_marriage_with_Aragon = {
type = country
allow = {
tag = CAS
NOT = { last_mission = royal_marriage_with_Aragon }
is_lesser_in_union = no
is_subject = no
government = monarchy
num_of_cities = 3
exists = ARA
ARA = {
is_lesser_in_union = no
is_subject = no
government = monarchy
religion = THIS
NOT = { war_with = THIS }
NOT = { marriage_with = THIS }
#NOT = { num_of_royal_marriages = 4 }
num_of_cities = 3
}
}
abort = {
OR = {
is_lesser_in_union = yes
is_subject = yes
NOT = { government = monarchy }
NOT = { exists = ARA }
MOD = {
OR = {
is_lesser_in_union = yes
is_subject = yes
NOT = { government = monarchy }
NOT = { religion = THIS }
war_with = THIS
}
}
}
}
success = {
marriage_with = ARA
relation = { who = ARA value = 100 }
}
chance = {
factor = 1000
modifier = {
factor = 1.4
NOT = { relation = { who = ARA value = 0 } }
}
modifier = {
factor = 1.4
NOT = { relation = { who = ARA value = -100 } }
}
modifier = {
factor = 1.4
DIP = 6
}
modifier = {
factor = 1.4
DIP = 8
}
}
effect = {
diplomats = 2
prestige = 0.05
}
}
friendship with Portugal
Code:
friendship_with_Portugal = {
type = country
allow = {
OR = {
tag = CAS
tag = SPA
}
NOT = { last_mission = friendship_with_Portugal }
NOT = { relation = { who = POR value = 100 } }
is_lesser_in_union = no
is_subject = no
num_of_cities = 3
exists = POR
POR = {
is_lesser_in_union = no
is_subject = no
religion = THIS
NOT = { war_with = THIS }
num_of_cities = 3
}
}
abort = {
OR = {
is_lesser_in_union = yes
is_subject = yes
NOT = { exists = POR }
POR = {
OR = {
is_lesser_in_union = yes
is_subject = yes
NOT = { religion = THIS }
war_with = THIS
}
}
}
}
success = {
relation = { who = POR value = 180 }
}
chance = {
factor = 1000
modifier = {
factor = 1.5
NOT = { relation = { who = POR value = -100 } }
}
modifier = {
factor = 1.5
DIP = 6
}
modifier = {
factor = 1.5
DIP = 8
}
}
effect = {
diplomats = 2
prestige = 0.05
}
}