Hay.
So, I have two problems with a little chain of events, it's supposed to launch an event in which Kazakhstan asks for Afghanistan, Kyrgyzstan, Tajikistan, Turkmenistan and Uzbekistan to join under Kazakhstan's rule, and if not, declares war on the countries which refused.
First, I had a problem with one of Kyrgyzstan's event, the game would announce me there was an " ERROR: unknown lhs in game event ", quoting a part of line 8271 (and the number of the line) " command = { type = inherit which = KYR } ", mentioning a problem with the which or its value... [This one's fix'd... :> ]
And, about the second problem, it's that whenever they accept the annexation (or maybe not, I don't know), the game crashes. I tried it several times, it always crashes before I can react to anything and I just have messages pop-up... But, the first time I tried it, I could see that Tajikistan ... annexed itself.
[This one still happens. Games crash.]
So, here's the event chain :
Thanks for the help. :>
EDIT = Attached savegame with the concerned countries.
View attachment 24720
So, I have two problems with a little chain of events, it's supposed to launch an event in which Kazakhstan asks for Afghanistan, Kyrgyzstan, Tajikistan, Turkmenistan and Uzbekistan to join under Kazakhstan's rule, and if not, declares war on the countries which refused.
First, I had a problem with one of Kyrgyzstan's event, the game would announce me there was an " ERROR: unknown lhs in game event ", quoting a part of line 8271 (and the number of the line) " command = { type = inherit which = KYR } ", mentioning a problem with the which or its value... [This one's fix'd... :> ]
And, about the second problem, it's that whenever they accept the annexation (or maybe not, I don't know), the game crashes. I tried it several times, it always crashes before I can react to anything and I just have messages pop-up... But, the first time I tried it, I could see that Tajikistan ... annexed itself.
[This one still happens. Games crash.]
So, here's the event chain :
Code:
####################################################################
###Kazakhstan claims the -stan
####################################################################
event = {
id = 9500
random = no
country = KZA
style = 0
name = "Kazakhstan claims the -stan"
desc = "After a year, Kazakhstan proved to be the strongesdt of the -stan, both militarly and economically, and though already protecting its little brothers via an alliance, Kazakhstan officials proposed that the other -stan become part of Kazakhstan, inviting Afghanistan too."
picture = "great_patriotic_war"
action_a = {
name = "Let's do it !"
command = { type = addcore which = 1486 } #Afghanistan
command = { type = addcore which = 1493 }
command = { type = addcore which = 1492 }
command = { type = addcore which = 1484 }
command = { type = addcore which = 1485 } #Kyrgyzstan
command = { type = addcore which = 1428 } #Tajikistan
command = { type = addcore which = 1429 }
command = { type = addcore which = 1490 } #Turkmenistan
command = { type = addcore which = 1491 }
command = { type = addcore which = 1584 } #Uzbekistan
command = { type = addcore which = 1585 }
command = { type = addcore which = 1489 }
command = { type = addcore which = 1487 }
command = { type = addcore which = 1427 }
command = { type = addcore which = 1488 }
command = { type = trigger which = 9501 } #Afghanistan's answer
command = { type = trigger which = 9502 } #Kyrgyzstan's answer
command = { type = trigger which = 9503 } #Tajikistan's answer
command = { type = trigger which = 9504 } #Turkmenistan's answer
command = { type = trigger which = 9505 } #Uzbekistan's answer
}
action_b = {
name = "Nevermind, let's do that later."
}
}
###Afghanistan's answer to Kazakh claims
event = {
id = 9501
random = no
country = AFG
style = 0
name = "Kazakhstan claims Afghanistan !"
desc = "Kazakhstan proposed us to give them our country, in exchange for protection for our people !"
picture = "great_patriotic_war"
action_a = {
name = "Afghanistan joins Kazakhstan !"
ai_chance = 95
command = { type = trigger which = 9506 } #Kazakhstan get "Yes" answer and inherit Afghanistan
}
action_b = {
name = "Afghanistan refuses to join Kazakhstan !"
ai_chance = 5
command = { type = trigger which = 9511 } #Kazakhsta gets "No" answer and gets a free war with Afghanistan
command = { type = end_guarantee which = ENG where = AFG }
command = { type = end_guarantee which = SOV where = AFG }
}
}
###Kyrgyzstan's answer to Kazakh claims
event = {
id = 9502
random = no
country = KYG
style = 0
name = "Kazakhstan claims Kyrgyzstan !"
desc = "Kazakhstan proposed us to give them our country, in exchange for protection for our people !"
picture = "great_patriotic_war"
action_a = {
name = "Kyrgyzstan joins Kazakhstan !"
ai_chance = 98
command = { type = leave_alliance } #Kyrgyzstan cancels its alliance with Kazakhstan
command = { type = trigger which = 9507 } #Kazakhstan get "Yes" answer and inherit Kyrgyzstan
}
action_b = {
name = "Kyrgyzstan refuses to join Kazakhstan !"
ai_chance = 2
command = { type = leave_alliance } #Kyrgyzstan cancels its alliance with Kazakhstan
command = { type = trigger which = 9512 } #Kazakhsta gets "No" answer and gets a free war with Kyrgyzstan
}
}
###Tajikistan's answer to Kazakh claims
event = {
id = 9503
random = no
country = TAJ
style = 0
name = "Kazakhstan claims Afghanistan !"
desc = "Kazakhstan proposed us to give them our country, in exchange for protection for our people !"
picture = "great_patriotic_war"
action_a = {
name = "Tajikistan joins Kazakhstan !"
ai_chance = 98
command = { type = leave_alliance } #Tajikistan cancels its alliance with Kazakhstan
command = { type = trigger which = 9508 } #Kazakhstan get "Yes" answer and inherit Tajikistan
}
action_b = {
name = "Tajikistan refuses to join Kazakhstan !"
ai_chance = 2
command = { type = leave_alliance } #Tajikistan cancels its alliance with Kazakhstan
command = { type = trigger which = 9513 } #Kazakhsta gets "No" answer and gets a free war with Tajikistan
}
}
###Turkmenistan's answer to Kazakh claims
event = {
id = 9504
random = no
country = TRK
style = 0
name = "Kazakhstan claims Turkmenistan !"
desc = "Kazakhstan proposed us to give them our country, in exchange for protection for our people !"
picture = "great_patriotic_war"
action_a = {
name = "Turkmenistan joins Kazakhstan !"
ai_chance = 98
command = { type = leave_alliance } #Turkmenistan cancels its alliance with Kazakhstan
command = { type = trigger which = 9509 } #Kazakhstan get "Yes" answer and inherit Turkmenistan
}
action_b = {
name = "Afghanistan refuses to join Kazakhstan !"
ai_chance = 2
command = { type = leave_alliance } #Turkmenistan cancels its alliance with Kazakhstan
command = { type = trigger which = 9514 } #Kazakhsta gets "No" answer and gets a free war with Turkmenistan
}
}
###Uzbekistan's answer to Kazakh claims
event = {
id = 9505
random = no
country = UZB
style = 0
name = "Kazakhstan claims Uzbekistan !"
desc = "Kazakhstan proposed us to give them our country, in exchange for protection for our people !"
picture = "great_patriotic_war"
action_a = {
name = "Uzbekistan joins Kazakhstan !"
ai_chance = 95
command = { type = leave_alliance } #Uzbekistan cancels its alliance with Kazakhstan
command = { type = trigger which = 9510 } #Kazakhstan get "Yes" answer and inherit Uzbekistan
}
action_b = {
name = "Uzbekistan refuses to join Kazakhstan !"
ai_chance = 5
command = { type = leave_alliance } #Uzbekistan cancels its alliance with Kazakhstan
command = { type = trigger which = 9515 } #Kazakhsta gets "No" answer and gets a free war with Uzbekistan
}
}
### Afghanistan said yes
event = {
id = 9506
random = no
country = KZA
style = 0
name = " Afghanistan accepted our irresistible proposition and joined our country !"
desc = " Afghanistan accepted ! Soon enough, we will have control of their country and will be able to manage it for the greater good of Glorious Enlarged Kazakhstan !"
action_a = {
name = "Ok, great !"
command = { type = inherit which = AFG }
command = { type = dissent value = -2 }
command = { type = manpowerpool value = 5 }
command = { type = supplies value = 500 }
command = { type = oilpool value = 100 }
command = { type = metalpool value = 1500 }
command = { type = energypool value = 2500 }
command = { type = rarematerialspool value = 500 }
command = { type = money value = 250 }
command = { type = belligerence value = -2 }
}
}
### Kyrgyzstan said yes
event = {
id = 9507
random = no
country = KZA
style = 0
name = " Kyrgyzstan accepted our irresistible proposition and joined our country !"
desc = " Kyrgyzstan accepted ! Soon enough, we will have control of their country and will be able to manage it for the greater good of Glorious Enlarged Kazakhstan !"
action_a = {
name = "Ok, great !"
command = { type = inherit which = KYG }
command = { type = dissent value = -2 }
command = { type = manpowerpool value = 2 }
command = { type = supplies value = 500 }
command = { type = oilpool value = 100 }
command = { type = metalpool value = 1500 }
command = { type = energypool value = 2500 }
command = { type = rarematerialspool value = 500 }
command = { type = money value = 250 }
command = { type = belligerence value = -2 }
}
}
### Tajikistan said yes
event = {
id = 9508
random = no
country = KZA
style = 0
name = " Tajikistan accepted our irresistible proposition and joined our country !"
desc = " Tajikistan accepted ! Soon enough, we will have control of their country and will be able to manage it for the greater good of Glorious Enlarged Kazakhstan !"
action_a = {
name = "Ok, great !"
command = { type = inherit which = TAJ }
command = { type = dissent value = -2 }
command = { type = manpowerpool value = 2 }
command = { type = supplies value = 500 }
command = { type = oilpool value = 100 }
command = { type = metalpool value = 1500 }
command = { type = energypool value = 2500 }
command = { type = rarematerialspool value = 500 }
command = { type = money value = 250 }
command = { type = belligerence value = -2 }
}
}
### Turkmenistan said yes
event = {
id = 9509
random = no
country = KZA
style = 0
name = " Turkmenistan accepted our irresistible proposition and joined our country !"
desc = " Turkmenistan accepted ! Soon enough, we will have control of their country and will be able to manage it for the greater good of Glorious Enlarged Kazakhstan !"
action_a = {
name = "Ok, great !"
command = { type = inherit which = TRK }
command = { type = dissent value = -2 }
command = { type = manpowerpool value = 2 }
command = { type = supplies value = 500 }
command = { type = oilpool value = 100 }
command = { type = metalpool value = 1500 }
command = { type = energypool value = 2500 }
command = { type = rarematerialspool value = 500 }
command = { type = money value = 250 }
command = { type = belligerence value = -2 }
}
}
### Uzbekistan said yes
event = {
id = 9510
random = no
country = KZA
style = 0
name = " Uzbekistan accepted our irresistible proposition and joined our country !"
desc = " Uzbekistan accepted ! Soon enough, we will have control of their country and will be able to manage it for the greater good of Glorious Enlarged Kazakhstan !"
action_a = {
name = "Ok, great !"
command = { type = inherit which = UZB}
command = { type = dissent value = -2 }
command = { type = manpowerpool value = 5 }
command = { type = supplies value = 500 }
command = { type = oilpool value = 100 }
command = { type = metalpool value = 1500 }
command = { type = energypool value = 2500 }
command = { type = rarematerialspool value = 500 }
command = { type = money value = 250 }
command = { type = belligerence value = -2 }
}
}
### Afghanistan said no
event = {
id = 9511
random = no
country = KZA
style = 0
name = " Afghanistan refused our proposal !"
desc = " Afghanistan refused to become part of a Glorious Enlarged Kazakhstan ! Immediate sanctions shall be taken."
action_a = {
name = "Their loss..."
command = { type = war which = AFG }
command = { type = manpowerpool value = 2 }
command = { type = money value = 50 }
command = { type = supplies value = 100 }
command = { type = dissent value = 1 }
command = { type = belligerence value = 3 }
}
}
### Kyrgyzstan said no
event = {
id = 9512
random = no
country = KZA
style = 0
name = " Kyrgyzstan refused our proposal !"
desc = " Kyrgyzstan refused to become part of a Glorious Enlarged Kazakhstan ! Immediate sanctions shall be taken."
action_a = {
name = "Their loss..."
command = { type = war which = KYG }
command = { type = manpowerpool value = 2 }
command = { type = money value = 50 }
command = { type = supplies value = 100 }
command = { type = dissent value = 1 }
command = { type = belligerence value = 3 }
}
}
### Tajiskistan said no
event = {
id = 9513
random = no
country = KZA
style = 0
name = " Tajiskistan refused our proposal !"
desc = " Tajiskistan refused to become part of a Glorious Enlarged Kazakhstan ! Immediate sanctions shall be taken."
action_a = {
name = "Their loss..."
command = { type = war which = TAJ }
command = { type = manpowerpool value = 2 }
command = { type = money value = 50 }
command = { type = supplies value = 100 }
command = { type = dissent value = 1 }
command = { type = belligerence value = 3 }
}
}
### Turkmenistan said no
event = {
id = 9514
random = no
country = KZA
style = 0
name = " Turkmenistan refused our proposal !"
desc = " Turkmenistan refused to become part of a Glorious Enlarged Kazakhstan ! Immediate sanctions shall be taken."
action_a = {
name = "Their loss..."
command = { type = war which = TRK }
command = { type = manpowerpool value = 2 }
command = { type = money value = 50 }
command = { type = supplies value = 100 }
command = { type = dissent value = 1 }
command = { type = belligerence value = 3 }
}
}
### Uzbekistan said no
event = {
id = 9515
random = no
country = KZA
style = 0
name = " Uzbekistan refused our proposal !"
desc = " Uzbekistan refused to become part of a Glorious Enlarged Kazakhstan ! Immediate sanctions shall be taken."
action_a = {
name = "Their loss..."
command = { type = war which = UZB }
command = { type = manpowerpool value = 2 }
command = { type = money value = 50 }
command = { type = supplies value = 100 }
command = { type = dissent value = 1 }
command = { type = belligerence value = 3 }
}
}
Thanks for the help. :>
EDIT = Attached savegame with the concerned countries.
View attachment 24720
Last edited: