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

Gringoesteban

Major
5 Badges
Jan 29, 2008
699
1
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III: Their Finest Hour
  • 500k Club
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 = { }
}
}
 
Last edited:
Upvote 0

Dunno1987

Second Lieutenant
76 Badges
Aug 6, 2009
134
0
  • Arsenal of Democracy
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris
  • Cities: Skylines Deluxe Edition
  • Semper Fi
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Iron Cross
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Dungeonland
  • Cities in Motion 2
  • Cities in Motion
  • Hearts of Iron Anthology
  • Europa Universalis III
  • Darkest Hour
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Surviving Mars
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Magicka 2
  • Supreme Ruler 2020
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Way of Life
  • War of the Roses
  • 500k Club
  • Hearts of Iron IV: Death or Dishonor
  • Island Bound
  • Magicka: Wizard Wars Founder Wizard
  • Mount & Blade: Warband
What happens if you add the create corp command and assign it to a corp/fleet?


type = add_corps which = [name] value = [land/air/naval] when = [leader ID] where = [province_ID]

Is it attached then?

Edit:
Might want to add a trigger to check if you own the province you add the fleet to...
 

Denniss

CORE developer
37 Badges
Jun 15, 2005
3.370
41
www.matrixgames.com
  • Rise of Prussia
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Europa Universalis IV: Pre-order
  • Majesty 2
  • Mount & Blade: Warband
  • Achtung Panzer
  • Surviving Mars
  • Age of Wonders III
  • Surviving Mars: Digital Deluxe Edition
  • Shadowrun Returns
  • Surviving Mars: First Colony Edition
  • Surviving Mars: First Colony Edition
  • Darkest Hour
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Arsenal of Democracy
  • Deus Vult
  • East India Company Collection
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Seems to be an engine bug, the CAG is there but not visible and probably also does not effect the combat values.
Better use the carrier as a dormat division set up in the scenario file and wake it up by that event.
To simulate inductral production needed for building this large ship you should also add a large chunk of supplies to the costs. Just using res is not really fair because you have them sitting in stockpile but you didn't produce anything with them.