Hi. So I found that many of my vassals are still Feudal after enacting Imperial Administration, and according to the changelogs, the only way to turn them into Imperial is by revoking then regiving their titles or giving new ones outright.
Is there an easier way to do change them to imperial? My plan was to make a mod that does this via targeted decision, but since it's my first time making a mod like this, I'd like to ask for help. Mainly, whats the command that lets someone change their government?
So far, this is what I have. I used Stop Vassal's External Wars as a template since it was already a mod that uses targeted decision and is fairly short in length.
Apologies if it's looking super wrong. Again, it's my first time doing this. What it does right now is it deducts my prestige...and that's about it.
I'd appreciate any help on this. Have a good day.
Is there an easier way to do change them to imperial? My plan was to make a mod that does this via targeted decision, but since it's my first time making a mod like this, I'd like to ask for help. Mainly, whats the command that lets someone change their government?
So far, this is what I have. I used Stop Vassal's External Wars as a template since it was already a mod that uses targeted decision and is fairly short in length.
Code:
targetted_decisions = {
transition_vassal_to_ig = {
filter = realm
ai_target_filter = self
ai = no
from_potential = {
higher_tier_than = king
NOT = { owes_favor_to = ROOT }
}
potential = {
always = yes
}
allow = {
FROM = {
prestige = 100
NOT = { trait = incapable }
prisoner = no
in_seclusion = no
AND = {
has_law = law_voting_power_0
}
}
}
effect = {
FROM = { prestige = -100 }
set_government = imperial_government
government = imperial_government
set_government = emf_imperial_government
government = emf_imperial_government
}
ai_will_do = {
factor = 0
}
}
}
Apologies if it's looking super wrong. Again, it's my first time doing this. What it does right now is it deducts my prestige...and that's about it.
I'd appreciate any help on this. Have a good day.