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

Battlecry

Field Marshal
16 Badges
Feb 22, 2007
2.530
4
  • Arsenal of Democracy
  • Crusader Kings II
  • Europa Universalis III
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis: Rome
  • Semper Fi
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV Sign-up
I'm writing an International Relations series of events, but having a small problem:

Can someone post an example of an option-effect which gives two nations CBs on each other? I can set it up so that any_country (with limits) gets a CB on the nation for whom the event is firing (i.e. THIS) but not so that THIS gets a CB on them as well.
 
Hmm...

The most simple example:

Code:
country_event = {
            
	  id = 232432
			
	  trigger = {
               exists = ACH
	       143 = { owner = { ACH } }
	  }

	
	  mean_time_to_happen = {

		months = 1800
		
                 modifier = {
		    factor = 0.8
		    not = { stability = 3 }
	         }	
			
	  }

             title = "ttt"
	     desc = "bla bla bla"

	      option = {
	         name = "Yes"
                 ai_chance = { factor = 90 }		
		 ACH =  { casus_belli = THIS } 
		 THIS = { casus_belli = ACH } 	
	      }
}

In our case any country will receive CB, if Achaean League, owner a province № 143...

Though here it is necessary to experiment. During check of it event, all world has received CB against Achaean League, I do not think that it is necessary for you. Though idea of it event I think is clear...
 
Last edited:
battlecry said:
I'm writing an International Relations series of events, but having a small problem:

Can someone post an example of an option-effect which gives two nations CBs on each other? I can set it up so that any_country (with limits) gets a CB on the nation for whom the event is firing (i.e. THIS) but not so that THIS gets a CB on them as well.
The best way I've found to get around this situation is to fire a separate event for the other country involved and use from. Like so:

Code:
...
	option = {
		name = "t"
		random_country = {
			casus_belli = THIS
			country_event = 999
		}
	}
...

country_event = {
	id = 999
	is_triggered_only = yes
	title = "t2"
	option = {
		name = "t2o"
		from = {
			casus_belli = THIS
		}
	}
}
 
@Antimatter: (thanks Jusi, but tags aren't helpful - the event is aimed at a random country with 5 or more ports)
What's guaranteeing that the second event will give a casus belli on the country for whom the first event fired?
How exactly does the "from = {}" trigger work? Maybe I can devise a way to use this to do the same thing in a single event.
 
battlecry said:
@Antimatter: (thanks Jusi, but tags aren't helpful - the event is aimed at a random country with 5 or more ports)
What's guaranteeing that the second event will give a casus belli on the country for whom the first event fired?
How exactly does the "from = {}" trigger work? Maybe I can devise a way to use this to do the same thing in a single event.
As far as I can tell, the from trigger gives you the top level context of the event that fired the current event. It seems to remember if it was a province or a country (or a character, I assume), no matter what the current event is.

So what's happening in the events I posted is it's selecting a random country (you'll want to limit it, of course) and giving that country a CB on the country for which the event fired. Then it fires an event for the country that just received the CB and gives a CB to the original country. It's completely backwards logically, but it should work.

I don't think you could combine them into one event, unfortunately. I believe you could do 'casus_belli = FROM' but you'd still need an event to fire the event that gives the CBs. Do let me know if you find otherwise, though.
 
Last edited: