# 24501 Ottoman arises
Code:
province_event = {
id = 24501
picture = "event_muslim"
trigger = {
condition = { type = or
condition = { type = province value = 748 }
condition = { type = province value = 749 }
}
condition = { type = year value = 1299 }
condition = {
type = not
value = {
type = year
value = 1326
}
}
condition = {
type = not
value = {
type = exists
value = OTTO
}
}
}
mean_time_to_happen = {
months = 1
}
action_a = {
effect = { type = religion value = muslim }
effect = { type = culture value = turkish }
effect = { type = add_improvement value = hill_fort }
effect = { type = add_improvement value = small_castle }
effect = { type = create_tag value = OTTO }
effect = { type = add_regiment
country = OTTO
culture = turkish
strength = { light_cav = 4000} }
}
}
#24502 Sultan is sunni
Code:
character_event = {
id = 24502
picture = "event_muslim"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = gender value = male }
condition = { type = religion value = muslim }
condition = { type = title value = OTTO }
condition = { type = not value = { type = trait value = sunni } }
}
mean_time_to_happen = {
days = 1
}
action_a = {
effect = { type = add_trait value = sunni }
effect = { type = intrigue value = 2 }
effect = { type = diplomacy value = 1 }
}
}
# 24503 Sultan of Ottoman acquires a neighbor's claim
Code:
character_event = {
id = 24503
picture = "muslim"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = kingdom }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = title value = OTTO }
condition = { type = any_neighbour
condition = { type = or
condition = { type = duchy }
condition = { type = county }
}
condition = { type = is_vassal }
condition = { type = realm_ruler
condition = { type = not value =
{ type = title value =OTTO } }
}
condition = { type = or
condition = { type = liege
condition = { type = religion value = muslim }
condition = { type = not value = { type = title value = OTTO } }
condition = { type = atwar }
}
condition = { type = liege
condition = { type = not value =
{ type = religion value = muslim }
}
}
}
condition = { type = capital
condition = { type = or
condition = { type = area value = 749 } #Anatolia
condition = { type = area value = 745 } #Ionia
condition = { type = area value = 496 } #Maritsa
condition = { type = area value = 488 } #Axios
condition = { type = area value = 472 } #Pindhos_Oros
condition = { type = area value = 482 } #Peloponnes
condition = { type = area value = 480 } #Cyclades
condition = { type = area value = 760 } #Taurus
condition = { type = area value = 762 } #Phoenicia
}
}
condition = { type = save_target }
}
condition = { type = has_target }
}
mean_time_to_happen = {
months = 36
modifier = {
condition = { type = atwar }
factor = 9
}
}
action_a = {
effect = { type = add_title_claim value = load_target }
effect = { type = prestige value = 50 }
effect = { type = random chance = 66
effect = { type = declare_war value = load_target }
effect = { type = add_regiment
tech_prov = 749
culture = turkish
mercenaries = yes
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
effect = { type = add_regiment
tech_prov = 749
culture = turkish
mercenaries = yes
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
}
}
}
# 24504 Saving the capital
Code:
character_event = {
id = 24504
picture = "muslim"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = kingdom }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = title value = OTTO }
condition = { type = capital
condition = { type = is_besieged }
}
}
mean_time_to_happen = {
days = 1
}
action_a = {#Go fight!
effect = { type = add_regiment
tech_prov = 749
culture = turkish
mercenaries = yes
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
effect = { type = add_regiment
tech_prov = 749
culture = turkish
mercenaries = yes
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
}
}
# 24505 Call-up of Kapkuli part I
Code:
province_event = {
id = 24505
picture = "event_muslim"
trigger = {
condition = { type = ai }
condition = { type = exists value = OTTO }
condition = {
type = demesne
value = OTTO
}
condition = { type = capital value = yes }
condition = { type = owner
condition = { type = kingdom }
condition = { type = title value = OTTO }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = not value =
{ type = trait value = emperor } } #small kingdom
condition = { type = atwar }
}
condition = {
type = not
value = {
type = realm_regiments
value = 12
}
}
}
mean_time_to_happen = {
months = 3
modifier = {
condition = { type = is_besieged }
factor = 0.17
}
}
action_a = {
effect = { type = add_regiment
country = OTTO
culture = turkish
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
effect = { type = add_regiment
country = OTTO
culture = turkish
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
effect = { type = random chance = 75
effect = { type = add_regiment
country = OTTO
culture = turkish
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
} }
}
}
# 24506 Sultan's vassal cannot keep his regiment during anabasis
Code:
character_event = {
id = 24506
picture = "event_muslim"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = county }
condition = { type = is_vassal }
condition = { type = capital
condition = { type = or
condition = { type = area value = 749 } #Anatolia
condition = { type = area value = 745 } #Ionia
condition = { type = area value = 496 } #Maritsa
}
}
condition = { type = liege
condition = { type = kingdom }
condition = { type = title value = OTTO }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = atwar }
}
condition = { type = command }
condition = { type = location
condition = { type = and
condition = { type = not value = { type = area value = 749 } } #Anatolia
condition = { type = not value = { type = area value = 745 } } #Ionia
condition = { type = not value = { type = area value = 496 } } #Maritsa
condition = { type = not value = { type = area value = 488 } } #Axios
condition = { type = not value = { type = area value = 472 } } #Pindhos_Oros
condition = { type = not value = { type = area value = 482 } } #Peloponnes
}
}
}
mean_time_to_happen = {
months = 40
modifier = {
condition = { type = trait value = LAZY }
factor = 0.5
}
modifier = {
condition = { type = trait value = REBELLIOUS }
factor = 0.1
}
modifier = {
condition = { type = trait value = STUBBORN }
factor = 7
}
modifier = {
condition = { type = trait value = LOYALIST }
factor = 15
}
modifier = {
condition = { type = not value = { type = loyalty value = 0.5 } }
factor = 0.3
}
modifier = {
condition = { type = not value = { type = loyalty value = 0.4 } }
factor = 0.2
}
modifier = {
condition = { type = not value = { type = loyalty value = 0.3 } }
factor = 0.1
}
}
action_a = {#We go home!
ai_chance = 75
effect = { type = remove_regiment }
effect = { type = prestige value = -50 }
}
action_b = {#No!
ai_chance = 25
effect = { type = prestige value = 50 }
effect = { type = loyalty value = 0.25 }
}
}
# 24507 Clemency of sultan
Code:
province_event = {
id = 24507
picture = "event_muslim"
trigger = {
condition = { type = ai }
condition = { type = exists value = OTTO }
condition = { type = demesne value = OTTO }
condition = { type = owner
condition = { type = kingdom }
condition = { type = title value = OTTO }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
}
condition = { type = not value = { type = religion value = muslim } }
condition = { type = not value = { type = has_province_effect value = { revolt = yes } } }
condition = { type = not value = { type = is_besieged } }
}
mean_time_to_happen = {
months = 60
modifier = {
condition = { type = area value = 749 }
factor = 0.1
}
modifier = {
condition = { type = area value = 496 }
factor = 0.25
}
modifier = {
condition = { type = area value = 488 }
factor = 0.5
}
modifier = {
condition = { type = area value = 745 }
factor = 0.6
}
modifier = {
condition = { type = area value = 760 }
factor = 0.9
}
}
action_a = {
effect = { type = religion value = muslim }
effect = { type = ruler_piety value = 50 }
effect = { type = random chance = 25
effect = { type = add_province_effect value = revolt }
}
effect = { type = random chance = 5
effect = { type = culture value = turkish }
}
}
}
# 24508 Ottoman absorbs an independent ruler
Code:
character_event = {
id = 24508
picture = "event_muslim"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = kingdom }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = title value = OTTO }
condition = { type = any_neighbour
condition = { type = or
condition = { type = duchy }
condition = { type = county }
}
condition = { type = is_independent }
condition = { type = capital
condition = { type = or
condition = { type = area value = 749 } #Anatolia
condition = { type = area value = 745 } #Ionia
condition = { type = area value = 496 } #Maritsa
condition = { type = area value = 488 } #Axios
condition = { type = area value = 472 } #Pindhos_Oros
condition = { type = area value = 482 } #Peloponnes
condition = { type = area value = 480 } #Cyclades
condition = { type = area value = 760 } #Taurus
condition = { type = area value = 762 } #Phoenicia
}
}
condition = { type = save_target }
}
condition = { type = has_target }
}
mean_time_to_happen = {
months = 12
modifier = {
condition = { type = trait value = CRUEL }
factor = 0.2
}
modifier = {
condition = { type = trait value = MERCIFUL }
factor = 2.4
}
}
action_a = {#Press the claim and war!
effect = { type = add_title_claim value = load_target }
effect = { type = declare_war value = load_target }
effect = { type = add_regiment
tech_prov = 749
culture = turkish
mercenaries = yes
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
}
}
# 24509 Sultan has decided a vassal of enemy must be perished
Code:
character_event = {
id = 24509
picture = "event_muslim"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = kingdom }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = title value = OTTO }
condition = { type = atwar }
condition = { type = any_enemy
condition = { type = or
condition = { type = kingdom }
condition = { type = duchy }
}
condition = { type = has_vassal }
condition = { type = any_vassal
condition = { type = county }
condition = { type = capital
condition = { type = or
condition = { type = area value = 749 } #Anatolia
condition = { type = area value = 745 } #Ionia
condition = { type = area value = 496 } #Maritsa
condition = { type = area value = 488 } #Axios
condition = { type = area value = 472 } #Pindhos_Oros
condition = { type = area value = 482 } #Peloponnes
condition = { type = area value = 480 } #Cyclades
condition = { type = area value = 760 } #Taurus
condition = { type = area value = 762 } #Phoenicia
}
}
condition = { type = save_target }
}
}
condition = { type = has_target }
}
mean_time_to_happen = {
days = 15
modifier = {
condition = { type = trait value = MISGUIDED_WARRIOR }
factor = 0.8
}
modifier = {
condition = { type = trait value = TOUGH_SOLDIER }
factor = 0.6
}
modifier = {
condition = { type = trait value = KNOWLEDGED_TACTICIAN }
factor = 0.4
}
modifier = {
condition = { type = trait value = BRILLIANT_STRATEGIST }
factor = 0.2
}
}
action_a = {#Press the claim and war!
effect = { type = add_title_claim value = load_target }
effect = { type = declare_war value = load_target }
effect = { type = add_regiment
tech_prov = 749
culture = turkish
mercenaries = yes
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
effect = { type = add_regiment
tech_prov = 749
culture = turkish
mercenaries = yes
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
}
}
# 24510 Vassal's province is sieged - sultan's choice
Code:
character_event = {
id = 24510
picture = "event_muslim"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = kingdom }
condition = { type = title value = OTTO }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = atwar }
condition = { type = has_vassal }
condition = { type = any_vassal
condition = { type = county }
condition = { type = capital
condition = { type = or
condition = { type = area value = 749 } #Anatolia
condition = { type = area value = 745 } #Ionia
condition = { type = area value = 496 } #Maritsa
condition = { type = area value = 488 } #Axios
}
condition = { type = is_besieged }
}
condition = { type = save_target }
}
condition = { type = has_target }
}
mean_time_to_happen = {
months = 1
modifier = {
condition = { type = trait value = LAZY }
factor = 7
}
modifier = {
condition = { type = trait value = TRUSTING }
factor = 0.7
}
}
action_a = {#Send him our regiment!
ai_chance = 80
effect = { type = remove_regiment }
effect = { type = badboy value = -1 }
effect = { type = trigger for = load_target value = 24511 }
}
action_b = {#No!
ai_chance = 20
effect = { type = remove_trait value = MERCIFUL }
effect = { type = add_trait value = CRUEL }
}
}
# 24511 Sultan has sent us a regiment!
Code:
character_event = {
id = 24511
picture = "muslim"
action_a = {#Thanks!
effect = { type = loyalty value = 0.5 }
effect = { type = add_regiment
tech_prov = 749
culture = turkish
mercenaries = yes
strength = { archer_cav = 999 light_cav = 625 militia = 750 }
}
}
}
# 24512 salic_consanguinity_law
Code:
character_event = {
id = 24512
picture = "event_law"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = kingdom }
condition = { type = title value = OTTO }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = not value = { type = has_law value = { salic_consanguinity_law = yes } } }
}
mean_time_to_happen = {
months = 12
}
action_a = { # salic_consanguinity_law!
effect = { type = set_law value = salic_consanguinity_law }
}
}
# 25513 Sultan's heir must be turkish ** culture = turkish is a trigger for some events
Code:
character_event = {
id = 24513
picture = "event_intrigue2"
trigger = {
condition = { type = ai }
condition = { type = ruler_child }
condition = { type = not value = { type = trait value = bastard } }
condition = { type = gender value = male }
condition = { type = religion value = muslim }
condition = { type = not value = { type = culture value = turkish } }
condition = { type = age value = 1 }
condition = { type = exists value = OTTO }
condition = { type = realm_ruler
condition = { type = kingdom }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = title value = OTTO }
condition = { type = num_of_sons value = 2 }
}
}
mean_time_to_happen = {
months = 5
}
action_a = {
effect = { type = add_trait value = bastard }
}
}
# 24514 Addition of courtier
Code:
character_event = {
id = 24514
picture = "event_muslim"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = kingdom }
condition = { type = title value = OTTO }
condition = { type = gender value = male }
condition = { type = not value = { type= num_courtiers value = 10 } }
}
mean_time_to_happen = {
months = 12
}
action_a = {
effect = { type = create_courtier value = steward }
effect = { type = random chance = 5
effect = { type = diplomacy value = 1 }
}
}
}
# 24515 A son of sultan from harem
Code:
character_event = {
id = 24515
picture = "event_intrigue2"
trigger = {
condition = { type = ai }
condition = { type = ruler }
condition = { type = kingdom }
condition = { type = title value = OTTO }
condition = { type = gender value = male }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = age value = 18 }
condition = { type = not value = { type = age value = 60 } }
}
mean_time_to_happen = {
months = 16
modifier = {
condition = { type = not value = { type = fertility value = 6 } }
factor = 1.2
}
modifier = {
condition = { type = not value = { type = fertility value = 4 } }
factor = 1.6
}
modifier = {
condition = { type = not value = { type = fertility value = 2 } }
factor = 2.4
}
modifier = {
condition = { type = age value = 30 }
factor = 1.2
}
modifier = {
condition = { type = age value = 40 }
factor = 2.4
}
modifier = {
condition = { type = age value = 50 }
factor = 4.8
}
}
action_a = {
effect = { type = create_courtier value = bastard }
}
}
# 24516 If bastard, sultan's son is sultan's son
Code:
character_event = {
id = 24516
picture = "event_intrigue2"
trigger = {
condition = { type = ai }
condition = { type = trait value = bastard }
condition = { type = gender value = male }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = trait value = sunni }
condition = { type = age value = 4 }
condition = { type = not value = { type = age value = 30 } }
condition = { type = father
condition = { type = kingdom }
condition = { type = religion value = muslim }
condition = { type = culture value = turkish }
condition = { type = title value = OTTO }
}
}
mean_time_to_happen = {
months = 24
}
action_a = {
effect = { type = remove_trait value = bastard }
}
}
**24515 and 24516 may be applied for the king of muslim with some modifications.
to be continued,