########################## 
# OTTOMAN EMPIRE         # 
########################## 

# Buying the Rio de Janeiro 

event = { 
    country = TUR 
    id = 41001 
    random = no 
    style = 0 

    name = "EVT_41001_NAME" 
    desc = "EVT_41001_DESC" 

    trigger = { 
        exists = BRA 
        supplies = 2000 
        NOT = { 
            war = { country = GER country = BRA } 
            war = { country = GER country = TUR } 
            war = { country = ENG country = BRA } 
            war = { country = ENG country = TUR } 
        } 
    } 

    date = { day = 9 month = january year = 1914 } 
    offset = 7 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "ACTIONNAME41001A" 
        command = { type = supplies value = -2000 } 
        command = { type = trigger which = 7001 } 
    } 
    action_b = { 
        name = "ACTIONNAME41001B" 
        command = { type = trigger which = 7002 } 
    } 
} 

# The Sultan Osman I is complete 

event = { 
    country = TUR 
    id = 41002 
    random = no 
    style = 0 

    name = "EVT_41002_NAME" 
    desc = "EVT_41002_DESC" 
	
    trigger = {
        NOT = { 
            event = 7002 
            event = 56351 
        } 
        random = 25 
    } 

    date = { day = 9 month = August year = 1914 } 
    offset = 10 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "ACTIONNAME41002A" 
        command = { type = add_division which = battleship } 
        command = { type = alignment which = democratic value = 5 } 
    } 
} 

# The Sultan Osman I is seized 

event = { 
    country = TUR 
    id = 41003 
    random = no 
    style = 0 

    name = "EVT_41003_NAME" 
    desc = "EVT_41003_DESC" 

    # Triggered by British 56351 

    action_a = { 
        name = "ACTIONNAME41003A" # Triggers Ottoman 41010 
        command = { type = alignment which = fascist value = 75 } 
    } 
} 

# The Reshadieh is complete 

event = { 
    country = TUR 
    id = 41004 
    random = no 
    style = 0 

    name = "EVT_41004_NAME" 
    desc = "EVT_41004_DESC" 

    trigger = { 
        NOT = { 
            war = { country = TUR country = ENG } 
        } 
    } 

    date = { day = 19 month = August year = 1914 } 
    offset = 10 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "ACTIONNAME41004A" 
        command = { type = add_division which = battleship } 
    } 
} 

# The Reshadieh is seized 

event = { 
    country = TUR 
    id = 41005 
    random = no 
    style = 0 

    name = "EVT_41005_NAME" 
    desc = "EVT_41005_DESC" 

    # Triggered by British 56352 

    action_a = { 
        name = "ACTIONNAME41005A" # Triggers Ottoman 41010 
        command = { type = alignment which = fascist value = 75 } 
    } 
} 

# Buying the Admiral Latorre

event = { 
    country = TUR 
    id = 41006 
    random = no 
    style = 0 

    trigger = { 
        exists = CHL 
        supplies = 2000 
        NOT = { 
            war = { country = GER country = CHL } 
            war = { country = GER country = TUR } 
            war = { country = ENG country = CHL } 
            war = { country = ENG country = TUR } 
        } 
    } 

    date = { day = 29 month = january year = 1914 } 
    offset = 7 
    deathdate = { day = 0 month = january year = 1925 } 

    name = "EVT_41006_NAME" 
    desc = "EVT_41006_DESC" 

    action_a = { 
        name = "ACTIONNAME41006A" 
        command = { type = trigger which = 9001 } 
    } 
    action_b = { 
        name = "ACTIONNAME41006B" 
        command = { } 
    } 
} 

# The ex-Admiral Latorre is complete 

event = { 
    country = TUR 
    id = 41007 
    random = no 
    style = 0 

    name = "EVT_41007_NAME" 
    desc = "EVT_41007_DESC" 

    trigger = { 
        event = 9002 
        random = 25 
    } 

    date = { day = 13 month = August year = 1914 } 
    offset = 10 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "ACTIONNAME41007A" 
        command = { type = add_division which = battleship } 
        command = { type = sleepevent which = 56354 } 
        command = { type = supplies value = -2000 } 
    } 
} 

# The ex-Admiral Latorre is seized 

event = { 
    country = TUR 
    id = 41008 
    random = no 
    style = 0 

    name = "EVT_41008_NAME" 
    desc = "EVT_41008_DESC" 

    # Triggered by British 56354 

    action_a = { 
        name = "ACTIONNAME41008A" 
        command = { type = alignment which = fascist value = 75 } 
    } 
} 

# Secret alliance negotiations with Germany 

event = { 
    country = TUR
    id = 41010 
    random = no 
    style = 0

    name = "EVT_41010_NAME" 
    desc = "EVT_41010_DESC"

    trigger = { 
        OR = { 
            event = 41003 
            event = 41005 
        } 
        NOT = { 
            alliance = { country = TUR country = GER } 
        } 
    } 

    date = { day = 1 month = august year = 1914 } 
    offset = 7 
    deathdate = { day = 0 month = january year = 1925 }

    action_a = { 
        name = "ACTIONNAME41010A" 
        command = { } 
    } 
    action_b = { 
        name = "ACTIONNAME41010B" 
        command = { type = sleepevent which = 21351 } 
    } 
} 

# The German Mediterranean Squadron arrives in Constantinople 

event = { 
    country = TUR 
    id = 41011 
    random = no 
    style = 0 

    name = "EVT_41011_NAME" 
    desc = "EVT_41011_DESC" 

    # Triggered by German 21350 / 21351 

    action_a = { 
        name = "ACTIONNAME41011A" 
        command = { type = gain_tech which = -1 } ################################ Should be replaced with naval tech 
        command = { type = gain_tech which = -1 } ################################ Should be replaced with naval tech 
        command = { type = gain_tech which = -1 } ################################ Should be replaced with naval tech 
        command = { type = supplies value = -200 } 
        command = { type = alignment which = fascist value = 100 } 
    } 
} 

# The Ottoman declaration of war 

event = { 
    country = TUR 
    id = 41012 
    random = no 
    style = 0 

    name = "EVT_41012_NAME" 
    desc = "EVT_41012_DESC" 

    trigger = { 
        event = 41011 
        NOT = { 
            alliance = { country = TUR country = GER } 
        } 
    } 

    date = { day = 28 month = october year = 1914 } 
    offset = 1 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "ACTIONNAME41011A" 
        command = { type = alliance which = GER } 
        command = { type = trigger which = 48350 } 
    } 
} 

# Enter the war? 

event = { 
    country = TUR 
    id = 41013 
    random = no 
    style = 0 

    name = "EVT_41012_NAME" 
    desc = "EVT_41012_DESC" 

    trigger = { 
        war = { country = GER  country = RUS } 
        NOT = {
	    alliance = { country = FRA country = TUR }	 
            alliance = { country = GER country = TUR } 
        } 
    } 

    date = { day = 0 month = december year = 1914 } 
    offset = 1 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "ACTIONNAME41012A" 
        command = { type = alliance which = GER } 
    } 
    action_b = { 
        name = "ACTIONNAME41012B" 
        command = { type = dissent value = 5 } 
    } 
} 

# Ethiopia and Islam

event = { 
    country = TUR 
    id = 41014 
    random = no 
    style = 0 

    name = "Ethiopia and Islam" 
    desc = "EVT_41014_DESC" 

    trigger = {
	alliance = { country = ITA country = FRA }
	alliance = { country = ITA country = ENG } 
        war = { country = GER  country = ENG }
        war = { country = GER  country = FRA }
        war = { country = TUR  country = ENG }
	event = 41201 #Jihad
	control = { province = 1205 data = TUR } #Jerusalem is Turkish
        NOT = {
	    alliance = { country = FRA country = TUR }	 
            alliance = { country = ENG country = TUR }
            alliance = { country = FRA country = ETH }
            alliance = { country = ENG country = ETH }
            alliance = { country = GER country = ETH }
            alliance = { country = TUR country = ETH }	 
        } 
    } 

    date = { day = 1 month = october year = 1915 }  

    action_a = { 
        name = "Spread the Jihad to the Horn of Africa" 
        command = { type = trigger which = 18001 }
	command = { type = supplies which = -500 } 
    } 
    action_b = { 
        name = "Lij Iyasu cannot be relied upon" 
        command = { } 
    } 
} 



# Declare Holy War? 

event = { 
    country = TUR 
    id = 41200 
    random = no 
    style = 0 

    name = "EVT_41200_NAME" 
    desc = "EVT_41200_DESC" 

    trigger = { 
        war = { country = ENG country = TUR } 
    } 

    date = { day = 0 month = january year = 1914 } 
    offset = 1 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "ACTIONNAME41200A" 
        command = { type = supplies value = -50 } 
        command = { type = trigger which = 101 } 
        command = { type = trigger which = 35101 } 
        command = { type = trigger which = 41201 } 
        command = { type = sleepminister which = 41009 } 
        command = { type = chiefofnavy which = 41058 }
	command = { type = sleepleader which = 41133 }
    } 

    action_b = { 
        name = "ACTIONNAME41200B" 
        command = { type = dissent value = 3 } 
        command = { type = sleepminister which = 41009 } 
        command = { type = chiefofnavy which = 41058 }
	command = { type = sleepleader which = 41133 } 
    } 
} 

# Holy War declared 

event = { 
    country = TUR 
    id = 41201 
    random = no 
    style = 0 

    name = "EVT_41201_NAME" 
    desc = "EVT_41201_DESC" 

    # Triggered by Ottoman 41200 

    action_a = { 
        name = "ACTIONNAME41201A" 
        command = { } 
    } 
} 

# Instigate unrest in Egypt

event = { 
    country = TUR 
    id = 41202 
    random = no 
    style = 0 

    name = "EVT_41202_NAME" 
    desc = "EVT_41202_DESC" 

    trigger = { 
        event = 41201 
        control = { province = 1206 data = TUR } 
    } 

    date = { day = 0 month = january year = 1914 } 
    offset = 1  
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "ACTIONNAME41202A" 
        command = { type = supplies value = -50 } 
        command = { type = trigger which = 56303 } 
    } 
    action_b = { 
        name = "ACTIONNAME41202B" 
        command = { type = dissent value = 2 } 
    } 
} 

##############################################
# Tributary Georgia 

event = { 
    country = TUR 
    id = 41207 
    random = no 
    style = 0 

    name = "EVT_41207_NAME" 
    desc = "EVT_41207_DESC" 

    trigger = { 
        event = 74110 
        exists = GEO
    } 

    date = { day = 2 month = december year = 1917 } 
    offset = 1 
    deathdate = { day = 0 month = january year = 1925 }  

    action_a = { 
        name = "ACTIONNAME41207A" 
        command = { type = make_puppet which = GEO } 
        command = { type = alliance which = GEO } 
    } 
} 

# Tributary Armenia 

event = { 
    country = TUR 
    id = 41208 
    random = no 
    style = 0 

    name = "EVT_41208_NAME" 
    desc = "EVT_41208_DESC" 

    trigger = { 
        event = 74111 
        exists = ARM
    } 

    date = { day = 2 month = december year = 1917 } 
    offset = 1 
    deathdate = { day = 0 month = january year = 1925 }  

    action_a = { 
        name = "ACTIONNAME41208A" 
        command = { type = make_puppet which = ARM } 
        command = { type = alliance which = ARM } 
    } 
} 

# Tributary Azerbaijan 

event = { 
    country = TUR 
    id = 41209 
    random = no 
    style = 0 

    name = "EVT_41209_NAME" 
    desc = "EVT_41209_DESC" 

    trigger = { 
        event = 74112 
        exists = AZB
    } 

    date = { day = 2 month = december year = 1917 } 
    offset = 1 
    deathdate = { day = 0 month = january year = 1925 }  

    action_a = { 
        name = "ACTIONNAME41209A" 
        command = { type = make_puppet which = AZB } 
        command = { type = alliance which = AZB } 
    } 
} 


# Counter-government in Angora 

event = { 
    country = TUR 
    id = 41300 
    random = no 
    style = 0 

    name = "EVT_41300_NAME" 
    desc = "EVT_41300_DESC" 

    trigger = { 
        event = 41804 
    } 

    date = { day = 23 month = april year = 1920 } 
    offset = 30 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "ACTIONNAME41300A" 
        command = { type = headofstate which = 41011 } 
        command = { type = headofgovernment which = 41012 } 
        command = { type = foreignminister which = 41013 } 
        command = { type = armamentminister which = 41014 } 
        command = { type = ministerofsecurity which = 41015 } 
        command = { type = ministerofintelligence which = 41016 } 
        command = { type = chiefofstaff which = 41017 } 
        command = { type = chiefofarmy which = 41018 } 
        command = { type = chiefofnavy which = 41019 } 
        command = { type = chiefofair which = 41020 } 
        command = { type = alignment which = fascist value = 200 }
	command = { type = add_division which = infantry }
	command = { type = add_division which = infantry }
	command = { type = add_division which = infantry }
	command = { type = add_division which = infantry }
	command = { type = add_division which = infantry }
	command = { type = add_division which = infantry }
	command = { type = add_division which = infantry }
	command = { type = sleepleader which = 41102 } #Enver
    } 
    action_b = { 
        name = "ACTIONNAME41300B" 
        command = { type = alignment which = fascist value = -100 } 
        command = { type = setflag which = sultan1 } 
    } 
}

#####################################################################
# Turkey and Germany at war
#####################################################################

event = {
country = TUR
id = 41100
random = no
style = 0
name = "AI_Event"

trigger = { 
war = { country = TUR country = GER } 
}

date = { day = 1 month = january year = 1914 }
offset = 1 
deathdate = { day = 0 month = january year = 1924 }

action_a = {
command = { type = sleepleader which = 41103 }
command = { type = sleepleader which = 41104 }
command = { type = sleepleader which = 41117 }
command = { type = sleepleader which = 41134 }
command = { type = sleepleader which = 41135 }
command = { type = sleepleader which = 41136 }
command = { type = sleepleader which = 41137 }
command = { type = sleepminister which = 41059 }
}
}