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

ElectricEel

Captain
53 Badges
Jul 8, 2006
395
60
  • Mount & Blade: Warband
  • Europa Universalis: Rome
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Victoria: Revolutions
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis III Complete
There's an event where one of a tribe's clan chiefs complains that no one in his family has a job. This event can fire even if some of the clan chief's family members *do* have jobs. I've had it fire while the chief has family members in the position of a naval commander or a tech advisor.

Here's the relevant part of the event (from 'internal_politics_tribe.txt', ID 3543):

Code:
trigger = {
		country = {
			government = tribal
		}
		is_clan_chief = yes
		NOT = {
			any_family_member = {
				has_job = no
			}
		}
}

Doesn't the 'NOT' argument actually return true only if none of the conditions within are met? If that's the case, that condition is actually a double negative - it will only let the event fire if a family member of the clan chief does not *not* have a job, just the opposite of the intended effect.

If I'm correct, simply changing the condition from 'has_job = no' to 'has_job = yes' should solve the problem.

Code:
trigger = {
		country = {
			government = tribal
		}
		is_clan_chief = yes
		NOT = {
			any_family_member = {
				has_job = yes
			}
		}
}
 
Upvote 0

Silktrader

Sometimes Hero
23 Badges
Jan 18, 2007
5.917
3
  • Europa Universalis III Complete
  • Europa Universalis: Rome Collectors Edition
  • Europa Universalis IV: Pre-order
  • 500k Club
  • War of the Roses
  • Warlock: Master of the Arcane
  • Rome: Vae Victis
  • Victoria 2
  • The Showdown Effect
  • Sword of the Stars II
  • Sword of the Stars
  • Europa Universalis: Rome
  • Crusader Kings II
  • Magicka
  • Leviathan: Warships
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III
  • Dungeonland
Yes, the bug was caught as soon as released. It's quite an irritating issue, given the MTTH.

As for the trigger conditions, You are correct - that's where the issue lays. Though the fix will be slightly different than You suggested.

(Your bug report was exemplary, tidy and clear.)
 

ElectricEel

Captain
53 Badges
Jul 8, 2006
395
60
  • Mount & Blade: Warband
  • Europa Universalis: Rome
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Victoria: Revolutions
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis III Complete
silktrader said:
...Though the fix will be slightly different than You suggested.

That's good, since it turns out my attemp didn't actually work - the event occurred again even though a family member of the clan chief it triggered for was working as a tech advisor. I'll just comment out the event while I wait for an official fix.
 

richtern

Captain
87 Badges
Jan 19, 2007
429
161
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis: Rome Collectors Edition
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Victoria 2
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Necroids
  • Europa Universalis IV
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
Does the "any_family_member" command identify the clan chief themselves as a family member?

I have had instances where the clan chief complains about the family not having any jobs even though the one family member that has a job is the clan chief themselves. This is most likely due to the script error up above but I would like to make sure.