I'm sure most of you had that problem: You're playing e.g. Germany and your allies spam you with expeditionary forces you never wanted. Here's the solution I use to get rid of it:
Copy and paste the following line in a new file called "no_exps.ai" in folder /ai/switch/:
Then copy and paste the following text into an event file of your choice (obviously the file has to be used by the scenario you play), e.g. germany.txt in /db/events/:
Now you can (even in games already started) forbid country [TAG] to ever send you expeditionary forces again. Simply open the "cheat console" with F12 and enter
[TAG] is the so-called country tag, e.g. HUN für Hungary oder ROM for Romania. In case of success you'll see that event "No_Exps.ai" happened for country [TAG].
(Ctrl-F12 closes the console, by the way.
)
Event-ID and included countries (above version works when playing Germany or the US) are easy to change. Be careful not to put too many countries in it at the same time though: E.g. with ENG (the UK) in the AI file and using the event for Canada when playing as the US, they'll stop sending troops to the UK as well - which might not be desired. I don't see problems when using it playing Germany though.
(The country tag "USA" used in the event is arbitrary, the event only fires when called from the console anyway.)
It won't work under all circumstances, as sometimes the AI insists on putting troops in provinces controlled by you (usually overseas) and hands over their command to you, but it should work for most cases.
Copy and paste the following line in a new file called "no_exps.ai" in folder /ai/switch/:
Code:
no_exp_forces_to = { GER USA }
Code:
########################################
# Event to trigger the "don't send me expeditionary forces!" AI file
# by G'Kar
########################################
event = {
id = 345678
random = no
country = USA
persistent = yes
name = "No_Exps.ai"
style = 0
desc = " "
action_a = {
command = { type = ai which = switch/no_exps.ai }
}
}
"event 345678 [TAG]" (without the quotes)
[TAG] is the so-called country tag, e.g. HUN für Hungary oder ROM for Romania. In case of success you'll see that event "No_Exps.ai" happened for country [TAG].
(Ctrl-F12 closes the console, by the way.
Event-ID and included countries (above version works when playing Germany or the US) are easy to change. Be careful not to put too many countries in it at the same time though: E.g. with ENG (the UK) in the AI file and using the event for Canada when playing as the US, they'll stop sending troops to the UK as well - which might not be desired. I don't see problems when using it playing Germany though.
(The country tag "USA" used in the event is arbitrary, the event only fires when called from the console anyway.)
It won't work under all circumstances, as sometimes the AI insists on putting troops in provinces controlled by you (usually overseas) and hands over their command to you, but it should work for most cases.