That's why I made two versions myself, even though due to issues related to balance, this could give vassals of the HRE and ERE a too big advantage. Note that I used Cyprus as an example an to test whether such a decision would work.
Independent:
Code:
decisions = {
Kingdom = {
potential = {
min_age = 16
prisoner = no
independent = yes
NOT = { trait = incapable }
NOT = { FROM = {
tier = emperor
tier = king
}
}# Is no Emperor or king
}
allow = {
FROM = {
AND = {
piety = 200
wealth = 400
prestige = 400
religion = catholic
is_heretic = no
prisoner = no
primary_title = { title = d_cyprus } # Is duke of Cyprus
AND = {
OR = {
is_liege_of = 757 #c_famagusta
owns = 757 #c_famagusta
}
OR = {
is_liege_of = 756 #c_limisol
owns = 756 #c_limisol
}
}
}
}
}
effect = {
piety = -200
wealth = -400
k_cyprus = {
gain_title = FROM
}
}
ai_will_do = {
factor = 100 # AI will always do
}
}
}
Imperial vassal (not a king)
Code:
decisions = {
Kingdom = {
potential = {
min_age = 16
prisoner = no
top_liege = {
primary_title = {
title = e_hre
}
}
NOT = { trait = incapable }
NOT = { FROM = {
tier = emperor
tier = king
}
}# Is no Emperor or king
}
allow = {
FROM = {
AND = {
piety = 200
wealth = 400
prestige = 400
religion = catholic
is_heretic = no
prisoner = no
primary_title = { title = d_cyprus } # Is duke of Cyprus
AND = {
OR = {
is_liege_of = 757 #c_famagusta
owns = 757 #c_famagusta
}
OR = {
is_liege_of = 756 #c_limisol
owns = 756 #c_limisol
}
}
}
}
}
effect = {
piety = -200
wealth = -400
k_cyprus = {
gain_title = FROM
FROM = { set_defacto_liege = e_hre }
}
}
ai_will_do = {
factor = 100 # AI will always do
}
}
}