next round. i´ve noticed spamming "Heathens"-event and some trouble with the Khalifah-decission and some smaller things.
1. spamming "$PROVINCECULTURE$ Heathens"
it is a result of missing defs for flag-clearing for taoist (and later judaic) countries. also the event doesn´t work in a proper way for occupied provinces, so its senseful to exclude not controlled provinces (changes in red, file: events/DG_Conversion.txt):
Code:
province_event = { #$PROVINCECULTURE$ Heathens
id = 591003
trigger = {
NOT = { has_building = temple }
controlled_by = owner
...
option = {
name = "EVTOPTA591003"
#Effects are invisible
revolt_risk = 2
owner = {
set_country_flag = heathen_effects
random_owned = {
limit = { owner = { check_variable = { which = "religious_fervor" value = 9 } } }
owner = { prestige = 0.006 }
}
random_owned = {
limit = { owner = { check_variable = { which = "religious_fervor" value = 5 } NOT = { check_variable = { which = "religious_fervor" value = 9 } } } }
owner = { prestige = 0.004 }
}
random_owned = {
limit = { owner = { check_variable = { which = "religious_fervor" value = 1 } NOT = { check_variable = { which = "religious_fervor" value = 5 } } } }
owner = { prestige = 0.002 }
}
any_owned = {
limit = {
OR = {
AND = {
owner = { religion_group = christian }
NOT = { religion_group = christian }
NOT = { has_building = temple }
}
AND = {
owner = { religion_group = muslim }
NOT = { religion_group = muslim }
NOT = { has_building = temple }
}
AND = {
owner = { religion_group = dharmic }
NOT = { religion_group = dharmic }
NOT = { has_building = temple }
}
AND = {
owner = { religion_group = pagan }
NOT = { religion_group = pagan }
NOT = { has_building = temple }
}
AND = {
owner = { religion_group = taoic }
NOT = { religion_group = taoic }
NOT = { has_building = temple }
}
AND = {
owner = { religion_group = judaic }
NOT = { religion_group = judaic }
NOT = { has_building = temple }
}
}
}
clr_province_flag = owner_christian
clr_province_flag = owner_muslim
clr_province_flag = owner_dharmic
clr_province_flag = owner_pagan
clr_province_flag = owner_judaic
clr_province_flag = owner_taoic
}
...
the controlled_by -trigger is also senseful for the next event (Heathens temples).
2. Khalifah-decission:
there are some bugs in decisions/DG_muslim.txt and events/DG_Islam.txt:
- not excluding steppe-nomads bring timurids often into caliph-position,
- the clearing-block removes the modifiers also from the starting-country, so it spams
- the title "caliph" is given by setup to MAM with a country_flag which triggers all events and thats relative independend from the Khalifah-title
- changed relationships to the caliph goes to MAM instead of the caliph-country
i try to rework the decision - now it works, and i hope in a way, dharper had in mind:
Code:
the_khalifah = {
potential = {
has_country_flag = true_faith
not = { has_country_modifier = khalifah }
not = { has_country_flag = caliph } # for shorter modifier-duration
OR = {
religion = sunni
religion = wahhabi
religion = ibadi
}
prestige = 0.25
num_of_cities = 5
nomad = no #exclude the steppe_nomads from being caliph
}
allow = {
NOT = { is_subject = yes }
mil = 5
prestige = 0.5
owns = 385 #Mecca
OR = {
owns = 384 #Medina
owns = 379 #Jerusalem
owns = 409 #Al Najaf
}
missionaries = 1
}
effect = {
missionaries = -1
random_owned = {
limit = {
owner = { ai = no }
has_global_flag = faction_setup_complete
}
owner = { change_variable = { which = "clergy_mood" value = 10 } } #Moderate positive effect
}
add_country_modifier = {
name = "khalifah"
duration = 365 # only 1 year of double bonuses
}
set_country_flag = caliph #rotates the flag to current caliph 1
any_country = {
limit = {
OR = {
has_country_modifier = khalifah
has_country_flag = caliph
}
num_of_cities = 1
NOT = { capital_scope = { owned_by = THIS } } #secure THIS of removing flags/modifiers
}
relation = { who = THIS value = -100 }
remove_country_modifier = khalifah
clr_country_flag = caliph #rotates the flag to current caliph 2
casus_belli = { target = THIS months = 12 type = cb_insult }
}
...
and for excluding the cb for non-muslim defenders of faith in events/DG_Islam.txt:
Code:
country_event = { #A New Caliph
id = 560009
...
option = {
name = "EVTOPTB560009" #Reject his authority over $COUNTRY$
...
random_owned = {
limit = { owner = { defender_of_faith = yes religion_group = muslim } }
owner = {
any_country = {
limit = { has_country_flag = caliph }
casus_belli = {
type = cb_insult
target = THIS
months = 12
}
}
}
}
}
}
in common/religion.txt you forgot the CRUSADE_NAME defs in christian and muslim-group, so the warnames are broken. that was added with DW to the vanilla-file.
for balancing i tested reducing the huge relationship-bonuses for same religion-countries at SETUP-events and it seems, half of dharpers values do it in a proper way.
for your convinience, i added all my changes (including the suggestions from the former post) to the attached file. feel free to use it.
EDIT: remove attachement ´cause of new version.