Hi,
I'm trying to modify an existing mod and was wondering can you make nested options for events - or how do you make hidden options for events?
As an example, I have 2 options that are shown separately when done like this;'
what is the most elegant way to hide the non-valid options from the event window, so that there wouldn't be hundreds or thousands of lines of script to correct when updating the mod? Or does this feature require or be preferably done via scripted UI?
I have tried various ways with limits and
I'm trying to modify an existing mod and was wondering can you make nested options for events - or how do you make hidden options for events?
As an example, I have 2 options that are shown separately when done like this;'
option = {
name = add_finnish_primary_homelands.1.a
default_option = no
every_state_region = {
limit = {
any_scope_state = {
owner = ROOT
has_decree = decree_modify_homeland
}
}
add_homeland = cu:estonian
}
}
option = {
name = add_finnish_primary_homelands.1.b
default_option = no
every_state_region = {
limit = {
any_scope_state = {
owner = ROOT
has_decree = decree_modify_homeland
}
}
remove_homeland = cu:estonian
}
}
what is the most elegant way to hide the non-valid options from the event window, so that there wouldn't be hundreds or thousands of lines of script to correct when updating the mod? Or does this feature require or be preferably done via scripted UI?
I have tried various ways with limits and
is_hidden
, hidden
and is_shown
, but nothing has worked thus far. I have also tried googling with various search terms but haven't been able to find any examples after hours of searching and would appreciate the help.