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

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • 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
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • 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: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
What command do I use so that option a has no effect?

##############################################
##### USA Builds USS North Carolina
##############################################
event = {
id = 3901
random = no
country = USA

name = "Construction Begins on USS North Carolina"
desc = "Construction of the USS North Carolina began at the New York Naval Ship yard on October 27, 1937."

style = 0
picture = "naval_construction"

date = { hour = 9 day = 2 month = january year = 1936 }

action_a = {
name = "Yes"
ai_chance = 100
command = { type = build_division which = battleship }
}
action_b = {
name = "We don't need a new Battleship"
}
}
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
command = { }
Btw, you really should use code tags to preserve indentation.
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • 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
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • 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: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
Wobbler said:
command = { }
Btw, you really should use code tags to preserve indentation.

Ok, here is where I get to sound dumb.. what is a code tag?
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
<opening bracket>code<closing bracket> <Your code> <opening bracket>/code<closing bracket>
Also insertable by clicking on the # symbol if you have scripts enabled.
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • 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
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • 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: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
First off, thanks for your help guys. Here is my next question, if you look at the below two events here is the problem I am having, how do I get event 77704 to fire only if event 77703 action_a is chosen?
Code:
##########################################################
### Governor Murphy Reacts
### By Micah Goodman
##########################################################

event = {
        id = 77703
        random = no
        country = USA

	trigger = {
                event = 77702
           }
        
        name = "Governor Murphy Reacts"
	desc = "When Michigan governor Frank Murphy was informed of the riot in Flint, he ordered the National Guard to deal with the issue.  Initially, the Governor took a harsh stance against the strikers.  However, the Governor never used the National Guard to break the strike."
	style = 0
	picture = "major_worker_strike"

	date = { day = 12 month = january year = 1937 }

	action_a = {
		   name = "Send the Guard to Maintain order"
		   ai_chance = 80
		   command = { type = dissent value = 1 }
	}
	action_b = {
		   name = "Crush the Strike"
		   ai_chance = 20
		   command = { type = dissent value = 5 }
		   command = { type = construct which = ic where = 670 value = 1 } # Atlanta
		   command = { type = construct which = ic where = 616 value = 2 } # Detroit
		   command = { type = construct which = ic where = 615 value = 1 } # Cleveland 
		   command = { type = construct which = ic where = 628 value = 1 } # Columbus Ohio
	}
       }
###########################################################
### UAW Wins strike
### By Micah Goodman
###########################################################

event = {
id = 77704
random = no
country = USA

trigger = {

}

name = "UAW settles with GM"
desc = "Governor Murphy ordered the National Guard to cordon off the plant in Flint and allowed no one into the plant. He even blocked shipments of food into the plant in an attempt to starve out the workers. The workers promptly declared a hunger strike. GM officials had hoped that the Governor would order troops into the plant to forcibly remove the workers; the Governor however,refused. F.D.R. appealed to both sides to return to the bargaining table. On Feb. 11, 1937 both sides reached an agreement. The union won almost all of their demands. First and foremost was that the UAW was the only union that GM could deal with."
style = 0
date = { day = 12 month = february year = 1937 }

action_a = {
name = "Let's get back to work!"
command = { type = dissent value = -6 }
command = { type = construct which = ic where = 670 value = 2 } # Atlanta
command = { type = construct which = ic where = 616 value = 3 } # Detroit
command = { type = construct which = ic where = 615 value = 1 } # Cleveland
command = { type = construct which = ic where = 628 value = 2 } # Columbus Ohio
}
}
 
Last edited:

xtfoster

Field Marshal
57 Badges
Feb 8, 2006
5.874
2.209
  • Shadowrun Returns
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • BATTLETECH
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: No Step Back
  • Stellaris: Galaxy Edition
  • Deus Vult
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Majesty 2
  • Europa Universalis III Complete
  • Semper Fi
  • Supreme Ruler 2020
  • 500k Club
  • Hearts of Iron II: Beta
  • Stellaris
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
Micah Goodman 2 said:
First off, thanks for your help guys. Here is my next question, if you look at the below two events here is the problem I am having, how do I get event 77704 to fire only if event 77703 action_a is chosen?
In event 77703 action_a you need to set a flag
Code:
command = { type = local_setflag which = Flint_Riots }
In the trigger for 77704 you need to add a check against that flag
Code:
local_flag = Flint_Riots
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • 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
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • 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: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
Ok, here is what I have. However, I get a fault when I enter it in like this. What am I missing? (Thanks for your help by the way.)

##########################################################
### Governor Murphy Reacts
### By Micah Goodman
##########################################################

event = {
id = 77703
random = no
country = USA

trigger = {
event = 77702
}

name = "Governor Murphy Reacts"
desc = "When Michigan governor Frank Murphy was informed of the riot in Flint, he ordered the National Guard to deal with the issue. Initially, the Governor took a harsh stance against the strikers. However, the Governor never used the National Guard to break the strike."
style = 0
picture = "major_worker_strike"

date = { day = 12 month = january year = 1937 }

action_a = {
name = "Send the Guard to Maintain order"
ai_chance = 80
command = { type = dissent value = 1 }
command = { type = local_setflag which = Flint_Riots }
}
action_b = {
name = "Crush the Strike"
ai_chance = 20
command = { type = dissent value = 5 }
command = { type = construct which = ic where = 670 value = 1 } # Atlanta
command = { type = construct which = ic where = 616 value = 2 } # Detroit
command = { type = construct which = ic where = 615 value = 1 } # Cleveland
command = { type = construct which = ic where = 628 value = 1 } # Columbus Ohio
}
}

###########################################################
### UAW Wins strike
### By Micah Goodman
###########################################################

event = {
id = 77704
random = no
country = USA

trigger = {
local_flag = Flint_Riots
}

name = "UAW settles with GM"
desc = "Governor Murphy ordered the National Guard to cordon off the plant in Flint and allowed no one into the plant. He even blocked shipments of food into the plant in an attempt to starve out the workers. The workers promptly declared a hunger strike. GM officials had hoped that the Governor would order troops into the plant to forcibly remove the workers; the Governor however,refused. F.D.R. appealed to both sides to return to the bargaining table. On Feb. 11, 1937 both sides reached an agreement. The union won almost all of their demands."
style = 0
picture = "major_worker_strike"
date = { day = 12 month = february year = 1937 }

action_a = {
name = "Let's get back to work!"
command = { type = dissent value = -6 }
command = { type = construct which = ic where = 670 value = 2 } # Atlanta
command = { type = construct which = ic where = 616 value = 3 } # Detroit
command = { type = construct which = ic where = 615 value = 1 } # Cleveland
command = { type = construct which = ic where = 628 value = 2 } # Columbus Ohio
}
}
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
Wobbler said:
<opening bracket>code<closing bracket> <Your code> <opening bracket>/code<closing bracket>
Also insertable by clicking on the # symbol if you have scripts enabled.
Seriously, indentation is what makes code readable.
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • 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
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • 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: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
Wobbler said:
Seriously, indentation is what makes code readable.
Could you do me a huge favour and rewrite the event, highliting where I am messing up. Right now I just don't get what you are trying to tell me. Where am I suposed to be putting the indentations? I think it will make more sense to me if I can see it. I know, you are probably shouting.. how can he not get it???? Today is the first time that I have actually been able to write events that work! Well, some of them anyway. :p
 

xtfoster

Field Marshal
57 Badges
Feb 8, 2006
5.874
2.209
  • Shadowrun Returns
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • BATTLETECH
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: No Step Back
  • Stellaris: Galaxy Edition
  • Deus Vult
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Majesty 2
  • Europa Universalis III Complete
  • Semper Fi
  • Supreme Ruler 2020
  • 500k Club
  • Hearts of Iron II: Beta
  • Stellaris
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
Micah Goodman 2 said:
Ok, here is what I have. However, I get a fault when I enter it in like this. What am I missing? (Thanks for your help by the way.)
What exact error message are you getting?
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • 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
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • 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: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
error : (unknown Trigger type) ' Comand = local_flag' line = 1491
 
Last edited:

xtfoster

Field Marshal
57 Badges
Feb 8, 2006
5.874
2.209
  • Shadowrun Returns
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • BATTLETECH
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: No Step Back
  • Stellaris: Galaxy Edition
  • Deus Vult
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Majesty 2
  • Europa Universalis III Complete
  • Semper Fi
  • Supreme Ruler 2020
  • 500k Club
  • Hearts of Iron II: Beta
  • Stellaris
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
Micah Goodman 2 said:
error : (unknown Trigger type) ' Comand = local_flag' line = 1491
OK, I can't see anything wrong with that line in your events, but it could be that your Description is too long.
Try this...
Code:
################################################## ########
### Governor Murphy Reacts
### By Micah Goodman
################################################## ########

event = {
	id = 77703
	random = no
	country = USA

	trigger = {
		event = 77702
	}

	name = "Governor Murphy Reacts"
	desc = "When Michigan governor Frank Murphy was informed of the riot in Flint, he ordered the National Guard to deal with the issue. Initially, the Governor took a harsh stance against the strikers. However, the Governor never used the National Guard to break the strike."
	style = 0
	picture = "major_worker_strike"

	date = { day = 12 month = january year = 1937 }

	action_a = {
		name = "Send the Guard to Maintain order"
		ai_chance = 80
		command = { type = dissent value = 1 }
		command = { type = local_setflag which = Flint_Riots }
	}
	action_b = {
		name = "Crush the Strike"
		ai_chance = 20
		command = { type = dissent value = 5 }
		command = { type = construct which = ic where = 670 value = 1 } # Atlanta
		command = { type = construct which = ic where = 616 value = 2 } # Detroit
		command = { type = construct which = ic where = 615 value = 1 } # Cleveland
		command = { type = construct which = ic where = 628 value = 1 } # Columbus Ohio
	}
}

################################################## #########
### UAW Wins strike
### By Micah Goodman
################################################## #########

event = {
	id = 77704
	random = no
	country = USA

	trigger = {
		local_flag = Flint_Riots
	}

	name = "UAW settles with GM"
	desc = "Test with this shorter description so see if it works."
	style = 0
	picture = "major_worker_strike"
	date = { day = 12 month = february year = 1937 }

	action_a = {
		name = "Let's get back to work!"
		command = { type = dissent value = -6 }
		command = { type = local_clrflag = Flint_Riots }
		command = { type = construct which = ic where = 670 value = 2 } # Atlanta
		command = { type = construct which = ic where = 616 value = 3 } # Detroit
		command = { type = construct which = ic where = 615 value = 1 } # Cleveland
		command = { type = construct which = ic where = 628 value = 2 } # Columbus Ohio
	}
}
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
Micah Goodman 2 said:
Right now I just don't get what you are trying to tell me. Where am I suposed to be putting the indentations? I think it will make more sense to me if I can see it.
Compare these two triggers and then tell me which one you think is the easiest one to overview:
trigger = {
ai = yes
NOT = { lost_national = { country = USA value = 1 } }
NOT = { local_flag = inv_torch }
NOT = { local_flag = inv_europe }
army = 125
OR = {
NOT = { war = { country = USA country = JAP } }
ai = jap
}
OR = {
war = { country = USA country = VIC }
event = 985 # Darlan Defects, in vichy_new.txt
war = { country = USA country = SPA }
}
OR = {
AND = {
war = { country = USA country = ITA }
OR = {
control = { province = 932 data = ITA } # Tripoli
control = { province = 919 data = ITA } # Tobruk
control = { province = 924 data = ITA } # Benghazi
control = { province = 923 data = ITA } # Barca
control = { province = 933 data = ITA } # Zuara
control = { province = 939 data = ITA } # Tunis
control = { province = 949 data = ITA } # Algiers
control = { province = 953 data = ITA } # Oran
control = { province = 958 data = ITA } # Casablanca
}
}
AND = {
war = { country = USA country = SPA }
OR = {
control = { province = 932 data = SPA } # Tripoli
control = { province = 919 data = SPA } # Tobruk
control = { province = 924 data = SPA } # Benghazi
control = { province = 923 data = SPA } # Barca
control = { province = 933 data = SPA } # Zuara
control = { province = 939 data = SPA } # Tunis
control = { province = 949 data = SPA } # Algiers
control = { province = 953 data = SPA } # Oran
control = { province = 958 data = SPA } # Casablanca
}
}
AND = {
war = { country = USA country = VIC }
OR = {
control = { province = 932 data = VIC } # Tripoli
control = { province = 919 data = VIC } # Tobruk
control = { province = 924 data = VIC } # Benghazi
control = { province = 923 data = VIC } # Barca
control = { province = 933 data = VIC } # Zuara
control = { province = 939 data = VIC } # Tunis
control = { province = 949 data = VIC } # Algiers
control = { province = 953 data = VIC } # Oran
control = { province = 958 data = VIC } # Casablanca
}
}
}
}
Code:
	trigger = {
		ai = yes
		NOT = { lost_national = { country = USA value = 1 } }
		NOT = { local_flag = inv_torch }
		NOT = { local_flag = inv_europe }
		army = 125
		OR = {
			NOT = { war = { country = USA country = JAP } }
			ai = jap
		}
		OR = {
			war = { country = USA country = VIC }
			event = 985 # Darlan Defects, in vichy_new.txt
			war = { country = USA country = SPA }
		}
		OR = {
			AND = {
				war = { country = USA country = ITA }
				OR = {
					control = { province = 932 data = ITA } # Tripoli
					control = { province = 919 data = ITA } # Tobruk
					control = { province = 924 data = ITA } # Benghazi
					control = { province = 923 data = ITA } # Barca
					control = { province = 933 data = ITA } # Zuara
					control = { province = 939 data = ITA } # Tunis
					control = { province = 949 data = ITA } # Algiers
					control = { province = 953 data = ITA } # Oran
					control = { province = 958 data = ITA } # Casablanca
				}
			}
			AND = {
				war = { country = USA country = SPA }
				OR = {
					control = { province = 932 data = SPA } # Tripoli
					control = { province = 919 data = SPA } # Tobruk
					control = { province = 924 data = SPA } # Benghazi
					control = { province = 923 data = SPA } # Barca
					control = { province = 933 data = SPA } # Zuara
					control = { province = 939 data = SPA } # Tunis
					control = { province = 949 data = SPA } # Algiers
					control = { province = 953 data = SPA } # Oran
					control = { province = 958 data = SPA } # Casablanca
				}
			}
			AND = {
				war = { country = USA country = VIC }
				OR = {
					control = { province = 932 data = VIC } # Tripoli
					control = { province = 919 data = VIC } # Tobruk
					control = { province = 924 data = VIC } # Benghazi
					control = { province = 923 data = VIC } # Barca
					control = { province = 933 data = VIC } # Zuara
					control = { province = 939 data = VIC } # Tunis
					control = { province = 949 data = VIC } # Algiers
					control = { province = 953 data = VIC } # Oran
					control = { province = 958 data = VIC } # Casablanca
				}
			}
		}
	}
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • 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
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • 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: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
The second one, I think will be easier for me to grasp. Thanks.
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • 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
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • 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: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
xtfoster said:
OK, I can't see anything wrong with that line in your events, but it could be that your Description is too long.
Try this...

That did it thanks for your help.
 

xtfoster

Field Marshal
57 Badges
Feb 8, 2006
5.874
2.209
  • Shadowrun Returns
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • BATTLETECH
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: No Step Back
  • Stellaris: Galaxy Edition
  • Deus Vult
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Majesty 2
  • Europa Universalis III Complete
  • Semper Fi
  • Supreme Ruler 2020
  • 500k Club
  • Hearts of Iron II: Beta
  • Stellaris
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
Micah Goodman 2 said:
That did it thanks for your help.
Ok, that means that your description was too long...
You can try entering a shorter description. IIRC you are limited to 255 characters.
OR, you can add the event name and event description to any of the *_text.csv files in the config folder.
 

Tegetthoff

General
14 Badges
Apr 14, 2006
2.101
4
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • For the Motherland
  • Hearts of Iron III
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Rise of Prussia
  • Mount & Blade: Warband
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Imperator: Rome - Magna Graecia
xtfoster said:
Ok, that means that your description was too long...
You can try entering a shorter description. IIRC you are limited to 255 characters.
OR, you can add the event name and event description to any of the *_text.csv files in the config folder.

Can any body confirm my suspicion that the event decription can be more than 255 characters in the *_text.csv while being limited to 255 characters in the event file?
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
I have used considerably longer descriptions than 255 characters without any problems.
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • 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
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • 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: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • 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 IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
Is there a way to modify the production value of escort carriers as well as convoys?

##############################################################
### Henry Kaiser and the Liberty Ships
### By Micah Goodman
##############################################################

event = {
id = 77710
random = no
country = usa

trigger = {
local_flag = Merchant_Marine
}

name = "Henry J. Kaiser Builds Liberty Ships"
desc = "Henry J. Kaiser revolutionized ship building in America. The Kaiser Shipyard in Richmond California built 27 percent of all shipping authorized under the Maritime Commission. He averaged one cargo ship every thirty days. He also provided the hulls for the Casablanca class escort carriers. This helped in the production of over 100 escort carriers built by the US during World War 2."
style = 0
picture = "hsk_atlantis"
date = { day = 10 month = august year 1942 }

action_a = {
command = { type = convoy_prod_mod which = transports value = 10 }
}
}