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

jruderman

Major
36 Badges
Oct 20, 2014
593
66
  • Cities in Motion 2
  • Europa Universalis IV: Res Publica
  • Majesty 2
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Impire
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • 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
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Major Wiki Contributor
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Stellaris: Lithoids
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Cities: Skylines
  • Warlock: Master of the Arcane
  • Europa Universalis IV
"in_faction = yes" and "leads_faction = yes" always evaluate to false. I find this odd because these triggers are used as booleans in several vanilla files, and even have special tooltip text when used as booleans.

You can see this by right-clicking a faction leader or member, with a mod that's just:

Code:
targetted_decisions = {

    test_faction_triggers = {
        from_potential = { ai = no }
        potential = { is_ruler = yes }
        allow = { OR = { leads_faction = yes  in_faction = yes } }
    }

}
 
Upvote 0

hooni

Second Lieutenant
11 Badges
Aug 30, 2013
162
77
  • Crusader Kings II
  • Dungeonland
  • Europa Universalis III
  • Leviathan: Warships
  • Magicka
  • Crusader Kings II: The Old Gods
  • The Showdown Effect
  • Warlock: Master of the Arcane
  • War of the Roses
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
"in_faction = yes" and "leads_faction = yes" always evaluate to false. I find this odd because these triggers are used as booleans in several vanilla files, and even have special tooltip text when used as booleans.

You can see this by right-clicking a faction leader or member, with a mod that's just:

Code:
targetted_decisions = {

    test_faction_triggers = {
        from_potential = { ai = no }
        potential = { is_ruler = yes }
        allow = { OR = { leads_faction = yes  in_faction = yes } }
    }

}
Leads faction is not a Boolean.
However, in_faction should not be a Boolean. Really should be fixed because a lot of vanilla events rely on this trigger.
 

Servancour

Game Designer
Paradox Staff
4 Badges
Mar 15, 2012
1.569
7.915
  • Crusader Kings II
  • 500k Club
  • Paradox Order
  • Stellaris Sign-up
I don't think leads_faction ever worked with a yes/no input, while in_faction at least used to. I'll look into it though.

Thanks for reporting!