
Originally Posted by
AKronblad
Also, upon the "Death of Roma" (meaning that the Western Roman Empire WRE no longer exists) in my 399AD mod, I'd like to remove all the cores of WRE.
Tried (in an otherwise functioning country_event for another country):
Code:
any_province = {
remove_core = WRE
}
but it didn't work. how could it be made to work?
Not sure if things changed for DW. For HTT the following series of events worked to remove cores from a non existent tag.
Code:
country_event = {
id = 335000
trigger = {
year = 1427
NOT = { year = 1477 }
exists = BRB
BRB = { war = no }
tag = BUR
NOT = { has_country_flag = inherit_BRB }
}
mean_time_to_happen = { days = 1 }
title = "EVTNAME335000"# Inherit
desc = "EVTDESC335000"# John IV of Brabrant as died and left us Brabrant!
option = {
name = "EVTOPTA335000"# Great!!
ai_chance = { factor = 100 }
BRB = { country_event = 777575 }
inherit = BRB
set_country_flag = inherit_BRB
}
}
Code:
country_event = {
id = 777575
is_triggered_only = yes
title = "EVTNAME777575"# remove_cores
desc = "EVTDESC777575"# remove_cores
option = {
name = "EVTOPTA777575"# Great!
ai_chance = { factor = 100 }
any_country = {
limit = { any_owned_province = { is_core = THIS } }
any_owned = {
limit = { is_core = THIS }
remove_core = THIS
}
}
}
}
This worked except where the tag still existed and still owned a province in which case the core would be immediately be earned back for the province still owned by the tag. But if the tag was no longer in game it worked well. The code was developed I think by one of the members of the original MM team.