from any scope switcher not working with province_events
The first option should have worked ok, but actually you only get a PROV0 instead a province name when you get the event triggered, and it won't have any effect on the triggering province (the province won't have the foreign_spared flag and the adem_TEST2 modifier added).
The second option is a guess try assuming the from returns a country instead the province scope it should, but again, the same result.
Please advise regarding the proper usage, or fix the bug.
thanks
Code:
################################################
# Province occupied - owner
################################################
province_event = {
id = 401001
trigger = {
NOT = { controlled_by = owner }
NOT = { has_province_modifier = adem_TEST1 }
}
mean_time_to_happen = {
days = 1
}
title = "Siege Lost"
desc = "The fate of $PROVINCENAME$ is no longer in our hands..."
option = {
name = "There is nothing we can do now"
set_province_flag = foreign_controlled
add_province_modifier = { name = "adem_TEST1" duration = 73000}
controller = {
country_event = 401002
}
}
}
################################################
# Province occupied - invader
################################################
country_event = {
id = 401002
is_triggered_only = yes
title = "Siege Won!"
desc = "We have taken the city! What should we do now?"
option = {
name = "From returning province scope "
from = {
add_province_flag = foreign_spared
add_province_modifier = { name = "adem_TEST2" duration = 73000}
}
}
option = {
name = "From returning country scope"
from = {
any_province = {
limit = {
has_province_flag = foreign_controlled
has_province_modifier = adem_TEST1
}
add_province_flag = foreign_spared
add_province_modifier = { name = "adem_TEST3" duration = 73000}
}
}
}
}
The first option should have worked ok, but actually you only get a PROV0 instead a province name when you get the event triggered, and it won't have any effect on the triggering province (the province won't have the foreign_spared flag and the adem_TEST2 modifier added).
The second option is a guess try assuming the from returns a country instead the province scope it should, but again, the same result.
Please advise regarding the proper usage, or fix the bug.
thanks
Last edited:
Upvote
0