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

Lodewijk

Supreme Commander
78 Badges
Aug 21, 2010
149
0
  • Crusader Kings II
  • Sengoku
  • March of the Eagles
  • Supreme Ruler: Cold War
  • Heir to the Throne
  • Hearts of Iron III
  • Victoria 2: A House Divided
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Darkest Hour
  • Commander: Conquest of the Americas
  • Europa Universalis IV: Common Sense
  • Semper Fi
  • Crusader Kings II: Conclave
  • Ship Simulator Extremes
  • Cities in Motion
  • Supreme Ruler 2020
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Victoria 2
  • Crusader Kings II: Horse Lords
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings III: Royal Edition
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis III
  • Europa Universalis IV: Art of War
  • Rome Gold
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis III Complete
  • The Kings Crusade
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
Could someone tell me why this event is giving the following error code:
''ERROR : (unknown lhs in command) 'type = flag_ext' Line = 296 file = Mods\Kaiserreich for DH 1.1\db\events\Neutral Europe\Papacy.txt''

orginal event:

Code:
event = {
id = 482501
trigger = {
	flag = ITA_sovoia
	}
country = ITA
style = 2

name = "The monarchy restored!"
desc = "The true royal family of Italy has restored its holdings in Piedmont and Sardinia and has the pope has been placed under house arrest. The only remaining question is who should be the next king. Vittorio Emmanuel, who is rather unpopular, or his son, the popular Humbert II?"
picture = "Kaiserreich_RSI_Colosseo"

date = { day = 1 month = july year = 1937 }
offset = 30
deathdate = { day = 30 month = august year = 1937 }

action_a = {
	ai_chance =  90
	name = "The old king will lead Italy once again!"
	command = { type = headofstate which = 3009 } Vittorio Emmanuele III
	command = { type = flag_ext where = ITA which = "_savoia" }
	command = { type = relation which = AUS value = -100 } 
	command = { type = dissent value = -3  } 
	command = { type = name where = ITA which = "ITA_KIN_NAME" } 
	command = { type = trigger which = 48254202 } 
}

action_b = {
	ai_chance =  10
	name = "The young Umberto will lead our nation"
	command = { type = headofstate which = 3011 } Umberto II
	command = { type = flag_ext where = ITA which = "_savoia" }
	command = { type = relation which = AUS value = -50 } 
	command = { type = dissent value = -5  } 
	command = { type = name where = ITA which = "ITA_KIN_NAME" } 
	command = { type = trigger which = 48254203 } 
	} 
 }
 
Try this
Code:
event = {
    id = 482501
    trigger = {
	flag = ITA_sovoia
    }
    country = ITA
    style = 2

    name = "The monarchy restored!"
    desc = "The royal family of Italy has restored its holdings in Piedmont and Sardinia and has quashed the pope's power. The only remaining question is who should be the next king. Vittorio Emmanuel or Humbert II?"
    picture = "Kaiserreich_RSI_Colosseo"

    date = { day = 1 month = july year = 1937 }
    offset = 30
    deathdate = { day = 30 month = august year = 1937 }

    action = {
	ai_chance =  90
	name = "The old king will lead Italy once again!"
	command = { type = headofstate which = 3009 } #Vittorio Emmanuele III
	command = { type = flag_ext where = ITA which = "_savoia" }
	command = { type = relation which = AUS value = -100 } 
	command = { type = dissent value = -3  } 
	command = { type = name where = ITA which = "ITA_KIN_NAME" } 
	command = { type = trigger which = 48254202 } 
    }

    action = {
	ai_chance =  10
	name = "The young Umberto will lead our nation"
	command = { type = headofstate which = 3011 } #Umberto II
	command = { type = flag_ext where = ITA which = "_savoia" }
	command = { type = relation which = AUS value = -50 } 
	command = { type = dissent value = -5  } 
	command = { type = name where = ITA which = "ITA_KIN_NAME" } 
	command = { type = trigger which = 48254203 } 
    }
}