So, I've written this event for the Kaiserreich mod, just for a bit of fun (it is the first modded event I have tried to create), but the damned thing refuses to work- when I try to load the game I get an error message saying "unknown lhs in game-event" error, and a line reference (to the bit near the top where it says "ai_chance = 95"). Can one of you chaps tell me what I am doing wrong? As I say, it is my first event, so any helpful pointers are helpful. Thanks.
#########################################################################
# Ottoman Surrender
#########################################################################
event = {
id = 90914
random = no
country = GRE
trigger = {
control = { province = 448 data = GRE }
control = { province = 409 data = GRE }
control = { province = 437 data = GRE }
control = { province = 408 data = GRE }
control = { province = 405 data = GRE }
control = { province = 399 data = GRE }
lost_national = { country = OTT value = 30 }
}
name = "The Turks are on the brink of defeat!"
desc = "The Greek cities of the Western seaboard of Asia Minor have been retaken by Greek arms; is it time to mediate an end to this war?”
style = 0
picture = "greek_soldiers”
action_a = {
ai_chance = 95
name = " Let the Turks know our terms”
command = { type = trigger which = 90915 }
command = { type = relation which = OTT value = 10 }
command = { type = relation which = GER value = -100 } ##Germany worried by collapse of Eastern partner
}
action_b = {
ai_chance = 5
name = "We shall destroy the Ottoman state in its entirety”
command = { type = relation which = AUS value = -50 }
command = { type = relation which = GER value = -200 } ##Germany worried by collapse of Eastern partner
command = { type = domestic which = interventionism value = 1 }
}
}
event = {
id = 90915
random = no
country = OTT
name = "Time to surrender?"
desc = "The Western coast of Anatolia has been seized by the Greeks, who are rapidly advancing inland. Should we surrender and save what we can while we still can?”
style = 0
picture = "greek_soldiers"
action_a = {
name = "Soldiers, we shall return to the Aegean and take back what is ours, just not yet"
ai_chance = 90
command = { type = trigger which = 90917 }
command = { type = capital which = 448}
command = { type = secedeprovince which = GRE value = 409 }
command = { type = secedeprovince which = GRE value = 408 }
command = { type = secedeprovince which = GRE value = 405 }
command = { type = secedeprovince which = GRE value = 437 }
command = { type = secedeprovince which = GRE value = 398 }
command = { type = secedeprovince which = GRE value = 399 }
command = { type = secedeprovince which = GRE value = 444 }
}
action_b = {
name = "We shall retake what is ours by force of arms!”
ai_chance = 10
command = { type = trigger which = 90916 }
}
}
event = {
id = 90916
random = no
country = GRE
name = "The Turks are Suicidal!"
desc = "The Sultan is organising his soldiers for further resistance to our victorious armies further inland”
style = 0
picture = "greek_soldiers"
action_a = {
name = "They will have to pay!"
command = { type = dissent value = 5 }
command = { type = domestic which = interventionism value = 1 }
}
}
event = {
id = 90917
random = no
country = GRE
name = "The Sultan Accept!"
desc = "The Turks folds to our demands!"
style = 0
picture = "greek_soldiers"
action_a = {
name = "Byzantium reborn!”
command = { type = peace which = MON value = 0 }
command = { type = dissent value = -10 }
}
}
(Edited for suggested change, still not working)
#########################################################################
# Ottoman Surrender
#########################################################################
event = {
id = 90914
random = no
country = GRE
trigger = {
control = { province = 448 data = GRE }
control = { province = 409 data = GRE }
control = { province = 437 data = GRE }
control = { province = 408 data = GRE }
control = { province = 405 data = GRE }
control = { province = 399 data = GRE }
lost_national = { country = OTT value = 30 }
}
name = "The Turks are on the brink of defeat!"
desc = "The Greek cities of the Western seaboard of Asia Minor have been retaken by Greek arms; is it time to mediate an end to this war?”
style = 0
picture = "greek_soldiers”
action_a = {
ai_chance = 95
name = " Let the Turks know our terms”
command = { type = trigger which = 90915 }
command = { type = relation which = OTT value = 10 }
command = { type = relation which = GER value = -100 } ##Germany worried by collapse of Eastern partner
}
action_b = {
ai_chance = 5
name = "We shall destroy the Ottoman state in its entirety”
command = { type = relation which = AUS value = -50 }
command = { type = relation which = GER value = -200 } ##Germany worried by collapse of Eastern partner
command = { type = domestic which = interventionism value = 1 }
}
}
event = {
id = 90915
random = no
country = OTT
name = "Time to surrender?"
desc = "The Western coast of Anatolia has been seized by the Greeks, who are rapidly advancing inland. Should we surrender and save what we can while we still can?”
style = 0
picture = "greek_soldiers"
action_a = {
name = "Soldiers, we shall return to the Aegean and take back what is ours, just not yet"
ai_chance = 90
command = { type = trigger which = 90917 }
command = { type = capital which = 448}
command = { type = secedeprovince which = GRE value = 409 }
command = { type = secedeprovince which = GRE value = 408 }
command = { type = secedeprovince which = GRE value = 405 }
command = { type = secedeprovince which = GRE value = 437 }
command = { type = secedeprovince which = GRE value = 398 }
command = { type = secedeprovince which = GRE value = 399 }
command = { type = secedeprovince which = GRE value = 444 }
}
action_b = {
name = "We shall retake what is ours by force of arms!”
ai_chance = 10
command = { type = trigger which = 90916 }
}
}
event = {
id = 90916
random = no
country = GRE
name = "The Turks are Suicidal!"
desc = "The Sultan is organising his soldiers for further resistance to our victorious armies further inland”
style = 0
picture = "greek_soldiers"
action_a = {
name = "They will have to pay!"
command = { type = dissent value = 5 }
command = { type = domestic which = interventionism value = 1 }
}
}
event = {
id = 90917
random = no
country = GRE
name = "The Sultan Accept!"
desc = "The Turks folds to our demands!"
style = 0
picture = "greek_soldiers"
action_a = {
name = "Byzantium reborn!”
command = { type = peace which = MON value = 0 }
command = { type = dissent value = -10 }
}
}
(Edited for suggested change, still not working)
Last edited: