Hello everyone. This is my first attempt at coding and everything is actually working brilliantly except for one issue. My only problem is that the set_domestic variables aren't firing and the domestic variables are the same as the UK. As a result, Ethiopia is an ahistorical market liberal government instead of a paternal autocratic government. Do I need to set up another event ID, or am I missing something?
I've provided the event string in the area concerned. The set_domestic variables are bolded and are in event 442701 & 442702.
I would greatly appreciate some help. Thanks in advance.
I've provided the event string in the area concerned. The set_domestic variables are bolded and are in event 442701 & 442702.
I would greatly appreciate some help. Thanks in advance.
Code:
#########################################################################
# Restore the Lion of Judah
#########################################################################
event = {
id = 442700
random = no
country = ENG
trigger = {
random = 30 # 30% chance every month
control = { province = 1046 data = ENG } # Addis Ababa
NOT = {
exists = ETH
exists = U06
control = { province = 1037 data = ITA } # Djibouti
control = { province = 1042 data = ITA } # Gonder
control = { province = 1043 data = ITA } # Dese
control = { province = 1044 data = ITA } # Debre Markos
control = { province = 1045 data = ITA } # Gambela
control = { province = 1047 data = ITA } # Jima
control = { province = 1048 data = ITA } # Adwa
control = { province = 1049 data = ITA } # Denakil
control = { province = 1050 data = ITA } # Dire Dawa
control = { province = 1051 data = ITA } # Harar
control = { province = 1052 data = ITA } # Ginir
control = { province = 1053 data = ITA } # Moyale
control = { province = 1054 data = ITA } # Ogaden
control = { province = 1033 data = ITA } # Massaua
control = { province = 1038 data = ITA } # Assab
control = { province = 1039 data = ITA } # Asmara
}
}
name = "EVT_442700_NAME"
desc = "EVT_442700_DESC"
picture = "Ethiopia_restore"
style = 0
date = { day = 1 month = january year = 1937 }
offset = 30
deathdate = { day = 30 month = december year = 1947 }
action_a = {
name = "Grant the Independence of Ethiopia" # Grant ETH
ai_chance = 90
command = { type = independence which = ETH value = 1 }
command = { type = dissent value = -1 }
command = { type = trigger which = 442701 } # Emperor Restored and no Eritrea
command = { type = trigger which = 442705 } # Ethiopia Puppet
}
action_b = {
name = "Grant the Independence of Ethiopia and Eritrea" # Grant ETH and U06
ai_chance = 9
command = { type = independence which = U06 value = 1 }
command = { type = independence which = ETH value = 1 }
command = { type = dissent value = -2 }
command = { type = trigger which = 442702 } # Emperor Restored
command = { type = trigger which = 442703 } # Independent Eritrea
command = { type = trigger which = 442706 } # Ethiopia and Eritrea Puppet
}
action_c = {
name = "Maintain Control Until the End of the War" # Maintain Control
ai_chance = 1
command = { type = dissent value = 5 }
}
}
#########################################################################
# Puppet Ethiopia
#########################################################################
event = {
id = 442705
random = no
country = ENG
#Triggered by ENG442700
name = "EVT_442705_NAME"
desc = "EVT_442705_DESC"
style = 0
picture = "Ethiopia_restore2"
action_a = {
name = "OK" # Install a Puppet
command = { type = make_puppet which = ETH }
}
}
#########################################################################
# Puppet Ethiopia and Eritrea
#########################################################################
event = {
id = 442706
random = no
country = ENG
#Triggered by ENG442700
name = "EVT_442706_NAME"
desc = "EVT_442706_DESC"
style = 0
picture = "horn_of_africa"
action_a = {
name = "OK" # Install a Puppet
command = { type = make_puppet which = ETH }
command = { type = make_puppet which = U06 }
}
}
#
# HoI - Ethiopia
#
# written by TurnerBenton
#
#########################################################################
# Emperor Restored
#########################################################################
event = {
id = 442701
random = no
country = ETH
name = "EVT_442701_NAME"
desc = "EVT_442701_DESC"
picture = "ethiopia_restore"
style = 0
# triggered by UK442700
action_a = {
name = "OK" # Ethiopia formed and Eritrea British
command = { type = headofstate which = 65001 }
command = { type = secedeprovince which = ENG value = 1033 } # Massaua
command = { type = secedeprovince which = ENG value = 1038 } # Assab
command = { type = secedeprovince which = ENG value = 1039 } # Asmara
command = { type = add_corps which = "Ethiopian Army" value = land where = 1046 }
command = { type = add_division which = "Royal Militia" value = militia when = 1 }
command = { type = money value = 10 } # money
command = { type = manpowerpool value = 10 } # manpower
c[B]ommand = { type = set_domestic which = democratic value = 5 }
command = { type = set_domestic which = political_left value = 5 }[/B]
}
}
#########################################################################
# Emperor Restored and Independent Eritrea
#########################################################################
event = {
id = 442702
random = no
country = ETH
name = "EVT_442702_NAME"
desc = "EVT_442702_DESC"
picture = "ethiopia_restore"
style = 0
# triggered by UK442700
action_a = {
name = "OK" # Ethiopia formed and Eritrea Independent
command = { type = set_domestic which = democratic value = 5 }
command = { type = set_domestic which = political_left value = 5 }
command = { type = headofstate which = 65001 }
command = { type = add_corps which = "Ethiopian Army" value = land where = 1046 }
command = { type = add_division which = "Royal Militia" value = militia when = 1 }
command = { type = money value = 10 } # money
command = { type = manpowerpool value = 10 } # manpower
[B]command = { type = set_domestic which = democratic value = 5 }
command = { type = set_domestic which = political_left value = 5 }[/B]
}
}