I can't for the life of me figure out why, but this event is the one that is responsible for the CTDs that will occur immediatley after the Horde appears or after you load the 1337 scenario (where the Hordes exist).
Can anyone else figure out why?
Can anyone else figure out why?
Code:
###################################
# Horde raids into adjacent lands #
###################################
province_x_province_event = { #The Golden Horde has raided one of our border provinces!
id = 5520
picture = "event_battle"
trigger = {
condition = { type = exists value = GOLD }
condition = { type = to
condition = { type = not value = { type = has_province_effect value = { looted = yes } } }
}
condition = { type = from
condition = { type = owner
condition = { type = title value = GOLD }
}
}
condition = { type = to
condition = {
type = or
condition = {
type = not
value = { type = owner
condition = { type = title value = GOLD }
}
}
condition = {
type = not
value = { type = owner
condition = { type = realm_ruler
condition = { type = not value = { type = title value = GOLD }}
}
}
}
}
}
}
mean_time_to_happen = {
months = 120
modifier = {
condition = { type = to
condition = { type = regiment_mobilized }
}
factor = 2
}
modifier = {
condition = { type = from
condition = { type = regiment_mobilized }
}
factor = 5
}
modifier = {
condition = { type = to
condition = { type = not value = { type = ruler_martial value = 3 } }
}
factor = 0.75
}
modifier = {
condition = { type = to
condition = { type = not value = { type = ruler_martial value = 5 } }
}
factor = 0.75
}
modifier = {
condition = { type = to
condition = { type = ruler_martial value = 8 }
}
factor = 1.5
}
modifier = {
condition = { type = to
condition = { type = ruler_martial value = 11 }
}
factor = 1.5
}
modifier = {
condition = { type = to
condition = { type = ruler_martial value = 14 }
}
factor = 1.5
}
modifier = {
condition = { type = from
condition = { type = not value = { type = ruler_martial value = 3 } }
}
factor = 1.5
}
modifier = {
condition = { type = from
condition = { type = not value = { type = ruler_martial value = 5 } }
}
factor = 1.5
}
modifier = {
condition = { type = from
condition = { type = ruler_martial value = 8 }
}
factor = 0.75
}
modifier = {
condition = { type = from
condition = { type = ruler_martial value = 11 }
}
factor = 0.75
}
modifier = {
condition = { type = from
condition = { type = ruler_martial value = 14 }
}
factor = 0.75
}
modifier = {
condition = { type = from
condition = { type = owner
condition = { type = atwar }
}
}
factor = 0.66
}
modifier = {
condition = { type = to
condition = { type = owner
condition = { type = atwar }
}
}
factor = 2
}
modifier = {
condition = { type = difficulty value = 1 }
factor = 0.8
}
modifier = {
condition = { type = difficulty value = 2 }
factor = 0.8
}
modifier = {
condition = { type = difficulty value = 3 }
factor = 0.8
}
modifier = {
condition = { type = difficulty value = 4 }
factor = 0.8
}
}
action_a = { #Curses!
effect = { type = to effect = { type = prosperity value = -1 }}
effect = { type = to effect = { type = ruler_gold scale = -0.5 }}
effect = { type = to
effect = { type = random chance = 33
effect = { type = add_province_effect value = looted }
}
}
}
}