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

lordmackie

Sergeant
66 Badges
Dec 30, 2011
88
1
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Supreme Ruler: Cold War
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • 500k Club
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Distant Stars
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • Cities: Skylines - Parklife
  • Stellaris: Necroids
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - Parklife Pre-Order
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
I am working with modding for the first time (Major Modding) and the mod I am working on now will involve treaties similar to those in affect now in the real world regarding the usage of nukes. Is it possible to keep certain countries that have nukes from using nukes until a particular event occurs? And if it is possible, can someone show me how its done?

Like, normally in my case if an AI country has nukes and goes to war they will always use the nukes. Any way to prevent that until a specific event occurs (Like human player involuntary uses nukes starting nuclear war, or maybe country gets really desperate and down to their last few territories.)
 
If possible, yes... to some extent. If you mod the techs to no enable nuke attacks, then you would only need a event with this command:
command = { type = enable_task which = nuke }
to activate it (The command will work anyway if you don't mod the techs, but one of them could unlock it). The problems are:
1. The IA will use their nukes at once
2. I don't know a way to deactivate the mission, so once enabled always will be capable of use nukes.

The other way would be modding the AI files to no use nukes until certain flag is placed... but i don't know how do this.
 
You can try... But I doubt that will work. Some of the commands can be used in "curious" ways, but as I haven't use this one no idea.