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

StealthBomber

Corporal
87 Badges
Apr 26, 2007
36
0
  • Europa Universalis IV: Cossacks
  • Supreme Ruler: Cold War
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Semper Fi
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Necroids
  • Europa Universalis IV
  • Hearts of Iron II: Armageddon
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • March of the Eagles
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
Okay so I set up a new national decision and event modifier "Establish_Military_Academy" and added a new trait strategist. So what ive been trying to do is this. When a character becomes an ex civic tech I want him to acquire the strategist trait. So far I can't get it to work hence why I am here. All I have managed to do is give it to every one :confused: if any one could help I would much appreciate it.
PHP:
	Establish_Military_Academy = {
		potential = {
			tag = ROM
			not = { has_country_modifier = Establish_Military_Academy }
		}
		
		allow = {
		ruler = { martial = 1
			}
			}
			
		effect = {
		any_character = {
			OR = {
				has_title = title_ex_civic_tech
			 }
			add_trait = strategist
			}
			stability = -3
			add_country_modifier = {
				name = "Establish_Military_Academy"
				duration = -1
			}
		}
		revoke_allowed = {
			always = no
		}
}
 
Okay so I set up a new national decision and event modifier "Establish_Military_Academy" and added a new trait strategist. So what ive been trying to do is this. When a character becomes an ex civic tech I want him to acquire the strategist trait. So far I can't get it to work hence why I am here. All I have managed to do is give it to every one :confused: if any one could help I would much appreciate it.
PHP:
    Establish_Military_Academy = {
        potential = {
            tag = ROM
            not = { has_country_modifier = Establish_Military_Academy }
        }
       
        allow = {
        ruler = { martial = 1
            }
            }
           
        effect = {
        any_character = {
            OR = {
                has_title = title_ex_civic_tech
             }
            add_trait = strategist
            }
            stability = -3
            add_country_modifier = {
                name = "Establish_Military_Academy"
                duration = -1
            }
        }
        revoke_allowed = {
            always = no
        }
}
Do the new trait (strategist) and new modifier (Establish_Military_Academy) work?
Did you examine each independently?

If yes, change the any_character section of effect as below

any_character = {
limit = { has_title = title_ex_civic_tech }
add_trait = strategist
}

I tested resembled decision using raised_tax modifier, title_civic_tech, and victorious trait, and it seemed to work. But I found that this effect is one-time (i.e., next civic_tech did not have victorious in my test).
If you mean a kind of school, I think it is better to make a character_event giving ex_civic_tech strategist under Establish_Military_Academy modifier.