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

DesertSnow

Colonel
52 Badges
Oct 10, 2007
1.108
16
  • Hearts of Iron II: Armageddon
  • Stellaris - Path to Destruction bundle
  • Pillars of Eternity
  • Warlock: Master of the Arcane
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis: Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis III Complete
  • March of the Eagles
  • Magicka
  • For The Glory
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II
  • Arsenal of Democracy
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Shadowrun: Hong Kong
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Tyranny - Bastards Wound
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Tyranny: Archon Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • 500k Club
  • Warlock 2: The Exiled
  • Victoria 2
  • Europa Universalis III Complete
As the name implies, i am trying to create an event that would wipe out any small settlement (population lower than 10) that is occupied by barbarians (and the owner doesn't find a solution-reconquest, settlement, client kingdom- before the event fires)

I tried using a trigger like this one:

country_event = {

id = 48000

trigger = {
any_province = {
controller = { NOT = { tag = THIS } }
controller = { tag = BAR } }
owner = { tag = THIS }
NOT = {population = 10}
}
}


This doesn't work (probably due to the BAR controller thingy).

Another idea was using the "looted" static modifier as the trigger. Unfortunatelly, there is no trigger of the type

looted = yes

Has anyone faced a similar problem and found a solution?
 
DesertSnow said:
As the name implies, i am trying to create an event that would wipe out any small settlement (population lower than 10) that is occupied by barbarians (and the owner doesn't find a solution-reconquest, settlement, client kingdom- before the event fires)

I tried using a trigger like this one:

country_event = {

id = 48000

trigger = {
any_province = {
controller = { NOT = { tag = THIS } }
controller = { tag = BAR } }
owner = { tag = THIS }
NOT = {population = 10}
}
}


This doesn't work (probably due to the BAR controller thingy).

Another idea was using the "looted" static modifier as the trigger. Unfortunatelly, there is no trigger of the type

looted = yes

Has anyone faced a similar problem and found a solution?

Ok:
a) Try NOT = { controlled_by = owner }
instead of the 'controller = { NOT = { tag = THIS } }' thing...
b) There always has to be a space before & after braces ({}s), so:
NOT = {population = 10} should be:
NOT = { population = 10 }
c) There's a misplaced brace after controller = { tag = BAR }

To use modifiers as a trigger, it looks like this:
has_province_modifier = looted

So the trigger should be more like:

Code:
	trigger = {
		any_province = {
			NOT = { controlled_by = owner }
                        owner = { tag = THIS }
			controller = { tag = BAR }
			NOT = { population = 10 }
                        has_province_modifier = looted ###<<not really necessary###
		}
	}

If you PM me your whole event, I can see if I can find what's wrong. But first try these changes.
 
Thanks mate, you are fast as "keraunos" (it means "thunder" in greek. Strangely there is a leader in the game with that name). I will go and see if it will work now.