Please see the event below which was written to give the Superheavy Carrier Shinano to the Imperial Japanese Navy on the appropriate date. See the bolded part of the command where a CAG is attached to the carrier. When the ship is in the force pool, the CAG is attached. However, when the ship is deployed to a port, the CAG completely disappears. Also, it is impossible to ever attach a CAG to the ship, even if one is built or detatched from another carrier. The same thing happens whenever a ship with attached brigade is created by event. For example, I created the Yamato with an improved hull attached but the improved hull disappeared when I deployed the Yamato to a port.
#########################################################################
# Commission the Carrier Shinano
#########################################################################
event = {
id = 79944
random = no
country = JAP
name = "Build the Shinano"
desc = "The Shinano was commissioned on 19 November 1944. It was built using a superheavy battleship hull and was the largest aircraft carrier built in World War II."
picture = "British_naval_reinforcments"
style = 0
trigger = {
war = { country = JAP country = USA }
technology = { country = JAP value = 3310 } # must know 1938 superheavy battleship tech
energy = 20241
rare_materials = 5061
metal = 10121
}
date = { day = 19 month = november year = 1944 }
offset = 7
deathdate = { day = 30 month = december year = 1999 }
action_a = {
ai_chance = 100
name = "Build the ship"
command = { type = add_division which = "Shinano" value = carrier when = 6 where = cag }
# there is an error in AoD because the damn cag always disappears when the carrier is deployed to a port
command = { type = metalpool value = -10120 }
command = { type = energypool value = -20240 }
command = { type = rarematerialspool value = -5060 }
}
action_b = {
ai_chance = 0
name = "No, we need the resources elsewhere"
command = { }
}
}
#########################################################################
# Commission the Carrier Shinano
#########################################################################
event = {
id = 79944
random = no
country = JAP
name = "Build the Shinano"
desc = "The Shinano was commissioned on 19 November 1944. It was built using a superheavy battleship hull and was the largest aircraft carrier built in World War II."
picture = "British_naval_reinforcments"
style = 0
trigger = {
war = { country = JAP country = USA }
technology = { country = JAP value = 3310 } # must know 1938 superheavy battleship tech
energy = 20241
rare_materials = 5061
metal = 10121
}
date = { day = 19 month = november year = 1944 }
offset = 7
deathdate = { day = 30 month = december year = 1999 }
action_a = {
ai_chance = 100
name = "Build the ship"
command = { type = add_division which = "Shinano" value = carrier when = 6 where = cag }
# there is an error in AoD because the damn cag always disappears when the carrier is deployed to a port
command = { type = metalpool value = -10120 }
command = { type = energypool value = -20240 }
command = { type = rarematerialspool value = -5060 }
}
action_b = {
ai_chance = 0
name = "No, we need the resources elsewhere"
command = { }
}
}
Last edited:
Upvote
0