You are on page 1of 4

namespace = otto_egypt_events

otto_egypt_events.1 = {
#1939 Second Ottoman-Egypt War
type = country_event
placement = IMP
title = otto_egypt_events.1.t
desc = otto_egypt_events.1.d
flavor = otto_egypt_events.1.f
event_image = {
video = "gfx/event_pictures/middleeast_battlefield_trenches.bk2"
}
on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
on_opened_soundeffect = "event:/SFX/Events/middleeast/battlefield_trenches"
icon = "gfx/interface/icons/event_icons/event_military.dds"
duration = 2
option = {
name = otto_egypt_events.1.a
default_option = yes
c:TUR = {
create_diplomatic_play = {
name = sepoy_mutiny
type = dp_return_state
target_state = s:STATE_ADANA.region_state:EGY
# add_war_goal = {
# holder = ROOT
# type = return_state
# target_state = s:STATE_SYRIA.region_state:EGY
# }
add_war_goal = {
holder = ROOT
type = return_state
target_state = s:STATE_ALEPPO.region_state:EGY
}
}
}
set_variable = oft_egypt_je
add_modifier = {
name = otf_otto_egypt_war_mdf
months = 15
}
hidden_effect = {
c:EGY = {
add_modifier = {
name = otf_good_egypt
months = 10
}
change_relations = {
#Egypt fought against these countries in 1839
country = c:RUS
value = -10
}
change_relations = {
country = c:GBR
value = -100
}
change_relations = {
country = c:AUS
value = -10
}
}
}
}
}

otto_egypt_events.2 = {
# Fate of Egypt
type = country_event
placement = s:STATE_MIDDLE_EGYPT.region_state:EGY
title = otto_egypt_events.2.t
desc = otto_egypt_events.2.d
flavor = otto_egypt_events.2.f
event_image = {
video = "gfx/event_pictures/unspecific_signed_contract.bk2"
}
on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
on_opened_soundeffect = "event:/SFX/Events/unspecific/signed_contract"
icon = "gfx/interface/icons/event_icons/event_trade.dds"
option = {
#Annex Egypt
name = otto_egypt_events.2.a
default_option = yes
add_modifier = {
name = otf_annex_egypt_mdf
months = 120
}
if = {
limit = {
exists = c:EGY
}
annex = c:EGY
}
change_infamy = 30
set_variable = clr_egypt_dsc
}
option = {
#Take only Sina
name = otto_egypt_events.2.b
trigger = {
c:TUR = {
NOT = {
owns_entire_state_region = STATE_SINAI
}
}
}
change_infamy = 2
s:STATE_SINAI.region_state:EGY = {
set_state_owner = c:TUR
}
set_variable = clr_egypt_dsc
}
option = {
#Let them exist
name = otto_egypt_events.2.c
add_modifier = {
name = otf_diplomatic_leader
months = -1
}
change_infamy = -10
s:STATE_SYRIA = {
remove_claim = c:EGY
}
s:STATE_LEBANON = {
remove_claim = c:EGY
}
s:STATE_PALESTINE = {
remove_claim = c:EGY
}
s:STATE_TRANSJORDAN = {
remove_claim = c:EGY
}
s:STATE_ADANA = {
remove_claim = c:EGY
}
set_variable = clr_egypt_dsc
}
option = {
#Do nothing for now
name = otto_egypt_events.2.dd
custom_tooltip = {
text = egy_event_2_egy_option_tooltip
}
remove_variable = clr_egypt_dsc
}
}

# otto_egypt_events.3 = {
# #Technological support from the west [NO NEED THIS ANYMORE]
# type = country_event
# placement = ROOT
# title = otto_egypt_events.3.t
# desc = otto_egypt_events.3.dd
# flavor = otto_egypt_events.3.f
# event_image = {
# video = "gfx/event_pictures/unspecific_signed_contract.bk2"
# }
# on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
# on_opened_soundeffect = "event:/SFX/Events/unspecific/signed_contract"
# icon = "gfx/interface/icons/event_icons/event_trade.dds"
# duration = 1
# option = {
# name = otto_egypt_events.3.a
# default_option = yes
# if = {
# limit = {
# NOT = {
# has_technology_researched = line_infantry
# }
# }
# add_technology_progress = {
# progress = 1500
# technology = line_infantry
# }
# }
# else_if = {
# limit = {
# NOT = {
# has_technology_researched = napoleonic_warfare
# }
# }
# add_technology_progress = {
# progress = 1500
# technology = napoleonic_warfare
# }
# }
# else_if = {
# limit = {
# NOT = {
# has_technology_researched = army_reserves
# }
# }
# add_technology_progress = {
# progress = 1500
# technology = army_reserves
# }
# }
# else = {
# start_research_random_technology = yes
# }
# }
# }

You might also like