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

Tyberius_D

Imperator
91 Badges
Sep 7, 2009
166
2
  • Hearts of Iron III: Their Finest Hour
  • March of the Eagles
  • Rome: Vae Victis
  • Cities: Skylines - Campus
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II: Conclave
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Supreme Ruler 2020
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Surviving Mars
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Divine Wind
Hello Everyone. I have been modding Paradox games for a long time but I went into a far greater level of AI adjustments than I have ever done but seem to have failed. What I intended to do was get the AI to at least be interested in taking states with pops they would accept, but for some reason it seems all my changes were for not. If I could get some help on this matter from someone far more expert than me I would be thankful.

Notes:
Computer seems to address the code and the game is indeed slower
AI seems not to care about the changes as it seems no more interested in taking states than it did prior.

Sample of code (full file attached below):

#Protestant German Nationalism - South Germans are Catholic Heritics
if = {
limit = {
country_has_primary_culture = cu:north_german
has_law = law_type:law_state_religion
scope:target_country = {
any_scope_state = {
state_region = {
OR = {
is_homeland = cu:north_german
culture_percent_state = {
target = cu:north_german
value >= 0.33
}
}
}
}
}
}
multiply = 5
if = {
has_law = law_type:law_ethnostate
multiply = 500
}
if = {
has_law = law_type:law_national_supremacy
multiply = 50
}
if = {
has_technology_researched = nationalism
multiply = 50
}
if = {
has_technology_researched = pan-nationalism
multiply = 500
}
}
#Catholic German Nationalism - North Germans are Protestant Heritics
if = {
limit = {
OR = {
country_has_primary_culture = cu:south_german
country_has_primary_culture = cu:alemannic
}
NOT = { has_law = law_type:law_ethnostate }
has_law = law_type:law_state_religion
scope:target_country = {
any_scope_state = {
state_region = {
OR = {
is_homeland = cu:south_german
is_homeland = cu:alemannic
culture_percent_state = {
target = cu:south_german
value >= 0.33
}
culture_percent_state = {
target = cu:alemannic
value >= 0.33
}
}
}
}
}
}
multiply = 5
if = {
has_law = law_type:law_national_supremacy
multiply = 50
}
if = {
has_technology_researched = nationalism
multiply = 50
}
if = {
has_technology_researched = pan-nationalism
multiply = 500
}
}
#Christian German Nationalism
if = {
limit = {
OR = {
country_has_primary_culture = cu:north_german
country_has_primary_culture = cu:south_german
country_has_primary_culture = cu:alemannic
}
OR = {
has_law = law_type:law_freedom_of_conscience
has_law = law_type:law_total_separation
}
scope:target_country = {
any_scope_state = {
state_region = {
OR = {
is_homeland = cu:north_german
is_homeland = cu:south_german
is_homeland = cu:alemannic
culture_percent_state = {
target = cu:north_german
value >= 0.33
}
culture_percent_state = {
target = cu:south_german
value >= 0.33
}
culture_percent_state = {
target = cu:alemannic
value >= 0.33
}
}
}
}
}
}
multiply = 5
if = {
has_law = law_type:law_national_supremacy
multiply = 50
}
if = {
has_technology_researched = nationalism
multiply = 50
}
if = {
has_technology_researched = pan-nationalism
multiply = 500
}
}
 

Attachments

  • 00_default_strategy.txt
    409,5 KB · Views: 0