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

TSD

Second Lieutenant
60 Badges
Mar 30, 2015
151
200
  • Crusader Kings II: Legacy of Rome
  • Steel Division: Normand 44 - Second Wave
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Stellaris
  • Cities: Skylines Deluxe Edition
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • Victoria: Revolutions
  • Hearts of Iron III
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings III
  • Stellaris: Federations
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Steel Division: Normandy 44 -  Back to Hell
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Cities: Skylines Industries
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome - Magna Graecia
  • Hearts of Iron IV: No Step Back
  • Imperator: Rome Sign Up
  • Crusader Kings III: Royal Edition
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Victoria 2
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normandy 44 Deluxe Edition
  • Cities: Skylines - Mass Transit
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Europa Universalis IV
As the title says, i want to trigger an event to fire when you click to build a ship.

To demonstrate what I am trying to do.

Lets say I have 4 ship types. I only ever want to have one of those 4 ship types able to exist at a time.

currently I have it scripted so that once one of those 4 ships is built it removes the other 3 from the build list so they can't be built and makes them available again if the existing ship is disbanded/destroyed.

However, if I queue up all 4 ships. It will still build all 4 as long as they were queued before the first one was built.

So what I am trying to do is essentially disable the other ship designs the moment one of them is queued to be built (and restore them if the queue is cancelled).

There seems to be an on_action event for planet buildings like this, but I don't see one for ships. (That functionality has to exist somewhere, because if you limit a ship size to 1 per empire the moment you queue it and look at the fleet info it marks it as 1/1.)