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

unmerged(189717)

East vs West developer
9 Badges
Jan 8, 2010
2.137
8
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Darkest Hour
  • Europa Universalis III Complete
  • Heir to the Throne
  • Iron Cross
  • Majesty 2
  • Victoria: Revolutions
  • 500k Club
According to this guide (maybe dated):

http://www.paradoxian.org/hoi2wiki/index.php/Modding_ai_files

the game should use my new AI files. I created two new nations using U02 and U03 tags and named the AI files:

u02_1936.ai
u03_1936.ai

Is this enough? Will those AI files be used in every scenario from 1936 to 1945? Or do I have to change some other files too?
BTW, the nations won't exist right ow, they have to be created.
 
Since the nations won't be in the game at initial start up I don't think so.
An easy way to tell would be to run a hands off game and see if the ai builds divisions and just places them in the capital.

I'd make an event with "type = ai which = u02_1936.ai" as a command and a trigger of "exists = U02"
 
Since the nations won't be in the game at initial start up I don't think so.
An easy way to tell would be to run a hands off game and see if the ai builds divisions and just places them in the capital.

I'd make an event with "type = ai which = u02_1936.ai" as a command and a trigger of "exists = U02"

Thank you. Is there no other way and is that he reason why *all* puppet-only nations (Scandinavia, Russia, Wallonia etc.) use the standard built AI (=spam INF and nothing else)?
 
Actually their release event could trigger that AI file. Thus modify the release event accordingly.
 
Actually their release event could trigger that AI file. Thus modify the release event accordingly.

I have a release evnt for only one of the two new countries. I think I'll just create an AI-only event that fire once exists=TAG is true.

Code:
################
# Switch U02 AI on
########################################
event = {
	id = 939113
	random = no
	country = U02

	trigger = {
		ai = yes
		exists = U02
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1946 }

	action_a = {
		command = { type = ai which = "u02_1936.ai" }

	}
}

The u02_1936.ai.txt is located in the "events" folder (not in any of the subfolders).
 
Last edited: