Greetings!
I tried to add carriers (etc.) with cag but only the unit appears:
I even planed to do this for some other ships:
How does it work for them?
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?