Stellaris

Stellaris

SpeedDial
relytor 20 Apr, 2020 @ 6:01pm
Compatibility for modded Shrouds
@MacAwesome I've found several mods that add in custom Shrouds. I've added in code to make the shroud button compatible with all of them. Feel free to integrate.
The mods are:
  • Unofficial Machine and Synthetic Empire DLC
  • Unofficial Hive DLC: Forgotten Queens
  • Psionic Hive Minds

events/speeddial_events.txt
country_event = { id = speeddial.3001 is_triggered_only = yes hide_window = yes immediate = { from = { country_event = { id = endim.3000 } } } } country_event = { id = speeddial.3002 is_triggered_only = yes hide_window = yes immediate = { from = { country_event = { id = psionic_shroud.3000 } } } } country_event = { id = speeddial.3003 is_triggered_only = yes hide_window = yes immediate = { from = { country_event = { id = hiveutopia.3000 } } } }

common/button_effects/speeddial_button_effects.txt
# shroud speeddial_button_shroud_effect = { potential = { exists = from any_relation = { OR = { is_country_type = shroud is_country_type = machinedlcmod_shroud is_country_type = hive_shroud is_country_type = hiveshroud } has_communications = from } } allow = { if = { limit = { has_country_flag = speeddial_shroud_3600_timer } custom_tooltip = speeddial_button_allow_shroud_3600_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_1800_timer } custom_tooltip = speeddial_button_allow_shroud_1800_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_1440_timer } custom_tooltip = speeddial_button_allow_shroud_1440_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_1080_timer } custom_tooltip = speeddial_button_allow_shroud_1080_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_720_timer } custom_tooltip = speeddial_button_allow_shroud_720_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_360_timer } custom_tooltip = speeddial_button_allow_shroud_360_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_150_timer } custom_tooltip = speeddial_button_allow_shroud_150_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_120_timer } custom_tooltip = speeddial_button_allow_shroud_120_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_90_timer } custom_tooltip = speeddial_button_allow_shroud_90_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_60_timer } custom_tooltip = speeddial_button_allow_shroud_90_tooltip } else_if = { limit = { has_country_flag = speeddial_shroud_30_timer } custom_tooltip = speeddial_button_allow_shroud_90_tooltip } else_if = { limit = { has_country_flag = shroud_diplomacy_engaged } custom_tooltip = speeddial_button_allow_blank_tooltip } else = { custom_tooltip = speeddial_button_allow_shroud_tooltip } hidden_trigger = { is_ai = no any_relation = { OR = { is_country_type = shroud is_country_type = machinedlcmod_shroud is_country_type = hive_shroud is_country_type = hiveshroud } has_communications = from } NOR = { has_country_flag = shroud_diplomacy_engaged has_modifier = shroud_cooldown has_modifier = shroud_precog_cooldown } } } effect = { custom_tooltip = speeddial_button_contact_shroud_tooltip hidden_effect = { random_relation = { limit = { is_country_type = shroud has_communications = from } country_event = { id = speeddial.3000 } } random_relation = { limit = { is_country_type = machinedlcmod_shroud has_communications = from } country_event = { id = speeddial.3001 } } random_relation = { limit = { is_country_type = hive_shroud has_communications = from } country_event = { id = speeddial.3002 } } random_relation = { limit = { is_country_type = hiveshroud has_communications = from } country_event = { id = speeddial.3003 } } } } }
Last edited by relytor; 20 Apr, 2020 @ 6:03pm
< >
Showing 1-1 of 1 comments
MacAwesome  [developer] 11 Aug, 2020 @ 2:40pm 
I've made these mods compatible with the Shroud button now!
< >
Showing 1-1 of 1 comments
Per page: 1530 50