"_fas"
Really? How delightful!On the contrary.
Defining a flag by command (or in AI/scenario files if you need that flag to be set on scenario start) is all that you need to create it![]()
#############################################################
# Events for Germany adding cores in Poland; two phases.
#############################################################
# 80400 - Fate of Poland (creation of the General Government)
# 80401 - Expansion of the General Government (adding occupied Soviet provinces to the General Government)
# 80500 - Integration of the General Government
# 80501 - Integration of the Expanded General Government
#
#
#
#
###################################################################
# EVENT 80400 - Fate of Poland (creation of the General Government)
###################################################################
event = {
id = 80400
random = no
country = GER
style = 2
save_date = yes
trigger = {
NOT = {
core = { province = 232 data = GER }
exists = POL
flag = GERintegrate
}
owned = { province = 232 data = GER }
control = { province = 232 data = GER }
}
name = "Fate of Poland"
desc = "With Poland crushed, it is time to decide what to do with it."
picture = "congresspoland"
date = { day = 1 month = january year = 1933 }
offset = 100
deathdate = { day = 1 month = january year = 1960 }
action_a = {
ai_chance = 1
name = "Restore independent Poland!"
command = { type = belligerence value = -20 }
command = { type = removeclaim which = 231 }#Wloclawek
command = { type = removeclaim which = 227 }#Czestochowa
command = { type = removeclaim which = 229 }#Ostroleka
command = { type = removeclaim which = 232 }#Warsaw
command = { type = removeclaim which = 223 }#Lodz
command = { type = removeclaim which = 234 }#Radom #Just in case GER has claimed these (human only)
command = { type = removeclaim which = 233 }#Sosnowiec
command = { type = removeclaim which = 237 }#Tarnow
command = { type = removeclaim which = 228 }#Siedlce
command = { type = removeclaim which = 243 }#Lublin
command = { type = removeclaim which = 235 }#Krakow
command = { type = removeclaim which = 236 }#Nowy Sacz
command = { type = removeclaim which = 246 }#Chelm
command = { type = addclaim which = 252 }#Suwalki
command = { type = addclaim which = 254 }#Bialystok #Does POL released by GER get these as cores? If yes, and the M-R treaty is not signed, this is necesarry so POL doesn't recieve them.
command = { type = addclaim which = 250 }#Lomza
command = { type = addclaim which = 253 }#Slonim
command = { type = addclaim which = 239 }#Premyzl
command = { type = independence which = POL value = 1 when = 0 }
command = { type = make_puppet which = POL }
command = { type = secedeprovince which = POL value = 231 }#Wloclawek
command = { type = secedeprovince which = POL value = 227 }#Czestochowa
command = { type = secedeprovince which = POL value = 229 }#Ostroleka
command = { type = secedeprovince which = POL value = 232 }#Warsaw
command = { type = secedeprovince which = POL value = 223 }#Lodz
command = { type = secedeprovince which = POL value = 234 }#Radom
command = { type = secedeprovince which = POL value = 233 }#Sosnowiec
command = { type = secedeprovince which = POL value = 237 }#Tarnow
command = { type = secedeprovince which = POL value = 228 }#Siedlce
command = { type = secedeprovince which = POL value = 243 }#Lublin
command = { type = secedeprovince which = POL value = 235 }#Krakow
command = { type = secedeprovince which = POL value = 236 }#Nowy Sacz
command = { type = secedeprovince which = POL value = 246 }#Chelm
command = { type = sleepevent which = 80500 }
}
action_b = {
ai_chance = 99
name = "Create the General Government and integrate them!"
command = { type = belligerence value = 5 }
command = { type = addclaim which = 231 }#Wloclawek
command = { type = addclaim which = 227 }#Czestochowa
command = { type = addclaim which = 229 }#Ostroleka
command = { type = addclaim which = 232 }#Warsaw
command = { type = addclaim which = 223 }#Lodz
command = { type = addclaim which = 234 }#Radom
command = { type = addclaim which = 233 }#Sosnowiec
command = { type = addclaim which = 237 }#Tarnow
command = { type = addclaim which = 228 }#Siedlce
command = { type = addclaim which = 243 }#Lublin
command = { type = addclaim which = 235 }#Krakow
command = { type = addclaim which = 236 }#Nowy Sacz
command = { type = addclaim which = 252 }#Suwalki
command = { type = addclaim which = 246 }#Chelm
command = { type = dissent value = -5 }
command = { type = local_setflag which = GERintegrate }
}
action = {
ai_chance = 0
name = "Continue with military occupation !"
command = { type = belligerence value = 5 }
command = { type = dissent value = 5 }
}
}
###################################################################
# EVENT 80500 - INTEGRATION OF THE GENERAL GOVERNMENT
###################################################################
event = {
id = 80500
random = no
save_date = yes
country = GER
style = 2
trigger = {
NOT = { core = { province = 232 data = GER }}
event = { id = 80400 days = 720 } #2 years because I can't bother waiting longer
NOT = {
exists = POL
}
owned = { province = 232 data = GER }#Warsaw
owned = { province = 230 data = GER }#Plock
owned = { province = 231 data = GER }#Wloclawek
owned = { province = 223 data = GER }#Lodz
owned = { province = 227 data = GER }#Czestochowa
owned = { province = 233 data = GER }#Sosnowiec
owned = { province = 235 data = GER }#Krakow
owned = { province = 236 data = GER }#Nowy Sacz
owned = { province = 237 data = GER }#Tarnow
owned = { province = 234 data = GER }#Radom
owned = { province = 228 data = GER }#Siedlce
owned = { province = 229 data = GER }#Ostroleka
owned = { province = 243 data = GER }#Lublin
owned = { province = 226 data = GER }#Chelm
owned = { province = 252 data = GER }#Suwalki
#Obviously, you still need to own and control them.
control = { province = 232 data = GER }#Warsaw
control = { province = 230 data = GER }#Plock
control = { province = 231 data = GER }#Wloclawek
control = { province = 223 data = GER }#Lodz
control = { province = 227 data = GER }#Czestochowa
control = { province = 233 data = GER }#Sosnowiec
control = { province = 235 data = GER }#Krakow
control = { province = 236 data = GER }#Nowy Sacz
control = { province = 237 data = GER }#Tarnow
control = { province = 234 data = GER }#Radom
control = { province = 228 data = GER }#Siedlce
control = { province = 229 data = GER }#Ostroleka
control = { province = 243 data = GER }#Lublin
control = { province = 226 data = GER }#Chelm
control = { province = 252 data = GER }#Suwalki
}
name = "Integration of the General Government"
desc = "The General Government is now considered an integral part of our nation."
picture = "constitutional"
action_a = {
name = "Great!"
ai_chance = 90
command = { type = dissent value = -3 }
command = { type = addcore which = 231 } #Wloclawek
command = { type = addcore which = 230 } #Plock
command = { type = addcore which = 229 } #Ostroleka
command = { type = addcore which = 232 } #Warsaw
command = { type = addcore which = 223 } #Lodz
command = { type = addcore which = 227 } #Czestochowa
command = { type = addcore which = 233 } #Sosnowiec
command = { type = addcore which = 235 } #Krakow
command = { type = addcore which = 234 } #Radom
command = { type = addcore which = 228 } #Siedlce
command = { type = addcore which = 236 } #Nowy Sacz
command = { type = addcore which = 243 } #Lublin
command = { type = addcore which = 237 } #Tarnow
command = { type = addcore which = 252 } #Suwalki
command = { type = addcore which = 246 } #Chelm
# command = { type = addcore which = 239 } #Premyzl
}
action_b = {
name = "It's not the right time yet!"
ai_chance = 10
command = { } #Since it is slightly ahistorical, I feel this is necessary to create a certain tense
}
}
###################################################################
# EVENT 80401 - EXPANSION OF THE GENERAL GOVERNMENT
###################################################################
event = {
id = 80401
random = no
save_date = yes
country = GER
style = 2
trigger = {
NOT = {
core = { province = 254 data = GER }
exists = POL
}
war = { country = GER country = SOV }
control = { province = 252 data = GER }#Suwalki
control = { province = 254 data = GER }#Bialystok
control = { province = 250 data = GER }#Lomza
control = { province = 253 data = GER }#Slonim
control = { province = 239 data = GER }#Premyzl
control = { province = 242 data = GER }#Lwow
control = { province = 241 data = GER }#Stryj
control = { province = 240 data = GER }#Tarnopol
control = { province = 238 data = GER }#Stanislawow
}
name = "Expansion of the General Government"
desc = "With these provinces under our control, we are ready to expand the General Government."
picture = "congresspoland"
date = { day = 1 month = january year = 1933 }
offset = 100
deathdate = { day = 1 month = january year = 1960 }
action_a = {
ai_chance = 90
name = "Very well"
command = { type = addclaim which = 254 }#Bialystok
command = { type = addclaim which = 250 }#Lomza
command = { type = addclaim which = 253 }#Slonim
command = { type = addclaim which = 239 }#Premyzl
command = { type = addclaim which = 242 }#Lwow
command = { type = addclaim which = 241 }#Stryj
command = { type = addclaim which = 240 }#Tarnopol
command = { type = addclaim which = 238 }#Stanislawow
command = { type = local_setflag which = GERintegrate2 }
command = { type = belligerence value = 10 }
}
action_b = {
ai_chance = 10
name = "No! We will not expand the Greater German Reich to include these lands!"
command = { type = belligerence value = -10 }
command = { type = sleepevent which = 80501 }
}
}
###################################################################
# EVENT 80501 - INTEGRATION OF THE EXPANDED GENERAL GOVERNMENT
###################################################################
event = {
id = 80501
random = no
country = GER
style = 2
trigger = {
NOT = {
core = { province = 254 data = GER }
}
event = { id = 80400 days = 720 } #2 years because I can't bother to wait longer.
flag = { GERintegrate2 }
NOT = { exists = POL }
OR = {
control = { province = 254 data = GER }#Bialystok
control = { province = 250 data = GER }#Lomza
control = { province = 253 data = GER }#Slonim
control = { province = 239 data = GER }#Premyzl
control = { province = 242 data = GER }#Lwow #Controlling just one should be enough, in case Romania or Hungary control some of them.
control = { province = 241 data = GER }#Stryj
control = { province = 240 data = GER }#Tarnopol
control = { province = 238 data = GER }#Stanislawow
}
}
name = "Integration of the expanded General Government"
desc = "The additional parts of the General Government are now considered an integral part of our nation."
picture = "constitutional"
action_a = {
name = "Great!"
ai_chance = 90
command = { type = dissent value = -3 }
command = { type = addcore which = 254 } #Bialystok
command = { type = addcore which = 250 } #Lomza
command = { type = addcore which = 253 } #Slonim
command = { type = addcore which = 239 } #Premyzl
command = { type = addcore which = 242 } #Lwow
command = { type = addcore which = 241 } #Stryj
command = { type = addcore which = 240 } #Tarnopol
command = { type = addcore which = 238 } #Stanislawow
}
action_b = {
name = "It's not the right time yet!"
ai_chance = 10
command = { } #Since it is slightly ahistorical, I feel this is necessary to create a certain tense
}
}
and change it to:0 # Extra debug logs (savedebug.txt): 0 = disabled, 1 = enabled, 2 = enabled + extra map statistics
Start the scenario. If it crashes go and open savedebug.txt - there should be some clues inside on what the problem is.2 # Extra debug logs (savedebug.txt): 0 = disabled, 1 = enabled, 2 = enabled + extra map statistics
Then maybe there's a lack of ";" in the CSV file.The only errors listed there are missing translations that have got to do with the communist Germany mod.... :/
I can see what's supposedly wrong, but why on earth do I encounter this error now, and not before?
Ahh, okay, I see.You see that error now, because you enabled the extra debug checks (settings.cfg).
command = { type = free_rare_materials value = 250 }
The command for off-map rare material production is "free_rare_materials". For example:
Code:command = { type = free_rare_materials value = 250 }
EVT4_NAME;Construction begins on the Golden Gate Bridge;;;Inicia construcción del Puente Golden Gate;;;;;;X
EVT4_DESC;On January 5, 1933, construction begins on the Golden Gate Bridge, as workers began excavating 3.25 million cubic feet of dirt for the structure’s huge anchorages.\nAlthough the idea for a Bridge went back as far as 1869, the proposal took root in 1916. A former engineering student, James Wilkins, working as a journalist with the San Francisco Bulletin, called for a suspension bridge with a center span of 3,000 feet, nearly twice the length of any in existence. Wilkins’ idea was estimated to cost an astounding 100 million dollers. So, San Francisco's city engineer, Michael M. O'Shaughnessy who was credited for coming up with the name Golden Gate Bridge, began asking bridge engineers whether they could do it for less.\nEngineer and poet Joseph Strauss, a 5-foot tall Cincinnati-born Chicagoan, said he could. Eventually, O'Shaughnessy and Strauss concluded they could build a pure suspension bridge within a practical range of 25-30 million dollers with a main span at least 4,000 feet. The construction plan still faced opposition, including litigation, from many sources. By the time most of the obstacles were cleared, the Great Depression of 1929 had begun, limiting financing options, so officials convinced voters to support 35 million dollers in bonded indebtedness, citing the jobs that would be created for the project. However, the bonds couldn’t be sold until 1932, when San-Francisco based Bank of America agreed to buy the entire project in order to help the local economy.;;;;;;;;;X
################################################## #######################
# Construction begins on the Golden Gate Bridge
#@ 1933-1-05
################################################## #######################
event = {
id = 4
random = no
country = USA
one_action = yes
name = EVT4_NAME
desc = EVT4_DESC
style = 2
picture = "Construction begins on the Golden Gate Bridge"
date = { day = 5 month = January year = 1933 }
action = {
name = "This bridge well be built!"
command = { type = dissent value = -3 }
}
}