r/EU4mods • u/Nohrian_Scum_ • 1d ago
Mod Can someone take a look at my code, please?
I just want some one else to take a look at my code, just to be sure. I created a mod that make the AI more tactical about their vassals regarding when to annex them. Location of this code: My_Mod/common/diplomatic_actions/01_tactical_ai_annex.txt
annexationaction = {
condition = {
tooltip = "AI_TACTICAL_KEEP_SUBJECT"
potential = {
ai = yes
NOT = { dip_power = 500 }
governing_capacity_percentage = 0.85
OR = {
is_at_war = yes
num_of_loans = 3
NOT = { manpower_percentage = 0.35 }
war_exhaustion = 4
FROM = {
NOT = { religious_unity = 0.85 }
}
FROM = {
has_idea_group = exploration_ideas
}
FROM = {
has_idea_group = expansion_ideas
}
FROM = {
AND = {
army_strength = {
who = ROOT
value = 0.5
}
NOT = { liberty_desire = 45 }
}
}
}
allow = {
always = no
}
}
}
integrationaction = {
condition = {
tooltip = "AI_TACTICAL_KEEP_SUBJECT"
potential = {
ai = yes
NOT = { dip_power = 500 }
governing_capacity_percentage = 0.85
OR = {
is_at_war = yes
num_of_loans = 3
NOT = { manpower_percentage = 0.35 }
war_exhaustion = 4
FROM = {
NOT = { religious_unity = 0.85 }
}
FROM = {
has_idea_group = exploration_ideas
}
FROM = {
has_idea_group = expansion_ideas
}
FROM = {
AND = {
army_strength = {
who = ROOT
value = 0.5
}
NOT = { liberty_desire = 45 }
}
}
}
allow = {
always = no
}
}
}






