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
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 = { 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