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

Wave

Rocker moth
61 Badges
Sep 12, 2009
946
34
  • Europa Universalis IV: Wealth of Nations
  • Semper Fi
  • Crusader Kings II
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Victoria 2: A House Divided
  • Magicka
  • Victoria 2: Heart of Darkness
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings III
  • Crusader Kings II: Monks and Mystics
  • BATTLETECH
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Steel Division: Normand 44 Sign-up
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
According to Descartes' mod guide where triggers and effects are listed you can use war_with = x as effect, in events for example.

Has anyone ever done this? I've been fighting with it for 2 hours now and haven't got it working.

Casus belli works with

casus_belli = from
from = {
casus_belli = THIS

But war_with doesn't seem to do anything anywhere.

If it is important to know this event I'm doing works in two parts, first your neighbor has event which triggers another on you and you should then end up at war with them.

This is IMO nicer way because then you'll have some idea why you suddenly are at war instead of single event and then war without telling to other side.

Could that actually be the problem? Both sides need to have war_with to make it work?

PS. Typos (if you find some) are due typing with crappy phone
 
Little update:

I've managed to find out something. You must have both of them to make anything happpen so the code looks like

war = yes
war_with = x

Unluckily I haven't found out what to put on x's place. If you use
war_with = {
any_neighboring_country = {
government = tribal
}
}
You'll have crash to desktop.

I also tried the same thing Ijtzoi used with casus belli in brython mod,

war = yes
war_with = from
from = {
war_with = THIS
relation = { who = THIS value = -150 }
}
(simply copied the original totally working code and replaced 'casus belli' with 'war_with')
But in game the message says "declare war on relation change (-150) between . and you" so it doesn't work either.

I'm running out of ideas soon and I'd be happy to hear if someone knows or has a guess how to do it.
 
Last edited:
You have the right idea, I'm on my phone so I can't check anything right now but I don't think you need the war=x line.

The FROM tag works a little differently. It works like a THIS tag, but refers to a country that received an event that triggered your current event, meaning you'd need to write a second event for the country you want to go to war with, and that'd need to trigger this event.

It'd be far easier to change the scope to the country you want to war with in the effect, and then use war_with = THIS.

Sorry, that's the best answer I can give without access to my computer for a specific example.
 
It'd be far easier to change the scope to the country you want to war with in the effect, and then use war_with = THIS.

I can't actually explain what I just learnt from that sentence but it really gave me light bulb above my head :D Thank you.

I tested that but still I haven't got war_with = x working alone (see the code box below). It seems that war = yes makes the message say "Declare war on ." but I still need to find the way to tell the comp which nation I want to declare war on.

Here was the try to make other country declare war against me.

Code:
random_country = {
			limit = {
				neighbour = THIS
				government = tribal
				NOT = { alliance_with = THIS }
			}
			war_with = THIS
		}