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

TheLamprey

Private
75 Badges
Dec 7, 2014
19
0
  • Crusader Kings II: Charlemagne
  • Hearts of Iron 4: Arms Against Tyranny
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Reapers Due
  • Pillars of Eternity
  • Leviathan: Warships
  • Crusader Kings II
  • Europa Universalis IV
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Holy Fury
  • Shadowrun: Hong Kong
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Crusader Kings II: Holy Fury Pre-order
  • Cities: Skylines - Parklife
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
I'm trying to remove the shogun from the start of my converted EU4 mod (I had the divine empire reform).

Basically, I have a new variable called "amaterasu_var" that is controlling the dynamic government type of Japan.

I tried setting it in the country formation and it does not appear to be working. I checked the logs and it even warns that "amaterasu_var" is not being used.

Code:
JAP = {
    color = { 194 53 60 }
    country_type = recognized
    tier = hegemony
    cultures = { japanese ainu }
    religion = shinto
    capital = STATE_KANSAI
    
    set_variable = {
        name = amaterasu_var
        value = 1
    }
    
    set_variable = {
        name = shogunate_var
        value = 0
    }
    
    set_variable = {
        name = meiji_var
        value = 0
    }
}

Any help would be appreciated.
 
You need to set it in the history files, not the country definition files.