This is a small event that forces the AI to demobilize after about a month at peace. The reason I originally wrote this was to fix the issue with my liege lord keeping my troops forever, but it also has some other nice effects like speeding the game up a bit and making the AI countries not be constantly bankrupt.
To install, first add the following line to /db/events.txt
Then create a file called ai_demobilize.txt in /db/events and paste this into it
Alternate string text for modtext.csv, not really needed since its AI-only
And you're done!
To install, first add the following line to /db/events.txt
Code:
event = "db\events\ai_demobilize.txt"
Then create a file called ai_demobilize.txt in /db/events and paste this into it
Code:
# Makes AI demobilize during peace times
character_event = {
id = 9500
picture = "event_agriculture"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = not value = { type = atwar } }
condition = { type = not value = { type = culture value = mongol } }
condition = { type = not value = { type = any_demesne_province condition = { type = is_besieged } } }
condition = { type = or
condition = { type = any_demesne_province
condition = { type = regiment_mobilized }
}
condition = { type = any_vassal
condition = { type = any_demesne_province
condition = { type = regiment_mobilized }
}
}
}
}
mean_time_to_happen = {
days = 30
}
immidiate = {
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
effect = { type = remove_regiment }
}
}
Alternate string text for modtext.csv, not really needed since its AI-only
Code:
EVT_9500_NAME;We are not at war. Our armies return home.;;;;;;;;;;X
ACTIONNAME9500A;So be it.;;;;;;;;;;X
And you're done!
Last edited: