Every time I do this event file, I get an error. This version here dosn't have the changes I made to it, but it's mostly the ones with the trigger conditions. I changed them to have the trigger = { stuff in it, but generally, can somebody just debug this for me and fix it so it'll all work? There are apparently errors all over it...
The one thing I noticed is it only gives the first option in the event, I'm not sure if it's with every one but mostly the first one.
Thanks!
The one thing I noticed is it only gives the first option in the event, I'm not sure if it's with every one but mostly the first one.
Code:
#
# Balkan War Events
# by Morgan Brikiin
#
###############################################
###############################################
# First Event
###############################################
event = {
id = 9900
random = no
country = YUG
date = { day = 10 month = january year = 1936 }
deathdate = { day = 12 month = january year = 1936 }
name = "Brikarjik's Revolution"
desc = "The governments of Yugoslavia and Bulgaria are now in exile. The nation now rightfully belongs to the people! Vladimir Brikarjik is now the first president of the new glorious nation! There are more pressing issues though - we are surrounded to the north by the fascist powers of Austria, Italy, and Hungary. The capital of Ljubljana would be in great peril in the event of an invasion from one of these nations. We should move the capital to Belgrade...should we?"
style = 0
picture = constitutional
action_a = {
name = "Yes, move the capital to Belgrade"
ai_chance = 80
command = { type = capital which = 453 }
command = { type = relation which = ITA value = -30 }
command = { type = relation which = AUS value = -40 }
action_b = {
name = "No, Ljubljana is fine"
ai_chance = 20
}
}
###############################################
# Romanian Relations
###############################################
event = {
id = 9901
random = no
country = ROM
date = { day = 5 month = april year = 1936 }
deathdate = { day = 10 month = june year = 1936 }
name = "The Yugoslav Union"
desc = "Our new neighbor, the Yugoslav Union, has gained stability after years of fighting Yugoslavia and Bulgaria. Their president, Vladimir Brikarjik, has promised to defend our nation against the forces of Fascism. We have not yet decided if we should formally recognize their government - should we?"
style = 0
picture = yugoslavunion
action_a = {
name = "Yes, let us persue good relations with the Yugoslav Union"
ai_chance = 99
command = { type = set_relation which = YUG value = 150 }
command = { type = trigger which = 9902 }
action_b = {
name = "No"
ai_chance = 1
command = { type = set_relation which = YUG value = -60 }
}
}
event = {
id = 9902
random = no
country = YUG
name = "Romania"
desc = "Romania has formally recognized our right to own the South Slavic lands. It would be in our best interests to persue diplomatic relations with them, wouldn't you agree?"
style = 0
picture = E_Poland_Sov
action_a = {
name = "Sure"
ai_chance = 90
command = { type = trigger which = 9903 }
command = { type = relation which = ROM value = 50 }
action_b = {
name = "No, we don't need any vampires"
ai_chance = 10
}
}
event = {
id = 9903
random = no
country = YUG
name = "Romanian Relations"
desc = "President Vladimir Brikarjik has travelled to Bucharest to meet with the Romanian president, to discuss further relations between the two nations. Among some of the agreements, we have obtained a military alliance with them, and we have guaranteed eachother's independence. Diplomatic relations may go on eventually, but for now the President is back in the capital."
style = 0
picture = yugoslav_romania
action_a = {
ai_chance = 100
command = { type = alliance which = ROM }
command = { type = guarantee which = YUG where = ROM }
command = { type = guarantee which = ROM where = YUG }
}
}
###############################################
# Italy
###############################################
event = {
id = 9904
random = no
country = YUG
name = "The Italian Agression"
desc = "Italy has demanded the annexation of Albania - we will not tolerate this! The Albanians have requested help in defense against the Italians, and many Albanians have already began emigrating to the Yugoslav Union. Congress is considering taking control of Albania to defend them from the Italians, although this may be too urgent for congress to take it's time. What should we do?"
style = 0
picture = Albania
action_a = {
name = "Integrate them into the Union"
ai_chance = 78
command = { type = inherit which = ALB }
command = { type = relation which = ITA value = -50 }
command = { type = war which = ITA }
action_b = {
name = "Declare War! The Roman Empire will not return to rape the earth"
ai_chance = 22
command = { type = war which = ITA }
command = { type = alliance which = ALB }
}
}
event = {
id = 9905
random = no
country = YUG
war = { country = YUG country = ITA }
AND
control = { province = 378 data = YUG }
control = { province = 371 data = YUG }
control = { province = 370 data = YUG }
OR
control = { province = 524 data = YUG }
control = { province = 523 data = YUG }
OR
control = { province = 517 data = YUG }
control = { province = 520 data = YUG }
control = { province = 518 data = YUG }
OR
control = { province = 534 data = YUG }
control = { province = 525 data = YUG }
control = { province = 526 data = YUG }
name = "Yugoslav-Italian War"
desc = "The forces of the Yugoslav Union are advancing quickly on the Italian Penninsula. We have offered to meet them for discussion of a peace agreement. What should we demand, if anything?"
style = 0
picture = italy_surrenders
action_a = {
name = "Demand the terretory of Libya and the independence of Ethiopia"
ai_chance = 60
command = { type = trigger which = 9906 }
action_b = {
name = "Demand their northern industrial provinces and a democratic government"
ai_chance = 30
command = { type = trigger which = 9907 }
action_c = {
name = "No negotiations! Freedom for the Italian people!"
ai_chance = 10
}
}
event = {
id = 9906
random = no
country = ITA
name = The Yugoslav Demands"
desc = "The Yugoslav Union demands our terretories in Libya and the independence of Ethiopia in return for peace. Should we give in to their demands, or shall we keep on fighting those stupid Slavs?"
style = 0
picture = politics2
action_a = {
name = "Give in to the demands"
ai_chance = 90
command = { type = secedeprovince which = YUG value = 933 }
command = { type = secedeprovince which = YUG value = 932 }
command = { type = secedeprovince which = YUG value = 931 }
command = { type = secedeprovince which = YUG value = 930 }
command = { type = secedeprovince which = YUG value = 929 }
command = { type = secedeprovince which = YUG value = 928 }
command = { type = secedeprovince which = YUG value = 927 }
command = { type = secedeprovince which = YUG value = 925 }
command = { type = secedeprovince which = YUG value = 924 }
command = { type = secedeprovince which = YUG value = 926 }
command = { type = secedeprovince which = YUG value = 923 }
command = { type = secedeprovince which = YUG value = 920 }
command = { type = secedeprovince which = YUG value = 919 }
command = { type = secedeprovince which = YUG value = 921 }
command = { type = secedeprovince which = YUG value = 922 }
command = { type = secedeprovince which = YUG value = 916 }
command = { type = secedeprovince which = YUG value = 917 }
command = { type = secedeprovince which = YUG value = 918 }
command = { type = secedeprovince which = YUG value = 1015 }
command = { type = secedeprovince which = YUG value = 1016 }
command = { type = secedeprovince which = YUG value = 1017 }
command = { type = secedeprovince which = YUG value = 1018 }
command = { type = independence which = ETH value = 1 when = 1 }
command = { type = peace which = YUG value = 0 }
action_b = {
name = "Never surrender!"
ai_chance = 10
}
}
event = {
id = 9907
random = no
country = ITA
name = "The Yugoslav Demands"
desc = "The Yugoslav Union has demanded that we secede the provinces of Venice, Trento, Milan, Turin, and Genoa, and that the government steps down and allows free democratic elections, under the supervision of the Yugoslav Union. Benito Mussolini will be able to step down peacefully, as apposed to being 'Brought before the oppressed people of Italy" as Vladimir Brikarjik put it. How shall we respond to these demands?"
style = 0
picture = defence
action_a = {
name = "Give in - we're sure to lose against the YU and Romania"
ai_chance = 80
command = { type = secedeprovince which = YUG value = 378 }
command = { type = secedeprovince which = YUG value = 371 }
command = { type = secedeprovince which = YUG value = 370 }
command = { type = secedeprovince which = YUG value = 368 }
command = { type = make_puppet which = ITA }
command = { peace which = YUG value = 0 }
action_b = {
name = "Tell President Brikarjik to go fuck a lasagne"
ai_chance = 20
}
}
###############################################
# Flavor
###############################################
event = {
id = 9908
random = no
country = YUG
ispuppet = ITA
name = "Albania"
desc = "Now that Italy has been defeated, a pressing issue before Congress is if we should give Albania it's independence back. It's up to you in the end - shall we liberate Albania, or should we just keep their provinces for the greater good of Democracy and Pluralism?"
style = 0
picture = alb
action_a = {
name = "Give them their country back"
ai_chance = 90
command = { type = independence which = ALB value = 1 when = 1
action_b = {
name = "Yeah yeah democracy pluralism yeah..."
ai_chance = 10
}
}
event = {
id = 9909
random = no
country = YUG
date = { day = 24 month = december year = 1937 }
deathdate = { day = 10 month = march year = 1938 }
name = "Women's Suffrage"
desc = "There are movements for women's rights in the Union. Vladimir Brikarjik himself is very focussed on this, seeing it in the sense that a true democracy must have equal rights for men and women. Most of the conservatives in congress oppose this idea, mostly due to the idea that women in congress would hypothetically be more liberal."
style = 0
picture = women_labour
action_a = {
name = "Give them the right to vote and other basic civil rights!"
ai_chance = 80
action_b = {
name = "Only give them the right to vote"
ai_chance = 10
command = { type = belligerence which = YUG value = 2 }
action_c = {
name = "No, I'm a man dammit!"
command = { type = belligerence which = YUG value = 5 }
}
}
event = {
id = 9910
random = no
country = YUG
date = { day = 5 month = february year = 1940 }
deathdate = { day = 10 month = february year = 1940 }
name = "Election '40"
desc = "It is now February, and Vladimir Brikarjik has announced that he will not run for re-election. Several parties have come forward as popular in the polls. The Communist party is lead by Krsto Žganec, and promises greater benifits for workers in the Yugoslav Union, while simultaneously avoiding the same mistake the Bolshaviks made, which caused the regime in the Soviet Union. The Union Party, led by Brikarjik's niece, Sarajevo Brikarjik, promises to continue the current political adgenda of persuing good relations with our neighboors. The Democratic party, led by Petar Zivic, also hopes to persue democracy in Europe, but with force in necessary."
style = 0
picture = election
action_a = {
name = "Go Communist"
ai_chance = 40
command = { type = headofstate = 10011 }
command = { type = headofgovernment = 10017 }
command = { type = foreignminister = 10023 }
command = { type = armamentminister = 10029 }
command = { type = ministerofsecurity = 10035 }
command = { type = ministerofintelligence = 10041 }
command = { type = chiefofstaff = 10047 }
command = { type = chiefofarmy = 10052 }
command = { type = chiefofnavy = 10060 }
command = { type = chiefofair = 10066 }
command = { type = domestic which = free_market value = 3 }
action_b = {
name = "Go Unionist"
ai_chance = 40
command = { type = headofstate = 10010 }
command = { type = headofgovernment = 10016 }
command = { type = foreignminister = 10022 }
command = { type = armamentminister = 10028 }
command = { type = ministerofsecurity = 10034 }
command = { type = ministerofintelligence = 10040 }
command = { type = chiefofstaff = 10046 }
command = { type = chiefofarmy = 10052 }
command = { type = chiefofnavy = 10058 }
command = { type = chiefofair = 10064 }
action_c = {
name = "Go Democratic"
ai_chance = 20
command = { type = headofstate = 10012 }
command = { type = headofgovernment = 10018 }
command = { type = foreignminister = 10024 }
command = { type = armamentminister = 10030 }
command = { type = ministerofsecurity = 10036 }
command = { type = ministerofintelligence = 10042 }
command = { type = chiefofstaff = 10048 }
command = { type = chiefofarmy = 10054 }
command = { type = chiefofnavy = 10060 }
command = { type = chiefofair = 10066 }
Thanks!