FIXED
The decisions were inside a plot_decision instead of a decision block, which I thought were interchangeable. The wiki sure is lacking and deceiving in the modding tutorial articles...
I am working on a HIP submod that will improve gameplay in Iberia. However one of the problems I am facing as my first serious attempt at modding is that the AI won't enact my decisions. Like this easy one for example:
Any insight on this will be appreciated
The decisions were inside a plot_decision instead of a decision block, which I thought were interchangeable. The wiki sure is lacking and deceiving in the modding tutorial articles...
I am working on a HIP submod that will improve gameplay in Iberia. However one of the problems I am facing as my first serious attempt at modding is that the AI won't enact my decisions. Like this easy one for example:
Code:
form_leon = {
is_high_prio = yes
only_independent = yes
ai_check_interval = 6
potential = {
tier = KING
has_landed_title = k_asturias
k_leon = { has_holder = no }
NOR = {
has_alternate_start_setting = {
setting = dejure
value = random
}
has_alternate_start_setting = {
setting = title_names
value = random
}
has_alternate_start_setting = {
setting = title_names
value = random_including_duchies
}
}
}
allow = {
is_adult = yes
war = no
prisoner = no
NOT = { trait = incapable }
NOT = { has_character_modifier = in_seclusion }
primary_title = { title = k_asturias }
completely_controls = d_leon
is_vice_royalty = no
}
effect = {
activate_title = { title = k_leon status = yes }
k_asturias = {
show_scope_change = no
k_leon = {
show_scope_change = no
grant_title = ROOT
hidden_tooltip = { make_primary_title = yes }
copy_title_laws = PREV
copy_title_history = PREV
}
hidden_tooltip = {
any_direct_de_jure_vassal_title = {
de_jure_liege = k_leon
}
destroy_landed_title = THIS
}
}
if = {
limit = {
has_landed_title = c_leon
NOT = { capital_scope = { province_id = 190 } }
}
c_leon = {
show_scope_change = no
ROOT = {
show_scope_change = no
capital = PREV
}
}
}
activate_title = { title = k_asturias status = no }
hidden_tooltip = {
character_event = { id = ri.0001 }
any_playable_ruler = {
limit = {
ai = no
capital_scope = {
region = world_europe_west_iberia
}
}
character_event = { id = ri.0002 }
}
}
}
ai_will_do = {
factor = 1
}
}
Any insight on this will be appreciated
Last edited: