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

Abominus

French Maid
88 Badges
Sep 18, 2003
995
41
www.abominus.de.vu
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis III Complete
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: No Step Back
  • Darkest Hour
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Arsenal of Democracy
  • Deus Vult
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron III Collection
  • Heir to the Throne
Greetings!

I tried to add carriers (etc.) with cag but only the unit appears:

PHP:
#########################################################################
#  Navaltech - Träger 1 / 9
#########################################################################
event = {
	id = 840187
	random = no
	invention = yes

	trigger = {
		ic = 80
		technology = 3320
		NOT = { technology = 3330 }
	}

	name = "EVT_840187_NAME"
	desc = "EVT_840050_DESC"
	picture = "American_carrier"
	style = 0


	action_a = {
		name = "EVT_840050_ACTA"
		command = { type = add_division value = carrier when = 0 where = cag }
	}
}

I even planed to do this for some other ships:

PHP:
#########################################################################
#  Navaltech - Leichte Kreuzer 7 / 7
#########################################################################
event = {
	id = 840163
	random = no
	invention = yes

	trigger = {
		technology = 12010
		manpower = 10
		supplies = 350
	}

	name = "EVT_840157_NAME"
	desc = "EVT_840050_DESC"
	picture = "American_ships_in_dock"
	style = 0


	action_a = {
		name = "EVT_840050_ACTA"
		command = { type = add_division value = light_cruiser when = 6 where = NAVAL_SA_L }
		command = { type = manpowerpool value = -2 }
		command = { type = supplies value = -100 }
	}
	action_b = {
		name = "EVT_840050_ACTB" # No, we don't need any
		command = { }
	}
	action_c = {
		name = "EVT_840050_ACTC"
		command = { type = add_division value = light_cruiser when = 6 where = NAVAL_SA_L }
		command = { type = add_division value = light_cruiser when = 6 where = NAVAL_SA_L }
		command = { type = add_division value = light_cruiser when = 6 where = NAVAL_SA_L }
		command = { type = manpowerpool value = -6 }
		command = { type = supplies value = -300 }
	}
}

How does it work for them?