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

Faulty

Jail or Medal
103 Badges
Sep 22, 2009
2.946
296
  • Arsenal of Democracy
  • Darkest Hour
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Cities: Skylines
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings Complete
  • Stellaris: Federations
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Surviving Mars: First Colony Edition
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Pride of Nations
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Steel Division: Normandy 44
  • Crusader Kings II: Conclave
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
A command which stops the rest of the event being executed would be pretty useful for making a DH equivalent of a switch/case statement

Code:
command = { type = break }

This could be used in conjunction with the new triggers inside code, eg if I wanted to make a CHC using either an existing Chinese puppet or if neither exist my own provinces, or failing those three fire an event explaining why nothing has happened:

Code:
command = { trigger = { exists = SIK } type = trigger which = xxx }
command = { trigger = { exists = SIK } type = break }
command = { trigger = { exists = MON } type = trigger which = xxx }
command = { trigger = { exists = MON } type = break }
command = { trigger = { region = { region = "China" value = 1 } } type = independence which = CHC }
command = { trigger = { OR = { region = { region = "China" value = 1 } exists = CHC } } type = break }
command = { type = trigger which = xxx }
 
Upvote 0