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

unmerged(63439)

Recruit
Dec 10, 2006
6
0
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)
 
Last edited:

CSABadass

DV Mod Maker
48 Badges
Jan 16, 2003
4.352
188
forum.paradoxplaza.com
  • Europa Universalis IV: Dharma Pre-order
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Empire of Sin
  • Empire of Sin - Premium Edition
  • Victoria 3 Sign Up
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Heir to the Throne
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron II: Armageddon
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
ComradeWIll said:
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

You need a } at the end of this command.
 

CSABadass

DV Mod Maker
48 Badges
Jan 16, 2003
4.352
188
forum.paradoxplaza.com
  • Europa Universalis IV: Dharma Pre-order
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Empire of Sin
  • Empire of Sin - Premium Edition
  • Victoria 3 Sign Up
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Heir to the Throne
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron II: Armageddon
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
ComradeWIll said:
Thanks, but it still isn't working, still getting the same error message.

Have you tried shortening the event descriptions? The HoI engine is *very* picky about length/formatting. It's hard to tell from a repost, but you may just have more characters (or a different style) than HoI feels like dealing with.
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
Some of the quotation marks appear not to be standard " but rather some other sort, which look similar to the human eye but have a different value.