Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #################################
- ### Leviathan & Enclave Events###
- ### by Maximilian Olbers ###
- ### & Niclas Karlsson ###
- ### & Rufus Tronde ###
- ### & Henrik Thyrwall ###
- #################################
- namespace = leviathans
- country_event = {
- id = leviathans.9
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- from = {
- is_guardian_country = yes
- }
- OR = {
- is_country_type = default
- is_country_type = fallen_empire
- is_country_type = awakened_fallen_empire
- }
- }
- immediate = {
- from = {
- establish_communications_no_message = root
- save_event_target_as = leviathan_story_country
- }
- country_event = { id = story.8 days = 15 }
- }
- }
- # guardian kill check
- country_event = {
- id = leviathans.4
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- from = {
- is_guardian_country = yes
- }
- }
- immediate = {
- fromfromfrom.solar_system = {
- save_event_target_as = leviathan_destroyed_system
- }
- root = {
- save_event_target_as = leviathan_destroyer_country
- }
- from = {
- save_event_target_as = leviathan_destroyed_country
- }
- country_event = { id = leviathans.6 days = 2 }
- }
- }
- # Delay necessary due to fleets not being instantly deleted, therefore num_fleets trigger won't pass otherwise
- country_event = {
- id = leviathans.6
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- exists = event_target:leviathan_destroyed_system
- exists = event_target:leviathan_destroyer_country
- exists = event_target:leviathan_destroyed_country
- event_target:leviathan_destroyed_country = {
- num_fleets < 1
- }
- }
- immediate = {
- observer_event = { id = observer.1 }
- every_country = {
- limit = {
- has_communications = root
- NOT = { is_same_value = root }
- }
- country_event = { id = leviathans.5 }
- }
- }
- }
- # notification
- country_event = {
- id = leviathans.5
- title = leviathans.5.name
- desc = leviathans.5.desc
- picture = GFX_evt_throne_room
- location = event_target:leviathan_destroyed_system
- show_sound = event_mystic_reveal
- is_triggered_only = yes
- option = {
- name = OK
- }
- }
- # Enclave Yearly Border Opinion
- event = {
- id = leviathans.10
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- every_country = {
- limit = { is_country_type = enclave }
- country_event = { id = leviathans.11 }
- }
- }
- }
- country_event = {
- id = leviathans.11
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- every_owned_fleet = {
- limit = {
- exists = solar_system
- solar_system = {
- exists = space_owner
- space_owner = {
- is_country_type = default
- }
- }
- }
- solar_system = {
- space_owner = {
- root = {
- add_trust = {
- who = prev
- amount = 1
- }
- }
- }
- }
- }
- }
- }
- fleet_event = {
- id = leviathans.96
- title = "action.10.name"
- desc = "action.15.desc"
- picture = GFX_evt_star_chart
- location = FROM
- trackable = yes
- is_triggered_only = yes
- trigger = {
- owner = {
- is_country_type = default
- exists = capital_scope
- }
- from = {
- has_star_flag = enclave
- any_ship_in_system = {
- exists = owner
- owner = {
- is_country_type = enclave
- NOR = {
- has_communications = root.owner
- reverse_has_relation_flag = {
- flag = ongoing_enclave_investigation
- who = root.owner
- }
- }
- }
- }
- }
- }
- immediate = {
- owner = {
- capital_scope = { save_event_target_as = pc_home }
- from = {
- random_fleet_in_system = {
- limit = {
- exists = owner
- owner = { is_country_type = enclave }
- }
- owner = {
- save_event_target_as = target_enclave
- country_event = { id = leviathans.97 days = 300 random = 50 }
- enable_special_project = {
- name = "INVESTIGATE_ENCLAVE"
- location = event_target:pc_home
- owner = root.owner
- }
- country_event = { id = leviathans.960 }
- }
- }
- }
- set_relation_flag = {
- flag = ongoing_enclave_investigation
- who = event_target:target_enclave
- }
- }
- }
- option = {
- name = "action.10.a"
- owner = {
- tooltip = {
- enable_special_project = {
- name = "INVESTIGATE_ENCLAVE"
- location = event_target:pc_home
- owner = ROOT
- }
- }
- }
- }
- }
- country_event = { # passthrough for story.7
- id = leviathans.960
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- from.owner = {
- country_event = { id = story.7 days = 2 }
- }
- }
- }
- # Enclaves make contact after 300 days
- country_event = {
- id = leviathans.97
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- exists = event_target:pc_home
- event_target:pc_home = {
- exists = owner
- owner = {
- NOT = { has_communications = root }
- has_relation_flag = {
- flag = ongoing_enclave_investigation
- who = root
- }
- }
- }
- }
- immediate = {
- event_target:pc_home = {
- if = {
- limit = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- has_relation_flag = {
- flag = ongoing_enclave_investigation
- who = root
- }
- }
- }
- owner = {
- root = { establish_communications_no_message = prev }
- country_event = { id = leviathans.98 }
- }
- }
- }
- }
- }
- # Enclave Establishes Communications
- country_event = {
- id = leviathans.98
- title = leviathans.98.name
- desc = leviathans.98.desc
- picture = GFX_evt_throne_room
- show_sound = event_radio_chatter
- is_triggered_only = yes
- after = {
- if = {
- limit = {
- OR = {
- has_ethic = ethic_xenophile
- has_ethic = ethic_fanatic_xenophile
- }
- }
- add_monthly_resource_mult = {
- resource = influence
- value = @tier1influencecontactxenophile
- min = @tier1influencecontactmin
- max = @tier1influencecontactmax
- }
- }
- else = {
- add_monthly_resource_mult = {
- resource = influence
- value = @tier1influencecontact
- min = @tier1influencecontactmin
- max = @tier1influencecontactmax
- }
- }
- hidden_effect = {
- if = {
- limit = {
- from = { has_country_flag = trader_enclave_country }
- }
- from = { country_event = { id = leviathans.101 } }
- break = yes
- }
- if = {
- limit = { from = { has_country_flag = artist_enclave_country } }
- from = { country_event = { id = leviathans.301 } }
- break = yes
- }
- if = {
- limit = { from = { has_country_flag = curator_enclave_country } }
- from = { country_event = { id = leviathans.501 } }
- break = yes
- }
- }
- }
- option = {
- name = SCUM
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- }
- option = {
- name = TASTY
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- }
- option = {
- name = EXTERMINATE
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- }
- option = {
- name = leviathans.98.a
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- }
- }
- # Communication Established
- country_event = {
- id = leviathans.99
- title = "leviathans.99.name"
- desc = leviathans.99.desc
- picture = GFX_evt_throne_room
- show_sound = event_radio_chatter
- is_triggered_only = yes
- immediate = { establish_communications_no_message = FROMFROM }
- after = {
- if = {
- limit = {
- OR = {
- has_ethic = ethic_xenophile
- has_ethic = ethic_fanatic_xenophile
- }
- }
- add_monthly_resource_mult = {
- resource = influence
- value = @tier2influencecontactxenophile
- min = @tier2influencecontactmin
- max = @tier2influencecontactmax
- }
- }
- else = {
- add_monthly_resource_mult = {
- resource = influence
- value = @tier2influencecontact
- min = @tier2influencecontactmin
- max = @tier2influencecontactmax
- }
- }
- hidden_effect = {
- if = {
- limit = {
- fromfrom = {
- has_country_flag = trader_enclave_country
- }
- }
- fromfrom = { country_event = { id = leviathans.101 } }
- break = yes
- }
- if = {
- limit = {
- fromfrom = {
- has_country_flag = artist_enclave_country
- }
- }
- fromfrom = {
- country_event = { id = leviathans.301 }
- }
- set_country_flag = enclave_artist_encountered
- break = yes
- }
- if = {
- limit = {
- fromfrom = {
- has_country_flag = curator_enclave_country
- }
- }
- fromfrom = { country_event = { id = leviathans.501 } }
- break = yes
- }
- }
- }
- option = {
- name = SCUM
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- }
- option = {
- name = TASTY
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- }
- option = {
- name = EXTERMINATE
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- }
- option = {
- name = "leviathans.98.a"
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- }
- }
- # Traders Main Menu #1 (Initial)
- country_event = {
- id = leviathans.100
- title = leviathans.100.name
- desc = leviathans.100a.desc
- desc = leviathans.100b.desc
- desc = leviathans.100c.desc
- desc = leviathans.100d.desc
- desc = leviathans.100e.desc
- desc = leviathans.100f.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- trigger = {
- from = {
- is_country_type = enclave
- has_country_flag = trader_enclave_country_1
- }
- NOT = { has_country_flag = attacked_xuracorp }
- NOT = { has_country_flag = trader_enclave_diplomacy_engaged }
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- FROM = { save_event_target_as = traders }
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = SCUM
- custom_gui = "enclave_trader_option"
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = TASTY
- custom_gui = "enclave_trader_option"
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = EXTERMINATE
- custom_gui = "enclave_trader_option"
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = { # Strategic Resource
- name = leviathans.105.c
- custom_gui = "enclave_trader_option"
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- allow = {
- custom_tooltip = {
- fail_text = leviathans.105.c.sr2
- has_active_xuracorp_trade = no
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.131 }
- }
- }
- option = { # Hire Governor
- name = leviathans.105.z
- custom_gui = "enclave_trader_option"
- allow = {
- custom_tooltip = {
- text = leviathans.105.c.trust
- event_target:traders = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- custom_tooltip = {
- fail_text = already_hired_trader_governor
- NOR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- has_country_flag = hired_trader_governor_xur
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- has_country_flag = hired_trader_governor_rig
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- has_country_flag = hired_trader_governor_mut
- }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.125 }
- }
- }
- option = { # End Resource Deal
- name = leviathans.105.e
- custom_gui = "enclave_trader_option"
- trigger = {
- has_active_xuracorp_trade = yes
- }
- custom_tooltip = end_trade_1
- custom_tooltip = opinion-5
- hidden_effect = {
- remove_xuracorp_trades = yes
- event_target:traders = {
- add_trust = {
- who = root
- amount = -5
- }
- }
- }
- is_dialog_only = yes
- response_text = leviathans.105.e.response
- }
- option = {
- name = leviathans.105.d
- custom_gui = "enclave_trader_option"
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- default_hide_option = yes
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Traders Main Menu #2 (Initial)
- country_event = {
- id = leviathans.103
- title = leviathans.103.name
- desc = leviathans.103a.desc
- desc = leviathans.103b.desc
- desc = leviathans.103c.desc
- desc = leviathans.103d.desc
- desc = leviathans.103e.desc
- desc = leviathans.103f.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- trigger = {
- from = {
- is_country_type = enclave
- has_country_flag = trader_enclave_country_2
- }
- NOT = { has_country_flag = trader_enclave_diplomacy_engaged }
- NOT = { has_country_flag = attacked_riggans }
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- FROM = { save_event_target_as = traders }
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = SCUM
- custom_gui = "enclave_trader_option"
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- }
- option = {
- name = TASTY
- custom_gui = "enclave_trader_option"
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- }
- option = {
- name = EXTERMINATE
- custom_gui = "enclave_trader_option"
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- }
- option = { # Strategic Resource
- name = leviathans.105.c
- custom_gui = "enclave_trader_option"
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- allow = {
- custom_tooltip = {
- fail_text = leviathans.105.c.sr1
- has_active_riggan_trade = no
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.130 }
- }
- }
- option = { # Hire Governor
- name = leviathans.105.z
- custom_gui = "enclave_trader_option"
- allow = {
- custom_tooltip = {
- text = leviathans.105.c.trust
- event_target:traders = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- custom_tooltip = {
- fail_text = already_hired_trader_governor
- NOR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- has_country_flag = hired_trader_governor_xur
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- has_country_flag = hired_trader_governor_rig
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- has_country_flag = hired_trader_governor_mut
- }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.125 }
- }
- }
- option = { # End Resource Deal
- name = leviathans.105.e
- custom_gui = "enclave_trader_option"
- trigger = {
- has_active_riggan_trade = yes
- }
- custom_tooltip = end_trade_2
- custom_tooltip = opinion-5
- hidden_effect = {
- remove_riggan_trades = yes
- event_target:traders = {
- add_trust = {
- who = root
- amount = -5
- }
- }
- }
- is_dialog_only = yes
- response_text = leviathans.105.e.response
- }
- option = {
- name = leviathans.105.d
- custom_gui = "enclave_trader_option"
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- default_hide_option = yes
- }
- }
- # Traders Main Menu #3 (Initial)
- country_event = {
- id = leviathans.104
- title = leviathans.104.name
- desc = leviathans.104a.desc
- desc = leviathans.104b.desc
- desc = leviathans.104c.desc
- desc = leviathans.104d.desc
- desc = leviathans.104e.desc
- desc = leviathans.104f.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- trigger = {
- from = {
- is_country_type = enclave
- has_country_flag = trader_enclave_country_3
- }
- NOT = { has_country_flag = trader_enclave_diplomacy_engaged }
- NOT = { has_country_flag = attacked_muutagans }
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- FROM = { save_event_target_as = traders }
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = SCUM
- custom_gui = "enclave_trader_option"
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- }
- option = {
- name = TASTY
- custom_gui = "enclave_trader_option"
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- }
- option = {
- name = EXTERMINATE
- custom_gui = "enclave_trader_option"
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- }
- option = { # Strategic Resource
- name = leviathans.105.c
- custom_gui = "enclave_trader_option"
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- allow = {
- custom_tooltip = {
- fail_text = leviathans.105.c.sr3
- has_active_muutagan_trade = no
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.132 }
- }
- }
- option = { # End Resource Deal
- name = leviathans.105.e
- custom_gui = "enclave_trader_option"
- trigger = {
- has_active_muutagan_trade = yes
- }
- custom_tooltip = end_trade_3
- custom_tooltip = opinion-5
- hidden_effect = {
- remove_muutagan_trades = yes
- event_target:traders = {
- add_trust = {
- who = root
- amount = -5
- }
- }
- }
- is_dialog_only = yes
- response_text = leviathans.105.e.response
- }
- option = { # Hire Governor
- name = leviathans.105.z
- custom_gui = "enclave_trader_option"
- allow = {
- custom_tooltip = {
- text = leviathans.105.c.trust
- event_target:traders = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- custom_tooltip = {
- fail_text = already_hired_trader_governor
- NOR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- has_country_flag = hired_trader_governor_xur
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- has_country_flag = hired_trader_governor_rig
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- has_country_flag = hired_trader_governor_mut
- }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.125 }
- }
- }
- option = {
- name = leviathans.105.d
- custom_gui = "enclave_trader_option"
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- default_hide_option = yes
- }
- }
- # Traders Main Menu #1
- country_event = {
- id = leviathans.105
- title = leviathans.100.name
- desc = leviathans.100a.desc
- desc = leviathans.100b.desc
- desc = leviathans.100c.desc
- desc = leviathans.100d.desc
- desc = leviathans.100e.desc
- desc = leviathans.100f.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = { # Strategic Resource
- name = leviathans.105.c
- custom_gui = "enclave_trader_option"
- allow = {
- custom_tooltip = {
- fail_text = leviathans.105.c.sr2
- has_active_xuracorp_trade = no
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.131 }
- }
- }
- option = { # Hire Governor
- name = leviathans.105.z
- custom_gui = "enclave_trader_option"
- allow = {
- custom_tooltip = {
- text = leviathans.105.c.trust
- event_target:traders = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- custom_tooltip = {
- fail_text = already_hired_trader_governor
- NOR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- has_country_flag = hired_trader_governor_xur
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- has_country_flag = hired_trader_governor_rig
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- has_country_flag = hired_trader_governor_mut
- }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.125 }
- }
- }
- option = { # End Resource Deal
- name = leviathans.105.e
- custom_gui = "enclave_trader_option"
- trigger = {
- has_active_xuracorp_trade = yes
- }
- custom_tooltip = end_trade_1
- custom_tooltip = opinion-5
- hidden_effect = {
- remove_xuracorp_trades = yes
- event_target:traders = {
- add_trust = {
- who = root
- amount = -5
- }
- }
- }
- is_dialog_only = yes
- response_text = leviathans.105.e.response
- }
- option = {
- name = leviathans.105.d
- default_hide_option = yes
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Traders Main Menu #2
- country_event = {
- id = leviathans.106
- title = leviathans.103.name
- desc = leviathans.103a.desc
- desc = leviathans.103b.desc
- desc = leviathans.103c.desc
- desc = leviathans.103d.desc
- desc = leviathans.103e.desc
- desc = leviathans.103f.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = { # Strategic Resource
- name = leviathans.105.c
- custom_gui = "enclave_trader_option"
- allow = {
- custom_tooltip = {
- fail_text = leviathans.105.c.sr1
- has_active_riggan_trade = no
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.130 }
- }
- }
- option = { # Hire Governor
- name = leviathans.105.z
- custom_gui = "enclave_trader_option"
- allow = {
- custom_tooltip = {
- text = leviathans.105.c.trust
- event_target:traders = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- custom_tooltip = {
- fail_text = already_hired_trader_governor
- NOR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- has_country_flag = hired_trader_governor_xur
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- has_country_flag = hired_trader_governor_rig
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- has_country_flag = hired_trader_governor_mut
- }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.125 }
- }
- }
- option = { # End Resource Deal
- name = leviathans.105.e
- custom_gui = "enclave_trader_option"
- trigger = {
- has_active_riggan_trade = yes
- }
- custom_tooltip = end_trade_2
- custom_tooltip = opinion-5
- hidden_effect = {
- remove_riggan_trades = yes
- event_target:traders = {
- add_trust = {
- who = root
- amount = -5
- }
- }
- }
- is_dialog_only = yes
- response_text = leviathans.105.e.response
- }
- option = {
- name = leviathans.105.d
- default_hide_option = yes
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Traders Main Menu #3
- country_event = {
- id = leviathans.107
- title = leviathans.104.name
- desc = leviathans.104a.desc
- desc = leviathans.104b.desc
- desc = leviathans.104c.desc
- desc = leviathans.104d.desc
- desc = leviathans.104e.desc
- desc = leviathans.104f.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = { # Strategic Resource
- name = leviathans.105.c
- custom_gui = "enclave_trader_option"
- allow = {
- custom_tooltip = {
- fail_text = leviathans.105.c.sr3
- has_active_muutagan_trade = no
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.132 }
- }
- }
- option = { # Hire Governor
- name = leviathans.105.z
- custom_gui = "enclave_trader_option"
- allow = {
- custom_tooltip = {
- text = leviathans.105.c.trust
- event_target:traders = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- custom_tooltip = {
- fail_text = already_hired_trader_governor
- NOR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- has_country_flag = hired_trader_governor_xur
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- has_country_flag = hired_trader_governor_rig
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- has_country_flag = hired_trader_governor_mut
- }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.125 }
- }
- }
- option = { # End Resource Deal
- name = leviathans.105.e
- custom_gui = "enclave_trader_option"
- trigger = {
- has_active_muutagan_trade = yes
- }
- custom_tooltip = end_trade_3
- custom_tooltip = opinion-5
- hidden_effect = {
- remove_muutagan_trades = yes
- event_target:traders = {
- add_trust = {
- who = root
- amount = -5
- }
- }
- }
- is_dialog_only = yes
- response_text = leviathans.105.e.response
- }
- option = {
- name = leviathans.105.d
- default_hide_option = yes
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Trader Opinion from Resource Deals
- country_event = {
- id = leviathans.122
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- exists = event_target:traders
- OR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- has_active_xuracorp_trade = yes
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- has_active_riggan_trade = yes
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- has_active_muutagan_trade = yes
- }
- }
- }
- immediate = {
- if = {
- limit = {
- OR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- OR = {
- has_modifier = enclave_trade_1_xur
- has_modifier = enclave_trade_2_xur
- }
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- OR = {
- has_modifier = enclave_trade_1_rig
- has_modifier = enclave_trade_2_rig
- }
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- OR = {
- has_modifier = enclave_trade_1_mut
- has_modifier = enclave_trade_2_mut
- }
- }
- }
- }
- event_target:traders = {
- add_trust = {
- who = root
- amount = 1
- }
- }
- country_event = { id = leviathans.122 days = 30 }
- }
- else_if = {
- limit = {
- OR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- OR = {
- has_modifier = enclave_trade_3_xur
- has_modifier = enclave_trade_4_xur
- }
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- OR = {
- has_modifier = enclave_trade_3_rig
- has_modifier = enclave_trade_4_rig
- }
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- OR = {
- has_modifier = enclave_trade_3_mut
- has_modifier = enclave_trade_4_mut
- }
- }
- }
- }
- event_target:traders = {
- add_trust = {
- who = root
- amount = 2
- }
- }
- country_event = { id = leviathans.122 days = 30 }
- }
- else_if = {
- limit = {
- OR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- has_modifier = enclave_trade_5_xur
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- has_modifier = enclave_trade_5_rig
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- has_modifier = enclave_trade_5_mut
- }
- }
- }
- event_target:traders = {
- add_trust = {
- who = root
- amount = 3
- }
- }
- country_event = { id = leviathans.122 days = 30 }
- }
- }
- }
- # Hire Governor
- country_event = {
- id = leviathans.125
- title = leviathans.125.name.z1
- desc = leviathans.125.desc.z1
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- }
- option = {
- name = leviathans.125.z1
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 500 }
- custom_tooltip = {
- fail_text = already_hired_trader_governor
- NOR = {
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_1 }
- has_country_flag = hired_trader_governor_xur
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_2 }
- has_country_flag = hired_trader_governor_rig
- }
- AND = {
- event_target:traders = { has_country_flag = trader_enclave_country_3 }
- has_country_flag = hired_trader_governor_mut
- }
- }
- }
- }
- add_resource = { energy = -500 }
- hidden_effect = {
- create_leader = {
- event_leader = yes
- class = governor
- species = event_target:traders.leader.species
- name = random
- skill = 5
- traits = {
- trait = leader_trait_enclave_trader
- }
- gender = indeterminable
- set_age = 100
- immortal = yes
- effect = {
- set_leader_flag = trader_leader
- root = { set_country_flag = recruited_trader_leader }
- }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_1 } }
- set_country_flag = hired_trader_governor_xur
- }
- else_if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_2 } }
- set_country_flag = hired_trader_governor_rig
- }
- else_if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_3 } }
- set_country_flag = hired_trader_governor_mut
- }
- remove_country_flag = trader_enclave_diplomacy_engaged
- country_event = { id = leviathans.126 }
- }
- custom_tooltip = recruit_trader_leader
- }
- option = {
- name = leviathans.110.d
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_1 } }
- country_event = { id = leviathans.105 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_2 } }
- country_event = { id = leviathans.106 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_3 } }
- country_event = { id = leviathans.107 }
- }
- }
- }
- option = {
- name = leviathans.105.d
- default_hide_option = yes
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Hire Governor Reply Event
- country_event = {
- id = leviathans.126
- title = leviathans.126.name
- desc = leviathans.126.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- }
- option = {
- name = leviathans.110.d
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_1 } }
- country_event = { id = leviathans.105 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_2 } }
- country_event = { id = leviathans.106 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_3 } }
- country_event = { id = leviathans.107 }
- }
- }
- }
- option = {
- name = GOODBYE
- custom_gui = "enclave_trader_option"
- default_hide_option = yes
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Strategic Resource 1
- country_event = {
- id = leviathans.130
- title = leviathans.103.name
- desc = leviathans.130.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.130.a
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 500 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_riggans }
- }
- }
- #response_text = leviathans.130.a.reply
- add_resource = { energy = -500 }
- custom_tooltip = opinion5
- add_modifier = {
- modifier = enclave_trade_1_rig
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 5
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = riggan_trade
- }
- country_event = { id = leviathans.135 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.130.b
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_riggans }
- }
- }
- #response_text = leviathans.130.a.reply
- add_resource = { energy = -1000 }
- custom_tooltip = opinion10
- add_modifier = {
- modifier = enclave_trade_2_rig
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 10
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = riggan_trade
- }
- country_event = { id = leviathans.135 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.130.c
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1500 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_riggans }
- }
- }
- #response_text = leviathans.130.a.reply
- add_resource = { energy = -1500 }
- custom_tooltip = opinion15
- add_modifier = {
- modifier = enclave_trade_3_rig
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 15
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = riggan_trade
- }
- country_event = { id = leviathans.135 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.130.d
- custom_gui = "enclave_trader_option"
- trigger = {
- NOT = { has_country_flag = attacked_riggans }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2000 }
- custom_tooltip = {
- fail_text = riggan_deal_in_place
- NOR = {
- has_modifier = enclave_trade_1_rig
- has_modifier = enclave_trade_2_rig
- has_modifier = enclave_trade_3_rig
- has_modifier = enclave_trade_4_rig
- has_modifier = enclave_trade_5_rig
- }
- }
- }
- #response_text = leviathans.130.a.reply
- add_resource = { energy = -2000 }
- custom_tooltip = opinion20
- add_modifier = {
- modifier = enclave_trade_4_rig
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = riggan_trade
- }
- country_event = { id = leviathans.135 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.130.e
- custom_gui = "enclave_trader_option"
- trigger = {
- NOT = { has_country_flag = attacked_riggans }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2500 }
- custom_tooltip = {
- fail_text = riggan_deal_in_place
- NOR = {
- has_modifier = enclave_trade_1_rig
- has_modifier = enclave_trade_2_rig
- has_modifier = enclave_trade_3_rig
- has_modifier = enclave_trade_4_rig
- has_modifier = enclave_trade_5_rig
- }
- }
- }
- #response_text = leviathans.130.a.reply
- add_resource = { energy = -2500 }
- custom_tooltip = opinion25
- add_modifier = {
- modifier = enclave_trade_5_rig
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 25
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = riggan_trade
- }
- country_event = { id = leviathans.135 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.110.d
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_1 } }
- country_event = { id = leviathans.105 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_2 } }
- country_event = { id = leviathans.106 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_3 } }
- country_event = { id = leviathans.107 }
- }
- }
- }
- option = {
- name = leviathans.110.e
- custom_gui = "enclave_trader_option"
- default_hide_option = yes
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Strategic Resource 2
- country_event = {
- id = leviathans.131
- title = leviathans.100.name
- desc = leviathans.131.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.131.a
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 500 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_xuracorp }
- }
- }
- #response_text = leviathans.131.a.reply
- add_resource = { energy = -500 }
- custom_tooltip = opinion5
- add_modifier = {
- modifier = enclave_trade_1_xur
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 5
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = xuracorp_trade
- }
- country_event = { id = leviathans.136 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.131.b
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_xuracorp }
- }
- }
- #response_text = leviathans.131.a.reply
- add_resource = { energy = -1000 }
- custom_tooltip = opinion10
- add_modifier = {
- modifier = enclave_trade_2_xur
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 10
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = xuracorp_trade
- }
- country_event = { id = leviathans.136 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.131.c
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1500 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_xuracorp }
- }
- }
- #response_text = leviathans.131.a.reply
- add_resource = { energy = -1500 }
- custom_tooltip = opinion15
- add_modifier = {
- modifier = enclave_trade_3_xur
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 15
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = xuracorp_trade
- }
- country_event = { id = leviathans.136 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.131.d
- custom_gui = "enclave_trader_option"
- trigger = {
- NOT = { has_country_flag = attacked_xuracorp }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2000 }
- custom_tooltip = {
- fail_text = xuracorp_deal_in_place
- NOR = {
- has_modifier = enclave_trade_1_xur
- has_modifier = enclave_trade_2_xur
- has_modifier = enclave_trade_3_xur
- has_modifier = enclave_trade_4_xur
- has_modifier = enclave_trade_5_xur
- }
- }
- }
- #response_text = leviathans.131.a.reply
- add_resource = { energy = -2000 }
- custom_tooltip = opinion20
- add_modifier = {
- modifier = enclave_trade_4_xur
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = xuracorp_trade
- }
- country_event = { id = leviathans.136 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.131.e
- custom_gui = "enclave_trader_option"
- trigger = {
- NOT = { has_country_flag = attacked_xuracorp }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2500 }
- custom_tooltip = {
- fail_text = xuracorp_deal_in_place
- NOR = {
- has_modifier = enclave_trade_1_xur
- has_modifier = enclave_trade_2_xur
- has_modifier = enclave_trade_3_xur
- has_modifier = enclave_trade_4_xur
- has_modifier = enclave_trade_5_xur
- }
- }
- }
- #response_text = leviathans.131.a.reply
- add_resource = { energy = -2500 }
- custom_tooltip = opinion25
- add_modifier = {
- modifier = enclave_trade_5_xur
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 25
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = xuracorp_trade
- }
- country_event = { id = leviathans.136 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.110.d
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_1 } }
- country_event = { id = leviathans.105 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_2 } }
- country_event = { id = leviathans.106 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_3 } }
- country_event = { id = leviathans.107 }
- }
- }
- }
- option = {
- name = leviathans.110.e
- custom_gui = "enclave_trader_option"
- default_hide_option = yes
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Strategic Resource 3
- country_event = {
- id = leviathans.132
- title = leviathans.104.name
- desc = leviathans.132.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.132.a
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 500 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_muutagans }
- }
- }
- #response_text = leviathans.132.a.reply
- add_resource = { energy = -500 }
- custom_tooltip = opinion5
- add_modifier = {
- modifier = enclave_trade_1_mut
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 5
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = muutagan_trade
- }
- country_event = { id = leviathans.137 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.132.b
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_muutagans }
- }
- }
- #response_text = leviathans.132.a.reply
- add_resource = { energy = -1000 }
- custom_tooltip = opinion10
- add_modifier = {
- modifier = enclave_trade_2_mut
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 10
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = muutagan_trade
- }
- country_event = { id = leviathans.137 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.132.c
- custom_gui = "enclave_trader_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1500 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_muutagans }
- }
- }
- #response_text = leviathans.132.a.reply
- add_resource = { energy = -1500 }
- custom_tooltip = opinion15
- add_modifier = {
- modifier = enclave_trade_3_mut
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 15
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = muutagan_trade
- }
- country_event = { id = leviathans.137 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.132.d
- custom_gui = "enclave_trader_option"
- trigger = {
- NOT = { has_country_flag = attacked_muutagans }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2000 }
- custom_tooltip = {
- fail_text = muutagan_deal_in_place
- NOR = {
- has_modifier = enclave_trade_1_mut
- has_modifier = enclave_trade_2_mut
- has_modifier = enclave_trade_3_mut
- has_modifier = enclave_trade_4_mut
- has_modifier = enclave_trade_5_mut
- }
- }
- }
- #response_text = leviathans.132.a.reply
- add_resource = { energy = -2000 }
- custom_tooltip = opinion20
- add_modifier = {
- modifier = enclave_trade_4_mut
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = muutagan_trade
- }
- country_event = { id = leviathans.137 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.132.e
- custom_gui = "enclave_trader_option"
- trigger = {
- NOT = { has_country_flag = attacked_muutagans }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2500 }
- custom_tooltip = {
- fail_text = muutagan_deal_in_place
- NOR = {
- has_modifier = enclave_trade_1_mut
- has_modifier = enclave_trade_2_mut
- has_modifier = enclave_trade_3_mut
- has_modifier = enclave_trade_4_mut
- has_modifier = enclave_trade_5_mut
- }
- }
- }
- #response_text = leviathans.132.a.reply
- add_resource = { energy = -2500 }
- custom_tooltip = opinion25
- add_modifier = {
- modifier = enclave_trade_5_mut
- days = 3600
- }
- hidden_effect = {
- event_target:traders = {
- add_trust = {
- who = root
- amount = 25
- }
- }
- set_relation_flag = {
- who = event_target:traders
- flag = muutagan_trade
- }
- country_event = { id = leviathans.137 days = 3600 }
- country_event = { id = leviathans.133 }
- }
- }
- option = {
- name = leviathans.110.d
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_1 } }
- country_event = { id = leviathans.105 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_2 } }
- country_event = { id = leviathans.106 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_3 } }
- country_event = { id = leviathans.107 }
- }
- }
- }
- option = {
- name = leviathans.110.e
- custom_gui = "enclave_trader_option"
- default_hide_option = yes
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Strategic Resource Reply Event
- country_event = {
- id = leviathans.133
- title = leviathans.133.name
- desc = {
- text = leviathans.131.a.reply
- trigger = {
- event_target:traders = {
- has_country_flag = trader_enclave_country_1
- }
- }
- }
- desc = {
- text = leviathans.130.a.reply
- trigger = {
- event_target:traders = {
- has_country_flag = trader_enclave_country_2
- }
- }
- }
- desc = {
- text = leviathans.132.a.reply
- trigger = {
- event_target:traders = {
- has_country_flag = trader_enclave_country_3
- }
- }
- }
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- }
- option = {
- name = leviathans.110.d
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_1 } }
- country_event = { id = leviathans.105 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_2 } }
- country_event = { id = leviathans.106 }
- }
- if = {
- limit = { event_target:traders = { has_country_flag = trader_enclave_country_3 } }
- country_event = { id = leviathans.107 }
- }
- }
- }
- option = {
- name = GOODBYE
- custom_gui = "enclave_trader_option"
- default_hide_option = yes
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- }
- # Remove Riggan Trade Relation Flag (HIDDEN)
- country_event = {
- id = leviathans.135
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- remove_relation_flag = {
- who = event_target:traders
- flag = riggan_trade
- }
- country_event = { id = leviathans.151 }
- }
- }
- ## Remove XuraCorp Trade Relation Flag (HIDDEN)
- country_event = {
- id = leviathans.136
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- remove_relation_flag = {
- who = event_target:traders
- flag = xuracorp_trade
- }
- country_event = { id = leviathans.150 }
- }
- }
- ## Remove Muutagan Trade Relation Flag (HIDDEN)
- country_event = {
- id = leviathans.137
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- remove_relation_flag = {
- who = event_target:traders
- flag = muutagan_trade
- }
- country_event = { id = leviathans.152 }
- }
- }
- # Port
- country_event = {
- id = leviathans.101
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- random_owned_ship = {
- solar_system = { save_event_target_as = trader_system }
- }
- from = {
- country_event = { id = leviathans.102 }
- }
- }
- }
- # Trader Introduction
- country_event = {
- id = leviathans.102
- title = leviathans.102.name
- desc = {
- text = leviathans.102a.desc
- trigger = {
- FROM = { has_country_flag = trader_enclave_country_1 }
- }
- }
- desc = {
- text = leviathans.102b.desc
- trigger = {
- FROM = { has_country_flag = trader_enclave_country_2 }
- }
- }
- desc = {
- text = leviathans.102c.desc
- trigger = {
- FROM = { has_country_flag = trader_enclave_country_3 }
- }
- }
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = from
- room = enclave_trader_room
- }
- option = {
- name = SCUM
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = TASTY
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = EXTERMINATE
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = leviathans.502.a
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- custom_gui = "enclave_trader_option"
- }
- }
- # Trader Destroyed (HIDDEN)
- country_event = {
- id = leviathans.140
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = enclave
- has_country_flag = trader_enclave_country
- FROMFROM = {
- is_ship_size = enclave_station
- }
- }
- immediate = {
- FROMFROM = {
- solar_system = { save_event_target_as = trader_system }
- }
- FROM = {
- country_event = { id = leviathans.141 }
- save_event_target_as = trader_destroyer
- }
- every_country = {
- limit = {
- is_country_type = default
- has_communications = ROOT
- NOT = { is_country = event_target:trader_destroyer }
- }
- if = {
- limit = {
- ROOT = { has_country_flag = trader_enclave_country_1 }
- }
- country_event = { id = leviathans.142 }
- }
- if = {
- limit = {
- ROOT = { has_country_flag = trader_enclave_country_2 }
- }
- country_event = { id = leviathans.143 }
- }
- if = {
- limit = {
- ROOT = { has_country_flag = trader_enclave_country_3 }
- }
- country_event = { id = leviathans.144 }
- }
- }
- random_playable_country = {
- if = {
- limit = {
- ROOT = { has_country_flag = trader_enclave_country_1 }
- }
- observer_event = { id = observer.8 }
- }
- if = {
- limit = {
- ROOT = { has_country_flag = trader_enclave_country_2 }
- }
- observer_event = { id = observer.9 }
- }
- if = {
- limit = {
- ROOT = { has_country_flag = trader_enclave_country_3 }
- }
- observer_event = { id = observer.10 }
- }
- }
- }
- }
- # Any Trader Destroyed (Destroyer)
- country_event = {
- id = leviathans.141
- title = "leviathans.141"
- desc = "leviathans.141.desc"
- picture = GFX_evt_space_debris
- location = event_target:trader_system
- show_sound = event_ship_bridge
- is_triggered_only = yes
- immediate = {
- set_country_flag = destroyed_trader
- every_country = {
- limit = {
- is_country_type = default
- NOR = {
- is_same_value = root
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- add_opinion_modifier = {
- who = root
- modifier = opinion_destroyed_trader
- }
- }
- if = {
- limit = { FROM = { has_country_flag = trader_enclave_country_1 } }
- remove_xuracorp_trades = yes
- remove_relation_flag = {
- who = FROM
- flag = xuracorp_trade
- }
- }
- else_if = {
- limit = { FROM = { has_country_flag = trader_enclave_country_2 } }
- remove_riggan_trades = yes
- remove_relation_flag = {
- who = FROM
- flag = riggan_trade
- }
- }
- else_if = {
- limit = { FROM = { has_country_flag = trader_enclave_country_3 } }
- remove_muutagan_trades = yes
- remove_relation_flag = {
- who = FROM
- flag = muutagan_trade
- }
- }
- }
- option = {
- name = EXCELLENT
- add_resource = {
- minerals = 2000
- energy = 2000
- }
- }
- }
- # XuraCorp Destroyed
- country_event = {
- id = leviathans.142
- title = "leviathans.141"
- desc = {
- text = leviathans.142.a.desc
- trigger = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = xuracorp_trade
- }
- }
- has_communications = event_target:trader_destroyer
- }
- }
- desc = {
- text = leviathans.142.b.desc
- trigger = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = xuracorp_trade
- }
- }
- NOT = { has_communications = event_target:trader_destroyer }
- }
- }
- desc = {
- text = leviathans.142.c.desc
- trigger = {
- has_relation_flag = {
- who = FROM
- flag = xuracorp_trade
- }
- has_communications = event_target:trader_destroyer
- }
- }
- desc = {
- text = leviathans.142.d.desc
- trigger = {
- has_relation_flag = {
- who = FROM
- flag = xuracorp_trade
- }
- NOT = { has_communications = event_target:trader_destroyer }
- }
- }
- picture = GFX_evt_exploding_ship
- location = event_target:trader_system
- show_sound = event_ship_explosion
- is_triggered_only = yes
- immediate = {
- set_global_flag = xuracorp_destroyed
- remove_xuracorp_trades = yes
- remove_relation_flag = {
- who = FROM
- flag = xuracorp_trade
- }
- }
- option = {
- name = "leviathans.142.a"
- }
- }
- # Riggans Destroyed
- country_event = {
- id = leviathans.143
- title = "leviathans.141"
- desc = {
- text = leviathans.143.a.desc
- trigger = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = riggan_trade
- }
- }
- has_communications = event_target:trader_destroyer
- }
- }
- desc = {
- text = leviathans.143.b.desc
- trigger = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = riggan_trade
- }
- }
- NOT = { has_communications = event_target:trader_destroyer }
- }
- }
- desc = {
- text = leviathans.143.c.desc
- trigger = {
- has_relation_flag = {
- who = FROM
- flag = riggan_trade
- }
- has_communications = event_target:trader_destroyer
- }
- }
- desc = {
- text = leviathans.143.d.desc
- trigger = {
- has_relation_flag = {
- who = FROM
- flag = riggan_trade
- }
- NOT = { has_communications = event_target:trader_destroyer }
- }
- }
- picture = GFX_evt_exploding_ship
- location = event_target:trader_system
- show_sound = event_ship_explosion
- is_triggered_only = yes
- immediate = {
- set_global_flag = riggans_destroyed
- remove_riggan_trades = yes
- remove_relation_flag = {
- who = FROM
- flag = riggan_trade
- }
- }
- option = {
- name = "leviathans.143.a"
- }
- }
- # Muutagans Destroyed
- country_event = {
- id = leviathans.144
- title = "leviathans.141"
- desc = {
- text = leviathans.144.a.desc
- trigger = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = muutagan_trade
- }
- }
- has_communications = event_target:trader_destroyer
- }
- }
- desc = {
- text = leviathans.144.b.desc
- trigger = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = muutagan_trade
- }
- }
- NOT = { has_communications = event_target:trader_destroyer }
- }
- }
- desc = {
- text = leviathans.144.c.desc
- trigger = {
- has_relation_flag = {
- who = FROM
- flag = muutagan_trade
- }
- has_communications = event_target:trader_destroyer
- }
- }
- desc = {
- text = leviathans.144.d.desc
- trigger = {
- has_relation_flag = {
- who = FROM
- flag = muutagan_trade
- }
- NOT = { has_communications = event_target:trader_destroyer }
- }
- }
- picture = GFX_evt_exploding_ship
- location = event_target:trader_system
- show_sound = event_ship_explosion
- is_triggered_only = yes
- immediate = {
- set_global_flag = muutagans_destroyed
- remove_muutagan_trades = yes
- remove_relation_flag = {
- who = FROM
- flag = muutagan_trade
- }
- }
- option = {
- name = "leviathans.144.a"
- }
- }
- # Continue Trade? (XuraCorp)
- country_event = {
- id = leviathans.150
- title = leviathans.100.name
- desc = leviathans.150.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- trigger = {
- NOR = {
- has_global_flag = xuracorp_destroyed
- has_country_flag = attacked_xuracorp
- }
- }
- option = {
- name = leviathans.150.a
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- country_event = { id = leviathans.131 }
- }
- }
- option = {
- name = leviathans.150.b
- custom_gui = "enclave_trader_option"
- }
- }
- # Continue Trade? (Riggans)
- country_event = {
- id = leviathans.151
- title = leviathans.103.name
- desc = leviathans.151.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- trigger = {
- NOR = {
- has_global_flag = riggans_destroyed
- has_country_flag = attacked_riggans
- }
- }
- option = {
- name = leviathans.151.a
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- country_event = { id = leviathans.130 }
- }
- }
- option = {
- name = leviathans.151.b
- custom_gui = "enclave_trader_option"
- }
- }
- # Continue Trade? (Muutagans)
- country_event = {
- id = leviathans.152
- title = leviathans.104.name
- desc = leviathans.152.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- trigger = {
- NOR = {
- has_global_flag = muutagans_destroyed
- has_country_flag = attacked_muutagans
- }
- }
- option = {
- name = leviathans.152.a
- custom_gui = "enclave_trader_option"
- hidden_effect = {
- country_event = { id = leviathans.132 }
- }
- }
- option = {
- name = leviathans.152.b
- custom_gui = "enclave_trader_option"
- }
- }
- # Attacked XuraCorp (HIDDEN)
- country_event = {
- id = leviathans.155
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = default
- FROM = { has_country_flag = trader_enclave_country_1 }
- }
- immediate = {
- FROM = {
- save_event_target_as = traders
- add_trust = {
- who = ROOT
- amount = -100
- }
- }
- set_country_flag = attacked_xuracorp
- if = {
- limit = {
- has_active_xuracorp_trade = yes
- }
- remove_xuracorp_trades = yes
- remove_relation_flag = {
- who = FROM
- flag = xuracorp_trade
- }
- country_event = { id = leviathans.156 }
- }
- }
- }
- # Attacked XuraCorp - Trade Agreement Terminated
- country_event = {
- id = leviathans.156
- title = leviathans.100.name
- desc = leviathans.156.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- option = {
- name = leviathans.156.a
- custom_gui = "enclave_trader_option"
- }
- }
- # Attacked XuraCorp - Refuses Communications
- country_event = {
- id = leviathans.157
- title = leviathans.100.name
- desc = leviathans.157a.desc
- desc = leviathans.157b.desc
- desc = leviathans.157c.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- trigger = {
- FROM = {
- is_country_type = enclave
- has_country_flag = trader_enclave_country_1
- }
- has_country_flag = attacked_xuracorp
- NOT = { has_country_flag = trader_enclave_diplomacy_engaged }
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- FROM = { save_event_target_as = traders }
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = SCUM
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = TASTY
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = EXTERMINATE
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = leviathans.156.a
- custom_gui = "enclave_trader_option"
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- default_hide_option = yes
- }
- }
- # Attacked Riggans (HIDDEN)
- country_event = {
- id = leviathans.158
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = default
- FROM = { has_country_flag = trader_enclave_country_2 }
- }
- immediate = {
- FROM = {
- save_event_target_as = traders
- add_trust = {
- who = ROOT
- amount = -100
- }
- }
- set_country_flag = attacked_riggans
- if = {
- limit = {
- has_active_riggan_trade = yes
- }
- remove_riggan_trades = yes
- remove_relation_flag = {
- who = FROM
- flag = riggan_trade
- }
- country_event = { id = leviathans.159}
- }
- }
- }
- # Attacked Riggans - Trade Agreement Terminated
- country_event = {
- id = leviathans.159
- title = leviathans.103.name
- desc = leviathans.159.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- option = {
- name = leviathans.156.a
- custom_gui = "enclave_trader_option"
- }
- }
- # Attacked Riggans - Refuses Communications
- country_event = {
- id = leviathans.160
- title = leviathans.103.name
- desc = leviathans.160a.desc
- desc = leviathans.160b.desc
- desc = leviathans.160c.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- trigger = {
- FROM = {
- is_country_type = enclave
- has_country_flag = trader_enclave_country_2
- }
- has_country_flag = attacked_riggans
- NOT = { has_country_flag = trader_enclave_diplomacy_engaged }
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- FROM = { save_event_target_as = traders }
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = SCUM
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = TASTY
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = EXTERMINATE
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = leviathans.156.a
- custom_gui = "enclave_trader_option"
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- }
- }
- default_hide_option = yes
- }
- }
- # Attacked Muutagans (HIDDEN)
- country_event = {
- id = leviathans.161
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = default
- FROM = { has_country_flag = trader_enclave_country_3 }
- }
- immediate = {
- FROM = {
- save_event_target_as = traders
- add_trust = {
- who = ROOT
- amount = -100
- }
- }
- set_country_flag = attacked_muutagans
- if = {
- limit = {
- has_active_muutagan_trade = yes
- }
- remove_muutagan_trades = yes
- remove_relation_flag = {
- who = FROM
- flag = muutagan_trade
- }
- country_event = { id = leviathans.162 }
- }
- }
- }
- # Attacked Muutagans - Trade Agreement Terminated
- country_event = {
- id = leviathans.162
- title = leviathans.104.name
- desc = leviathans.162.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- option = {
- name = leviathans.156.a
- custom_gui = "enclave_trader_option"
- }
- }
- # Attacked Muutagans - Refuses Communications
- country_event = {
- id = leviathans.163
- title = leviathans.104.name
- desc = leviathans.163a.desc
- desc = leviathans.163b.desc
- desc = leviathans.163c.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_trader_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:traders
- room = enclave_trader_room
- }
- trigger = {
- FROM = {
- is_country_type = enclave
- has_country_flag = trader_enclave_country_3
- }
- has_country_flag = attacked_muutagans
- NOT = { has_country_flag = trader_enclave_diplomacy_engaged }
- }
- immediate = {
- set_country_flag = trader_enclave_diplomacy_engaged
- FROM = { save_event_target_as = traders }
- }
- after = {
- hidden_effect = {
- remove_country_flag = trader_enclave_diplomacy_engaged
- }
- }
- option = {
- name = SCUM
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = TASTY
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = EXTERMINATE
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- custom_gui = "enclave_trader_option"
- }
- option = {
- name = leviathans.156.a
- custom_gui = "enclave_trader_option"
- trigger = { NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator } }
- default_hide_option = yes
- }
- }
- # No More Energy - Trades Canceled
- event = {
- id = leviathans.170
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- any_country = {
- is_country_type = default
- resource_stockpile_compare = { resource = energy value <= 0 }
- OR = {
- has_active_xuracorp_trade = yes
- has_active_riggan_trade = yes
- has_active_muutagan_trade = yes
- }
- }
- }
- immediate = {
- every_country = {
- limit = {
- is_country_type = default
- resource_stockpile_compare = { resource = energy value <= 0 }
- OR = {
- has_active_xuracorp_trade = yes
- has_active_riggan_trade = yes
- has_active_muutagan_trade = yes
- }
- }
- country_event = { id = leviathans.171 }
- }
- }
- }
- # No More Energy - Trades Canceled Notification
- country_event = {
- id = leviathans.171
- title = "leviathans.171.name"
- desc = "leviathans.171.desc"
- picture = GFX_evt_mining_operations
- show_sound = event_radio_chatter
- is_triggered_only = yes
- immediate = {
- if = {
- limit = {
- OR = {
- has_modifier = enclave_trade_1_xur
- has_modifier = enclave_trade_2_xur
- has_modifier = enclave_trade_3_xur
- has_modifier = enclave_trade_4_xur
- has_modifier = enclave_trade_5_xur
- }
- }
- switch = {
- trigger = has_modifier
- enclave_trade_1_xur = { remove_modifier = enclave_trade_1_xur }
- enclave_trade_2_xur = { remove_modifier = enclave_trade_2_xur }
- enclave_trade_3_xur = { remove_modifier = enclave_trade_3_xur }
- enclave_trade_4_xur = { remove_modifier = enclave_trade_4_xur }
- enclave_trade_5_xur = { remove_modifier = enclave_trade_5_xur }
- }
- random_country = {
- limit = { has_country_flag = trader_enclave_country_1 }
- add_trust = {
- who = root
- amount = -20
- }
- }
- }
- if = {
- limit = {
- OR = {
- has_modifier = enclave_trade_1_rig
- has_modifier = enclave_trade_2_rig
- has_modifier = enclave_trade_3_rig
- has_modifier = enclave_trade_4_rig
- has_modifier = enclave_trade_5_rig
- }
- }
- switch = {
- trigger = has_modifier
- enclave_trade_1_rig = { remove_modifier = enclave_trade_1_rig }
- enclave_trade_2_rig = { remove_modifier = enclave_trade_2_rig }
- enclave_trade_3_rig = { remove_modifier = enclave_trade_3_rig }
- enclave_trade_4_rig = { remove_modifier = enclave_trade_4_rig }
- enclave_trade_5_rig = { remove_modifier = enclave_trade_5_rig }
- }
- random_country = {
- limit = { has_country_flag = trader_enclave_country_2 }
- add_trust = {
- who = root
- amount = -20
- }
- }
- }
- if = {
- limit = {
- OR = {
- has_modifier = enclave_trade_1_mut
- has_modifier = enclave_trade_2_mut
- has_modifier = enclave_trade_3_mut
- has_modifier = enclave_trade_4_mut
- has_modifier = enclave_trade_5_mut
- }
- }
- switch = {
- trigger = has_modifier
- enclave_trade_1_mut = { remove_modifier = enclave_trade_1_mut }
- enclave_trade_2_mut = { remove_modifier = enclave_trade_2_mut }
- enclave_trade_3_mut = { remove_modifier = enclave_trade_3_mut }
- enclave_trade_4_mut = { remove_modifier = enclave_trade_4_mut }
- enclave_trade_5_mut = { remove_modifier = enclave_trade_5_mut }
- }
- random_country = {
- limit = { has_country_flag = trader_enclave_country_3 }
- add_trust = {
- who = root
- amount = -20
- }
- }
- }
- }
- option = {
- name = leviathans.171.a
- custom_tooltip = enclave_energy_trade_ended
- custom_tooltip = opinion-20
- }
- }
- # Artists Gatekeeper so the from scope doesn't break or refuse to pass trigger when we keep calling leviathans.300 from both on_custom_diplomacy and leviathans.30x events
- country_event = {
- id = leviathans.299
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- from = {
- is_country_type = enclave
- has_country_flag = artist_enclave_country
- }
- }
- immediate = {
- if = {
- limit = {
- NOT = { exists = event_target:artist_enclave_country }
- }
- from = {
- save_global_event_target_as = artist_enclave_country
- }
- }
- country_event = { id = leviathans.300 }
- }
- }
- # Artists
- country_event = {
- id = leviathans.300
- title = leviathans.300.name
- desc = {
- trigger = {
- switch = {
- trigger = has_country_flag
- artist_enclave_diplomacy_continued = { text = leviathans.300.desc.continued }
- recently_purchased_art = { text = leviathans.302.a.reply }
- recently_purchased_ministry = { text = leviathans.316.a.reply }
- recently_purchased_patron = { text = leviathans.304.a.reply }
- recently_purchased_festival = { text = leviathans.303.a.reply }
- default = { text = leviathans.300.desc }
- }
- }
- }
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- trigger = {
- OR = {
- OR = {
- has_country_flag = artist_enclave_diplomacy_continued
- NOT = { has_country_flag = artist_enclave_diplomacy_engaged }
- }
- has_country_flag = recently_purchased_art
- has_country_flag = recently_purchased_ministry
- has_country_flag = recently_purchased_patron
- has_country_flag = recently_purchased_festival
- }
- NOT = { has_country_flag = enclave_artist_ignores }
- }
- immediate = {
- save_event_target_as = my_country
- set_country_flag = artist_enclave_diplomacy_engaged
- }
- option = {
- name = leviathans.300.a
- trigger = {
- check_variable = {
- which = artist_monument_purchased
- value < 5
- }
- NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }
- }
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_continued
- remove_country_flag = recently_purchased_art
- remove_country_flag = recently_purchased_ministry
- remove_country_flag = recently_purchased_patron
- remove_country_flag = recently_purchased_festival
- country_event = { id = leviathans.302 }
- }
- }
- option = {
- name = leviathans.300.a
- response_text = leviathans.300.a.reply
- is_dialog_only = yes
- trigger = {
- check_variable = {
- which = artist_monument_purchased
- value = 5
- }
- NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }
- }
- }
- option = {
- name = leviathans.300.b
- trigger = {
- NOT = { has_modifier = enclave_artist_patron }
- NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }
- }
- hidden_effect = {
- country_event = { id = leviathans.304 }
- }
- }
- #option = {
- # name = leviathans.300.b.stop
- # response_text = leviathans.300.b.reply
- # trigger = {
- # has_modifier = enclave_artist_patron
- # NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = #civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }#
- # }#
- # c#ustom_tooltip = opinion-5#
- # c#ustom_tooltip = leviathans.300.b.stop.tooltip#
- # r#emove_modifier = enclave_artist_patron#
- # h#idden_effect = {#
- # # remove_countr#y_flag = artist_enclave_diplomacy_engaged#
- # # remove_countr#y_flag = artist_patron#
- # # set_country_f#lag = enclave_stopped_#patronage#
- # # event_target:#artist_enclave_country# = {#
- # # add_trust# = {#
- # # who =# roo#t#
- # # amoun#t = #-5#
- # # }#
- # }#
- # }
- #}
- option = {
- name = leviathans.300.c
- trigger = {
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- has_country_flag = artist_festival_purchased
- has_ethic = ethic_gestalt_consciousness
- }
- }
- allow = {
- custom_tooltip = {
- text = leviathans.300.c.allow
- NOT = {
- has_country_flag = artist_festival_purchased
- }
- event_target:artist_enclave_country = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- }
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- remove_country_flag = artist_enclave_diplomacy_continued
- remove_country_flag = recently_purchased_art
- remove_country_flag = recently_purchased_ministry
- remove_country_flag = recently_purchased_patron
- remove_country_flag = recently_purchased_festival
- country_event = { id = leviathans.303 }
- }
- }
- option = {
- name = leviathans.300.c
- trigger = {
- has_country_flag = artist_festival_purchased
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_authority = auth_hive_mind
- }
- }
- allow = {
- custom_tooltip = {
- text = leviathans.300.c.outofstock
- NOT = {
- has_country_flag = artist_festival_purchased
- }
- }
- }
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- remove_country_flag = artist_enclave_diplomacy_continued
- remove_country_flag = recently_purchased_art
- remove_country_flag = recently_purchased_ministry
- remove_country_flag = recently_purchased_patron
- remove_country_flag = recently_purchased_festival
- country_event = { id = leviathans.303 }
- }
- }
- option = {
- name = leviathans.300.d
- trigger = { NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator } }
- is_dialog_only = yes
- response_text = leviathans.300.d.reply
- }
- # For those who have declined offer to build ministry of culture
- option = {
- name = leviathans.300.f
- trigger = {
- has_country_flag = enclave_artist_patron_event_1
- NOR = {
- has_valid_civic = civic_fanatic_purifiers
- has_valid_civic = civic_hive_devouring_swarm
- has_valid_civic = civic_machine_terminator
- has_country_flag = artist_building_patron
- }
- # former .316 trigger
- exists = event_target:artist_enclave_country
- has_modifier = enclave_artist_patron
- has_country_flag = artist_patron
- NOR = {
- has_country_flag = enclave_stopped_patronage
- has_country_flag = enclave_artist_ignores
- #has_country_flag = artist_building_patron
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.316 }
- }
- }
- option = { # Art College
- name = leviathans.300.g
- trigger = {
- NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }
- NOT = {
- event_target:artist_enclave_country = {
- has_country_flag = art_college@root
- }
- }
- any_system_within_border = {
- has_star_flag = enclave
- any_ship_in_system = {
- exists = owner
- owner = {
- is_same_value = event_target:artist_enclave_country
- }
- }
- }
- }
- allow = {
- custom_tooltip = {
- fail_text = leviathans.300.g.opinion
- event_target:artist_enclave_country = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.340 }
- }
- }
- option = {
- name = GOODBYE
- trigger = { NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator } }
- default_hide_option = yes
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- remove_country_flag = artist_enclave_diplomacy_continued
- remove_country_flag = recently_purchased_art
- remove_country_flag = recently_purchased_ministry
- remove_country_flag = recently_purchased_patron
- remove_country_flag = recently_purchased_festival
- }
- }
- option = {
- name = SCUM
- trigger = { has_valid_civic = civic_fanatic_purifiers }
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- remove_country_flag = artist_enclave_diplomacy_continued
- remove_country_flag = recently_purchased_art
- remove_country_flag = recently_purchased_ministry
- remove_country_flag = recently_purchased_patron
- remove_country_flag = recently_purchased_festival
- }
- }
- option = {
- name = TASTY
- trigger = { has_valid_civic = civic_hive_devouring_swarm }
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- remove_country_flag = artist_enclave_diplomacy_continued
- remove_country_flag = recently_purchased_art
- remove_country_flag = recently_purchased_ministry
- remove_country_flag = recently_purchased_patron
- remove_country_flag = recently_purchased_festival
- }
- }
- option = {
- name = EXTERMINATE
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- remove_country_flag = artist_enclave_diplomacy_continued
- remove_country_flag = recently_purchased_art
- remove_country_flag = recently_purchased_ministry
- remove_country_flag = recently_purchased_patron
- remove_country_flag = recently_purchased_festival
- }
- }
- #after = {
- # hidden_effect = {
- # remove_country_flag = artist_enclave_diplomacy_engaged
- # remove_country_flag = artist_enclave_diplomacy_continued
- # remove_country_flag = recently_purchased_art
- # remove_country_flag = recently_purchased_ministry
- # remove_country_flag = recently_purchased_patron
- # remove_country_flag = recently_purchased_festival
- # }
- #}
- }
- # Port
- country_event = {
- id = leviathans.301
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- from = {
- if = {
- limit = {
- NOT = { has_country_flag = enclave_artist_ignores }
- }
- country_event = { id = leviathans.315 }
- }
- else = {
- country_event = { id = leviathans.313 }
- }
- }
- }
- }
- # Artist Introduction
- country_event = {
- id = leviathans.315
- title = leviathans.300.name
- desc = leviathans.315.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- picture_event_data = {
- portrait = from
- room = enclave_artist_room
- }
- option = {
- name = INTERESTING
- custom_gui = "enclave_artist_option"
- trigger = {
- NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }
- }
- }
- option = {
- name = SCUM
- custom_gui = "enclave_artist_option"
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- }
- option = {
- name = TASTY
- custom_gui = "enclave_artist_option"
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- }
- option = {
- name = EXTERMINATE
- custom_gui = "enclave_artist_option"
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- }
- }
- #Trying to buy an Art Piece
- country_event = {
- id = leviathans.302
- title = leviathans.300.name
- desc = leviathans.302.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- trigger = {
- has_country_flag = artist_enclave_diplomacy_engaged
- }
- option = {
- name = DEAL
- add_resource = { energy = -600 }
- custom_tooltip = opinion10
- custom_tooltip = leviathans.302.a.tooltip
- allow = {
- resource_stockpile_compare = { resource = energy value >= 600 }
- }
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 10
- }
- }
- set_country_flag = recently_purchased_art
- if = {
- limit = {
- NOT = { has_country_flag = artist_monument_collector }
- }
- set_country_flag = artist_monument_collector
- set_variable = {
- which = artist_monument_purchased
- value = 1
- }
- }
- else_if = {
- limit = {
- has_country_flag = artist_monument_collector
- }
- change_variable = {
- which = artist_monument_purchased
- value = 1
- }
- }
- }
- }
- option = {
- name = TOOPOOR
- trigger = {
- resource_stockpile_compare = { resource = energy value < 600 }
- }
- hidden_effect = {
- set_country_flag = artist_enclave_diplomacy_continued
- }
- }
- option = {
- name = NODEAL
- default_hide_option = yes
- trigger = {
- NOT = { resource_stockpile_compare = { resource = energy value < 600 } }
- }
- hidden_effect = {
- set_country_flag = artist_enclave_diplomacy_continued
- }
- }
- after = {
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- country_event = { id = leviathans.300 }
- }
- }
- }
- # Option to buy ministry of culture
- country_event = {
- id = leviathans.316
- title = leviathans.316.name
- desc = leviathans.316.desc
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- is_triggered_only = yes
- # only fired by event option, see leviathans.300.f
- #trigger = {
- # exists = event_target:artist_enclave_country
- # has_modifier = enclave_artist_patron
- # has_country_flag = artist_patron
- # NOT = {
- # has_country_flag = enclave_stopped_patronage
- # has_country_flag = enclave_artist_ignores
- # has_country_flag = artist_building_patron
- # }
- #}
- option = {
- name = DEAL
- IF = {
- limit = { NOT = { has_ethic = ethic_gestalt_consciousness } }
- custom_tooltip = leviathans.322.a.tooltip
- }
- ELSE = { custom_tooltip = leviathans.322.a.tooltip.gesta }
- #response_text = leviathans.316.a.reply
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2000 }
- }
- add_resource = { energy = -2000 }
- hidden_effect = {
- set_country_flag = artist_building_patron
- set_country_flag = recently_purchased_ministry
- }
- }
- option = {
- name = TOOPOOR
- trigger = {
- resource_stockpile_compare = { resource = energy value < 2000 }
- }
- hidden_effect = {
- set_country_flag = artist_enclave_diplomacy_continued
- }
- }
- option = {
- name = NODEAL
- trigger = {
- NOT = { resource_stockpile_compare = { resource = energy value < 2000 } }
- }
- hidden_effect = {
- set_country_flag = artist_enclave_diplomacy_continued
- }
- }
- after = {
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- country_event = { id = leviathans.300 }
- }
- }
- }
- #Trying to hire Artist for a festival
- country_event = {
- id = leviathans.303
- title = leviathans.300.name
- desc = leviathans.303.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- trigger = {
- event_target:artist_enclave_country = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- option = {
- name = DEAL
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- }
- add_resource = { energy = -1000 }
- custom_tooltip = opinion15
- add_modifier = {
- modifier = enclave_artist_festival
- days = 1800
- }
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 15
- }
- }
- set_timed_country_flag = { flag = artist_festival_purchased days = 7200 }
- country_event = { id = leviathans.314 days = 1800 }
- set_country_flag = recently_purchased_festival
- country_event = { id = leviathans.309 }
- }
- }
- option = {
- name = TOOPOOR
- trigger = {
- resource_stockpile_compare = { resource = energy value < 1000 }
- }
- hidden_effect = {
- set_country_flag = artist_enclave_diplomacy_continued
- }
- }
- option = {
- name = NODEAL
- default_hide_option = yes
- hidden_effect = {
- set_country_flag = artist_enclave_diplomacy_continued
- }
- }
- after = {
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- country_event = { id = leviathans.300 }
- }
- }
- }
- #Trying to become a patron
- country_event = {
- id = leviathans.304
- title = leviathans.300.name
- desc = leviathans.304.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- trigger = {
- has_country_flag = artist_enclave_diplomacy_engaged
- }
- #option = {
- # name = DEAL
- # custom_tooltip = leviathans.304.a.tooltip
- # add_modifier = {
- # modifier = enclave_artist_patron
- # days = 3600
- # }
- # allow = {
- # custom_tooltip = {
- # text = guardian.deal.tooltip
- # OR = {
- # has_monthly_income = { resource = energy value >= 25 }
- # resource_stockpile_compare = { resource = energy value >= 25 }
- # }
- # OR = {
- # has_monthly_income = { resource = minerals value >= 25 }
- # resource_stockpile_compare = { resource = minerals value >= 25 }
- # }
- # OR = {
- # has_monthly_income = { resource = influence value >= 1 }
- # resource_stockpile_compare = { resource = influence value >= 1 }
- # }
- # }
- # }
- # hidden_effect = {
- # if = {
- # limit = {
- # has_country_flag = enclave_stopped_patronage
- # }
- # remove_country_flag = enclave_stopped_patronage
- # }
- # set_country_flag = artist_patron
- # set_country_flag = recently_purchased_patron
- # country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- # country_event = { id = leviathans.320 } #trigger patron followup events
- # country_event = { id = leviathans.308 days = 359 }
- # }
- #}
- option = {
- name = DEAL
- #custom_tooltip = leviathans.304.a.tooltip
- trigger = {
- num_pops < 61
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -1000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 360 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- option = {
- name = DEAL
- #custom_tooltip = leviathans.304.a.tooltip
- trigger = {
- num_pops > 60
- num_pops < 121
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -2000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 360 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- option = {
- name = DEAL
- #custom_tooltip = leviathans.304.a.tooltip
- trigger = {
- num_pops > 120
- num_pops < 181
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 3000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -3000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 360 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- option = {
- name = DEAL
- #custom_tooltip = leviathans.304.a.tooltip
- trigger = {
- num_pops > 180
- num_pops < 241
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 4000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -4000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 360 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- option = {
- name = DEAL
- #custom_tooltip = leviathans.304.a.tooltip
- trigger = { num_pops > 240 }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 5000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -5000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 360 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- option = {
- name = NODEAL
- default_hide_option = yes
- hidden_effect = {
- set_country_flag = artist_enclave_diplomacy_continued
- }
- }
- after = {
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- country_event = { id = leviathans.300 }
- }
- }
- }
- #building stuff
- planet_event = {
- id = leviathans.305
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- last_building_changed = building_artist_patron
- always = no
- }
- immediate = {
- owner = {
- change_variable = {
- which = artist_monuments_built
- value = -1
- }
- }
- }
- }
- ##Patron modifier checks
- #country_event = {
- # id = leviathans.306
- # hide_window = yes
- # is_triggered_only = yes
- #
- # trigger = {
- # has_modifier = enclave_artist_patron
- # has_country_flag = artist_patron
- # NOT = { has_country_flag = enclave_stopped_patronage }
- # }
- #
- # immediate = {
- # if = {
- # limit = {
- # OR = {
- # has_monthly_income = { resource = energy value >= 25 }
- # resource_stockpile_compare = { resource = energy value >= 25 }
- # }
- # OR = {
- # has_monthly_income = { resource = minerals value >= 25 }
- # resource_stockpile_compare = { resource = minerals value >= 25 }
- # }
- # OR = {
- # has_monthly_income = { resource = influence value >= 1 }
- # resource_stockpile_compare = { resource = influence value >= 1 }
- # }
- # }
- # event_target:artist_enclave_country = {
- # add_trust = {
- # who = root
- # amount = 1
- # }
- # }
- # country_event = { id = leviathans.306 days = 30 }
- # # else = {
- # # event_target:artist_enclave_country = {
- # # add_trust = {
- # # who = root
- # # amount = -5
- # # }
- # # }
- # # remove_modifier = enclave_artist_patron
- # # remove_country_flag = artist_patron
- # # country_event = { id = leviathans.307 }
- # # }
- # #}
- # }
- #}
- #Patronage ended because not enough resources
- #country_event = {
- # id = leviathans.307
- # title = leviathans.300.name
- # desc = leviathans.307.desc
- # picture = GFX_evt_space_station
- # show_sound = event_planetary_riot
- # location = event_target:this_planet
- #
- # is_triggered_only = yes
- #
- # immediate = {
- # random_planet = {
- # limit = {
- # has_planet_flag = guardians_artists_planet
- # }
- # save_event_target_as = this_planet
- # }
- # }
- # option = {
- # name = UNFORTUNATE
- # custom_tooltip = leviathans.307.a.tooltip
- # }
- #}
- # Patronage year counter for achievement
- country_event = {
- id = leviathans.308
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- if = {
- limit = {
- has_modifier = enclave_artist_patron
- check_variable = {
- which = patronage_duration
- value = 9
- }
- }
- set_country_flag = 10yr_patronage
- }
- else_if = {
- limit = {
- NOT = { has_modifier = enclave_artist_patron }
- }
- set_variable = {
- which = patronage_duration
- value = 0
- }
- }
- else_if = {
- limit = { has_modifier = enclave_artist_patron }
- if = {
- limit = { check_variable = { which = patronage_duration value < 1 } }
- set_variable = {
- which = patronage_duration
- value = 1
- }
- }
- else = {
- change_variable = {
- which = patronage_duration
- value = 1
- }
- }
- country_event = { id = leviathans.308 days = 360 }
- }
- }
- }
- #Festival Event Trigger
- country_event = {
- id = leviathans.309
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- random_list = {
- 10 = {
- modifier = {
- factor = 1.5
- OR = {
- has_ethic = ethic_fanatic_materialist
- has_ethic = ethic_materialist
- }
- }
- country_event = { id = leviathans.310 days = 250 random = 25 }
- }
- 10 = {
- modifier = {
- factor = 1.5
- OR = {
- has_ethic = ethic_fanatic_xenophile
- has_ethic = ethic_xenophile
- has_ethic = ethic_fanatic_pacifist
- has_ethic = ethic_pacifist
- }
- }
- country_event = { id = leviathans.311 days = 150 random = 25 }
- }
- 5 = {
- modifier = {
- factor = 1.5
- OR = {
- has_ethic = ethic_fanatic_xenophobe
- has_ethic = ethic_xenophobe
- has_ethic = ethic_fanatic_materialist
- has_ethic = ethic_materialist
- }
- }
- country_event = { id = leviathans.312 days = 300 random = 50 }
- }
- 75 = { }
- }
- }
- }
- #Artist Festival events
- #People get trampled
- country_event = {
- id = leviathans.310
- title = leviathans.310.name
- desc = leviathans.310.desc
- picture = GFX_evt_alien_ruins
- show_sound = event_planetary_riot
- location = event_target:this_planet
- is_triggered_only = yes
- trigger = {
- has_modifier = enclave_artist_festival
- }
- immediate = {
- random_owned_planet = {
- save_event_target_as = this_planet
- }
- }
- option = {
- name = UNFORTUNATE
- add_modifier = {
- modifier = enclave_artist_festival_outrage
- days = 720
- }
- }
- option = {
- name = leviathans.310.b
- add_resource = { influence = -100 }
- }
- after = {
- event_target:this_planet = {
- random_pop = {
- kill_pop = yes
- }
- }
- }
- }
- #Artists want to move in
- country_event = {
- id = leviathans.311
- title = leviathans.311.name
- desc = leviathans.311.desc
- picture = GFX_evt_metropolis
- show_sound = event_celebration
- location = event_target:this_planet
- is_triggered_only = yes
- trigger = {
- has_modifier = enclave_artist_festival
- NOR = {
- has_country_flag = enclave_artist_ignores
- has_authority = auth_hive_mind
- }
- }
- immediate = {
- random_owned_planet = {
- weights = {
- base = 1
- modifier = {
- add = 5
- free_housing > 0
- }
- modifier = {
- add = 10
- free_housing > 1
- }
- }
- save_event_target_as = this_planet
- }
- random_country = {
- limit = {
- has_country_flag = artist_enclave_country
- }
- species = {
- save_event_target_as = artist_species
- }
- }
- }
- option = {
- name = leviathans.311.a
- event_target:this_planet = {
- create_pop = {
- species = event_target:artist_species
- ethos = {
- ethic = "ethic_xenophile"
- }
- }
- create_pop = {
- species = event_target:artist_species
- ethos = {
- ethic = "ethic_xenophile"
- }
- }
- every_owned_pop = {
- limit = { is_same_species = event_target:artist_species }
- modify_species = {
- ideal_planet_class = event_target:this_planet
- }
- }
- }
- }
- option = {
- name = leviathans.311.b
- }
- }
- #The artists flee and steal your stuff
- country_event = {
- id = leviathans.312
- title = leviathans.312.name
- desc = leviathans.312.desc
- picture = GFX_evt_metropolis
- show_sound = event_planetary_riot
- location = event_target:location
- is_triggered_only = yes
- trigger = {
- has_modifier = enclave_artist_festival
- }
- immediate = {
- set_timed_country_flag = { flag = enclave_artist_ignores days = 3600 }
- random_planet = {
- limit = {
- has_planet_flag = guardians_artists_planet
- }
- save_event_target_as = location
- }
- }
- option = {
- name = leviathans.312.a
- remove_modifier = enclave_artist_festival
- add_resource = { energy = -1000 }
- hidden_effect = {
- remove_country_flag = artist_festival_purchased
- }
- }
- }
- #Artists don't answer your calls after stealing your stuff or being attacked
- country_event = {
- id = leviathans.313
- title = leviathans.300.name
- desc = leviathans.313.desc
- desc = {
- trigger = {
- switch = {
- trigger = has_country_flag
- enclave_artist_encountered = { text = leviathans.313.desc }
- default = { text = leviathans.313.desc.unknown }
- }
- }
- }
- picture = GFX_evt_space_station
- show_sound = event_radio_chatter
- location = event_target:location
- is_triggered_only = yes
- trigger = {
- from = {
- AND = {
- is_country_type = enclave
- has_country_flag = artist_enclave_country
- }
- }
- has_country_flag = enclave_artist_ignores
- NOT = {
- has_country_flag = artist_enclave_diplomacy_engaged
- }
- }
- immediate = {
- random_planet = {
- limit = {
- has_planet_flag = guardians_artists_planet
- }
- save_event_target_as = location
- }
- set_country_flag = artist_enclave_diplomacy_engaged
- }
- option = {
- name = SCUM
- custom_gui = "enclave_artist_option"
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- }
- option = {
- name = TASTY
- custom_gui = "enclave_artist_option"
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- }
- option = {
- name = EXTERMINATE
- custom_gui = "enclave_artist_option"
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- }
- option = {
- name = leviathans.313.a
- default_hide_option = yes
- trigger = {
- has_country_flag = enclave_artist_encountered
- NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }
- }
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- }
- }
- option = {
- name = PECULIAR
- trigger = {
- NOT = { has_country_flag = enclave_artist_encountered }
- NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }
- }
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- }
- }
- }
- #Festival ends stuff
- country_event = {
- id = leviathans.314
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- has_country_flag = artist_festival_purchased
- }
- immediate = {
- remove_country_flag = artist_festival_purchased
- }
- }
- #Patronage renewal
- country_event = {
- id = leviathans.319
- title = leviathans.300.name
- desc = leviathans.319.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- option = {
- name = DEAL
- trigger = {
- num_pops < 61
- }
- #custom_tooltip = leviathans.304.a.tooltip
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -1000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 359 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- }
- option = {
- name = DEAL
- trigger = {
- num_pops > 60
- num_pops < 121
- }
- #custom_tooltip = leviathans.304.a.tooltip
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -2000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 359 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- }
- option = {
- name = DEAL
- trigger = {
- num_pops > 120
- num_pops < 181
- }
- #custom_tooltip = leviathans.304.a.tooltip
- allow = {
- resource_stockpile_compare = { resource = energy value >= 3000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -3000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 359 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- }
- option = {
- name = DEAL
- trigger = {
- num_pops > 180
- num_pops < 241
- }
- #custom_tooltip = leviathans.304.a.tooltip
- allow = {
- resource_stockpile_compare = { resource = energy value >= 4000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -4000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 359 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- }
- option = {
- name = DEAL
- trigger = {
- num_pops > 240
- }
- #custom_tooltip = leviathans.304.a.tooltip
- allow = {
- resource_stockpile_compare = { resource = energy value >= 5000 }
- NOT = { has_modifier = enclave_artist_patron }
- }
- add_resource = { energy = -5000 }
- add_modifier = {
- modifier = enclave_artist_patron
- days = 3600
- }
- custom_tooltip = opinion20
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- hidden_effect = {
- if = {
- limit = {
- has_country_flag = enclave_stopped_patronage
- }
- remove_country_flag = enclave_stopped_patronage
- }
- set_country_flag = artist_patron
- set_country_flag = recently_purchased_patron
- #country_event = { id = leviathans.306 days = 30 } #check if still patron in a month
- country_event = { id = leviathans.320 } #trigger patron followup events
- country_event = { id = leviathans.308 days = 359 }
- country_event = { id = leviathans.319 days = 3600 } #patronage renewal
- }
- }
- }
- option = {
- name = NODEAL
- default_hide_option = yes
- }
- }
- #Patron Event Trigger
- country_event = {
- id = leviathans.320
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- exists = event_target:artist_enclave_country
- has_modifier = enclave_artist_patron
- has_country_flag = artist_patron
- NOR = {
- has_country_flag = enclave_stopped_patronage
- has_country_flag = enclave_artist_ignores
- }
- }
- immediate = {
- random_list = {
- 20 = {
- modifier = {
- factor = 2
- NOT = { has_country_flag = enclave_artist_patron_events }
- }
- modifier = {
- factor = 2
- check_variable = {
- which = artist_newsletter
- value < 5
- }
- }
- modifier = {
- factor = 0
- OR = {
- NOT = { has_country_flag = artist_patron }
- check_variable = {
- which = artist_newsletter
- value > 4
- }
- }
- }
- country_event = { id = leviathans.321 days = 500 random = 1000 }
- }
- 20 = {
- modifier = {
- factor = 0
- OR = {
- has_country_flag = enclave_artist_patron_event_1
- NOT = { has_country_flag = artist_patron }
- }
- }
- country_event = { id = leviathans.322 days = 500 random = 1000 }
- }
- 20 = {
- modifier = {
- factor = 0
- OR = {
- has_country_flag = enclave_artist_patron_event_2
- NOT = { has_country_flag = artist_patron }
- }
- }
- country_event = { id = leviathans.323 days = 500 random = 1000 }
- }
- 20 = {
- modifier = {
- factor = 0
- OR = {
- has_country_flag = enclave_artist_patron_event_3
- NOT = { has_country_flag = artist_patron }
- }
- }
- country_event = { id = leviathans.324 days = 500 random = 1000 }
- }
- 20 = {
- modifier = {
- factor = 0.20
- NOT = { has_country_flag = enclave_artist_patron_events }
- }
- modifier = {
- factor = 1.10
- has_country_flag = enclave_artist_patron_event_1
- }
- modifier = {
- factor = 1.10
- has_country_flag = enclave_artist_patron_event_2
- }
- modifier = {
- factor = 1.10
- has_country_flag = enclave_artist_patron_event_3
- }
- #DO NOTHING
- }
- }
- }
- }
- #Patron Newsletter
- country_event = {
- id = leviathans.321
- title = leviathans.321.name
- desc = {
- trigger = {
- text = "leviathans.321.desc"
- text = "newline"
- success_text = {
- text = "leviathans.321.desc.a"
- check_variable = {
- which = artist_newsletter
- value = 1
- }
- }
- success_text = {
- text = "leviathans.321.desc.b"
- check_variable = {
- which = artist_newsletter
- value = 2
- }
- }
- success_text = {
- text = "leviathans.321.desc.c"
- check_variable = {
- which = artist_newsletter
- value = 3
- }
- }
- success_text = {
- text = "leviathans.321.desc.d"
- check_variable = {
- which = artist_newsletter
- value = 4
- }
- }
- }
- }
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- is_triggered_only = yes
- trigger = {
- exists = event_target:artist_enclave_country
- has_modifier = enclave_artist_patron
- has_country_flag = artist_patron
- NOR = {
- has_country_flag = enclave_stopped_patronage
- has_country_flag = enclave_artist_ignores
- }
- check_variable = {
- which = artist_newsletter
- value < 4
- }
- }
- immediate = {
- set_country_flag = enclave_artist_patron_events
- if = {
- limit = {
- check_variable = {
- which = artist_newsletter
- value < 1
- }
- }
- set_variable = {
- which = artist_newsletter
- value = 1
- }
- }
- else = {
- change_variable = {
- which = artist_newsletter
- value = 1
- }
- }
- random_system = {
- limit = {
- any_system_planet = {
- has_planet_flag = guardians_artists_planet
- }
- root = {
- intel_level = {
- level > none
- system = prev
- }
- }
- }
- save_event_target_as = this_planet
- }
- }
- option = {
- name = leviathans.321.a
- #response_text = leviathans.321.a.reply
- add_resource = {
- energy = -500
- influence = 50
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 500 }
- }
- }
- option = {
- name = leviathans.321.c
- #response_text = leviathans.321.c.reply
- }
- option = {
- name = leviathans.321.b
- #response_text = leviathans.321.b.reply
- hidden_effect = {
- set_variable = {
- which = artist_newsletter
- value = 5
- }
- }
- }
- after = {
- hidden_effect = {
- country_event = { id = leviathans.320 days = 60 random = 30 }
- }
- }
- }
- #Patron commission
- country_event = {
- id = leviathans.322
- title = leviathans.322.name
- desc = leviathans.322.desc
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- is_triggered_only = yes
- trigger = {
- exists = event_target:artist_enclave_country
- has_modifier = enclave_artist_patron
- has_country_flag = artist_patron
- NOR = {
- has_country_flag = enclave_stopped_patronage
- has_country_flag = enclave_artist_ignores
- has_country_flag = artist_building_patron
- }
- }
- immediate = {
- set_country_flag = enclave_artist_patron_events
- set_country_flag = enclave_artist_patron_event_1
- random_system = {
- limit = {
- any_system_planet = {
- has_planet_flag = guardians_artists_planet
- }
- root = {
- intel_level = {
- level > none
- system = prev
- }
- }
- }
- save_event_target_as = this_planet
- }
- }
- option = {
- name = DEAL
- IF = {
- limit = { NOT = { has_ethic = ethic_gestalt_consciousness } }
- custom_tooltip = leviathans.322.a.tooltip
- }
- ELSE = { custom_tooltip = leviathans.322.a.tooltip.gesta }
- #response_text = leviathans.316.a.reply
- allow = {
- NOT = { resource_stockpile_compare = { resource = energy value < 2000 } }
- }
- hidden_effect = {
- add_resource = { energy = -2000 }
- set_country_flag = artist_building_patron
- }
- }
- option = {
- name = TOOPOOR
- trigger = {
- resource_stockpile_compare = { resource = energy value < 2000 }
- }
- }
- option = {
- name = NODEAL
- trigger = {
- NOT = { resource_stockpile_compare = { resource = energy value < 2000 } }
- }
- }
- after = {
- hidden_effect = {
- country_event = { id = leviathans.320 days = 100 random = 25 }
- }
- }
- }
- #I became a patron and all I got was this t-shirt
- country_event = {
- id = leviathans.323
- title = leviathans.323.name
- desc = leviathans.323.desc
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- is_triggered_only = yes
- trigger = {
- exists = event_target:artist_enclave_country
- has_modifier = enclave_artist_patron
- has_country_flag = artist_patron
- NOR = {
- has_country_flag = enclave_stopped_patronage
- has_country_flag = enclave_artist_ignores
- }
- }
- immediate = {
- set_country_flag = enclave_artist_patron_events
- set_country_flag = enclave_artist_patron_event_2
- random_system = {
- limit = {
- any_system_planet = {
- has_planet_flag = guardians_artists_planet
- }
- root = {
- intel_level = {
- level > none
- system = prev
- }
- }
- }
- save_event_target_as = this_planet
- }
- }
- option = {
- name = leviathans.323.a
- custom_tooltip = opinion10
- #response_text = leviathans.323.a.reply
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = 10
- }
- }
- country_event = { id = leviathans.320 days = 100 random = 25 }
- }
- }
- option = {
- name = leviathans.323.b
- add_resource = { energy = 1000 }
- custom_tooltip = opinion-3
- remove_modifier = enclave_artist_patron
- hidden_effect = {
- event_target:artist_enclave_country = {
- add_trust = {
- who = root
- amount = -3
- }
- }
- }
- #response_text = leviathans.323.b.reply
- }
- }
- #Artist asks if you want some resources
- country_event = {
- id = leviathans.324
- title = leviathans.324.name
- desc = leviathans.324.desc
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- is_triggered_only = yes
- trigger = {
- exists = event_target:artist_enclave_country
- has_modifier = enclave_artist_patron
- has_country_flag = artist_patron
- NOR = {
- has_country_flag = enclave_stopped_patronage
- has_country_flag = enclave_artist_ignores
- }
- }
- immediate = {
- set_country_flag = enclave_artist_patron_events
- set_country_flag = enclave_artist_patron_event_3
- random_system = {
- limit = {
- any_system_planet = {
- has_planet_flag = guardians_artists_planet
- }
- root = {
- intel_level = {
- level > none
- system = prev
- }
- }
- }
- save_event_target_as = this_planet
- }
- }
- option = {
- name = leviathans.324.a
- add_resource = { minerals = 500 }
- #response_text = leviathans.324.a.reply
- }
- option = {
- name = leviathans.324.b
- add_resource = { influence = 50 }
- #response_text = leviathans.324.b.reply
- }
- after = {
- hidden_effect = {
- country_event = { id = leviathans.320 days = 100 random = 25 }
- }
- }
- }
- country_event = {
- id = leviathans.330
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- from = {
- has_country_flag = artist_enclave_country
- }
- }
- immediate = {
- if = {
- limit = {
- OR = {
- has_modifier = enclave_artist_patron
- has_country_flag = artist_patron
- }
- }
- remove_modifier = enclave_artist_patron
- remove_country_flag = artist_patron
- }
- if = {
- limit = {
- NOT = { has_country_flag = enclave_artist_ignores }
- }
- set_country_flag = enclave_artist_ignores
- }
- }
- }
- country_event = {
- id = leviathans.331
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- has_country_flag = artist_enclave_country
- }
- immediate = {
- fromfrom = {
- remove_fleet_flag = artist_enclave_station
- solar_system = {
- remove_star_flag = guardians_artists_system
- save_event_target_as = destroyed_station_location
- }
- if = { #Change capital
- limit = { is_custom_capital_location = yes }
- owner = {
- random_owned_fleet = {
- limit = { has_fleet_flag = artist_enclave_station }
- save_event_target_as = newCustomCapital
- }
- set_custom_capital_location = event_target:newCustomCapital
- }
- }
- }
- every_playable_country = {
- limit = {
- has_communications = root
- NOT = { is_same_value = from }
- }
- if = {
- limit = {
- fromfrom = {
- owner = {
- any_owned_fleet = {
- has_fleet_flag = artist_enclave_station
- }
- }
- }
- }
- country_event = { id = leviathans.332 }
- }
- else = {
- country_event = { id = leviathans.333 }
- }
- }
- random_playable_country = {
- if = {
- limit = {
- fromfrom = {
- owner = {
- any_owned_fleet = {
- has_fleet_flag = artist_enclave_station
- }
- }
- }
- }
- observer_event = { id = observer.11 }
- }
- else = {
- observer_event = { id = observer.12 }
- }
- }
- }
- }
- # An artist station has been destroyed
- country_event = {
- id = leviathans.332
- title = leviathans.300.name
- desc = leviathans.332.desc
- picture = GFX_evt_exploding_ship
- show_sound = event_structural_collapse
- location = event_target:destroyed_station_location
- is_triggered_only = yes
- option = {
- name = WORRYING
- trigger = {
- NOT = { has_country_flag = enclave_artist_ignores }
- }
- }
- option = {
- name = OK
- trigger = {
- has_country_flag = enclave_artist_ignores
- }
- }
- }
- # All artist stations have been destroyed
- country_event = {
- id = leviathans.333
- title = leviathans.300.name
- desc = leviathans.333.desc
- picture = GFX_evt_exploding_ship
- show_sound = event_super_explosion
- location = event_target:destroyed_station_location
- is_triggered_only = yes
- immediate = {
- if = {
- limit = {
- OR = {
- has_modifier = enclave_artist_patron
- has_country_flag = artist_patron
- }
- }
- remove_modifier = enclave_artist_patron
- remove_country_flag = artist_patron
- }
- if = {
- limit = {
- OR = {
- has_modifier = enclave_artist_festival
- has_country_flag = artist_festival_purchased
- }
- }
- remove_modifier = enclave_artist_festival
- remove_country_flag = artist_festival_purchased
- }
- }
- option = {
- name = TERRIBLE
- custom_tooltip = leviathans.307.a.tooltip
- trigger = {
- NOT = { has_country_flag = enclave_artist_ignores }
- }
- }
- option = {
- name = OK
- custom_tooltip = leviathans.307.a.tooltip
- trigger = {
- has_country_flag = enclave_artist_ignores
- }
- }
- }
- # You destroyed an artist station
- country_event = {
- id = leviathans.334
- title = leviathans.300.name
- desc = {
- trigger = {
- switch = {
- trigger = has_country_flag
- enclave_artist_encountered = { text = leviathans.334.desc }
- default = { text = leviathans.334.desc.unknown }
- }
- }
- }
- picture = GFX_evt_exploding_ship
- show_sound = event_structural_collapse
- location = fromfrom
- is_triggered_only = yes
- immediate = {
- set_country_flag = destroyed_artist
- fromfrom = {
- solar_system = {
- save_event_target_as = station_system
- }
- }
- }
- trigger = {
- from = {
- has_country_flag = artist_enclave_country
- }
- }
- option = {
- name = EXCELLENT
- add_resource = {
- energy = 2000
- minerals = 2000
- }
- }
- }
- # Art College
- country_event = {
- id = leviathans.340
- title = leviathans.340.name
- desc = leviathans.340.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_artist_window"
- custom_gui_option = "enclave_artist_option"
- picture_event_data = {
- portrait = event_target:artist_enclave_country
- room = enclave_artist_room
- }
- immediate = {
- set_country_flag = artist_enclave_diplomacy_engaged
- random_system_within_border = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- is_same_value = event_target:artist_enclave_country
- }
- }
- }
- save_event_target_as = artist_system
- }
- event_target:artist_enclave_country = {
- set_country_flag = art_college@root
- }
- }
- after = {
- hidden_effect = {
- remove_country_flag = artist_enclave_diplomacy_engaged
- country_event = { id = leviathans.300 }
- }
- }
- option = { # Back
- name = leviathans.340.a
- hidden_effect = {
- set_country_flag = artist_enclave_diplomacy_continued
- }
- }
- }
- # Curator Main Menu (Initial)
- country_event = {
- id = leviathans.500
- title = leviathans.500.name
- desc = leviathans.500a.desc
- desc = leviathans.500b.desc
- desc = leviathans.500c.desc
- desc = leviathans.500d.desc
- desc = leviathans.500e.desc
- desc = leviathans.500f.desc
- desc = leviathans.500g.desc
- desc = leviathans.500h.desc
- desc = leviathans.500i.desc
- desc = leviathans.500j.desc
- desc = leviathans.500k.desc
- desc = leviathans.500l.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- force_open = yes
- picture_event_data = {
- portrait = from
- room = enclave_curator_room
- }
- trigger = {
- from = {
- is_country_type = enclave
- has_country_flag = curator_enclave_country
- }
- NOT = { has_country_flag = curator_enclave_diplomacy_engaged }
- NOT = { has_country_flag = attacked_curators }
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- FROM = { save_event_target_as = curators }
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = SCUM
- trigger = { has_valid_civic = civic_fanatic_purifiers }
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = TASTY
- trigger = { has_valid_civic = civic_hive_devouring_swarm }
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = EXTERMINATE
- trigger = { has_valid_civic = civic_machine_terminator }
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = { # Research
- name = leviathans.500.b
- custom_gui = "enclave_curator_option"
- trigger = { NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator } }
- allow = {
- custom_tooltip = {
- fail_text = leviathans.500.b.alreadyaided
- NOT = { has_modifier = curator_insight }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.507 }
- }
- }
- option = { # Guardians
- name = leviathans.500.c
- custom_gui = "enclave_curator_option"
- trigger = { NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator } }
- hidden_effect = {
- country_event = { id = leviathans.508 }
- }
- }
- option = { # Hire Scientist
- name = leviathans.500.d
- custom_gui = "enclave_curator_option"
- trigger = { NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator } }
- allow = {
- custom_tooltip = {
- fail_text = leviathans.500.d.opinion
- event_target:curators = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- custom_tooltip = {
- fail_text = leviathans.500.d.alreadyrecruited
- NOT = {
- any_owned_leader = { has_trait = leader_trait_curator }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.590 }
- }
- }
- option = { # Think Tank
- name = leviathans.500.f
- custom_gui = "enclave_curator_option"
- trigger = {
- NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }
- NOT = {
- event_target:curators = { has_country_flag = think_tank@root }
- }
- any_system_within_border = {
- has_star_flag = enclave
- any_ship_in_system = {
- exists = owner
- owner = {
- is_same_value = event_target:curators
- }
- }
- }
- }
- allow = {
- custom_tooltip = {
- fail_text = leviathans.500.d.opinion
- event_target:curators = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.511 }
- }
- }
- option = {
- name = leviathans.500.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- trigger = { NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator } }
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- # Available after finishing Infinity Sphere chain
- option = {
- name = leviathans.500.g
- custom_gui = "enclave_curator_option"
- trigger = {
- has_country_flag = pantagruel
- has_country_flag = asked_about_infinity_machine
- NOT = { has_country_flag = offered_information }
- }
- hidden_effect = {
- country_event = { id = leviathans.4000 }
- }
- }
- # L-Cluster clue
- option = {
- name = distar.11500.a
- custom_gui = "enclave_curator_option"
- trigger = {
- has_event_chain = l_cluster_chain
- NOR = {
- is_homicidal = yes
- has_global_flag = l_cluster_opened
- has_completed_event_chain_counter = {
- event_chain = l_cluster_chain
- counter = clues
- }
- }
- }
- allow = {
- custom_tooltip = {
- fail_text = distar.11500.a.tooltip.noclue
- NOT = { has_country_flag = curator_clue_purchased }
- }
- }
- hidden_effect = {
- country_event = { id = distar.11501 }
- }
- }
- }
- country_event = {
- id = leviathans.4000
- title = leviathans.4000.name
- desc = leviathans.4000.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- if = {
- limit = {
- any_country = {
- is_country_type = default
- NOT = {
- is_same_value = root
- }
- OR = {
- is_hostile_to = root
- is_domineering_to = root
- is_unfriendly_to = root
- root = {
- OR = {
- is_hostile_to = prev
- is_domineering_to = prev
- is_unfriendly_to = prev
- }
- }
- }
- }
- }
- random_country = {
- limit = {
- any_country = {
- is_country_type = default
- NOT = {
- is_same_value = root
- }
- OR = {
- is_hostile_to = root
- is_domineering_to = root
- is_unfriendly_to = root
- root = {
- OR = {
- is_hostile_to = prev
- is_domineering_to = prev
- is_unfriendly_to = prev
- }
- }
- }
- }
- }
- save_event_target_as = unfriends
- }
- }
- else_if = {
- random_country = {
- limit = {
- is_country_type = default
- NOT = {
- is_same_value = root
- }
- has_communications = root
- }
- save_event_target_as = unfriends
- }
- }
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.4000.a
- response_text = leviathans.4000.a.reply
- set_country_flag = offered_information
- custom_gui = "enclave_curator_option"
- add_monthly_resource_mult = {
- resource = engineering_research
- value = @tier4researchreward
- min = @tier4researchmin
- max = @tier4researchmax
- }
- }
- option = {
- name = leviathans.4000.b
- response_text = leviathans.4000.b.reply
- custom_gui = "enclave_curator_option"
- set_country_flag = offered_information
- }
- option = {
- name = leviathans.500.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- }
- # Curator Main Menu
- country_event = {
- id = leviathans.505
- title = leviathans.500.name
- desc = leviathans.500a.desc
- desc = leviathans.500b.desc
- desc = leviathans.500c.desc
- desc = leviathans.500d.desc
- desc = leviathans.500e.desc
- desc = leviathans.500f.desc
- desc = leviathans.500g.desc
- desc = leviathans.500h.desc
- desc = leviathans.500i.desc
- desc = leviathans.500j.desc
- desc = leviathans.500k.desc
- desc = leviathans.500l.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- trigger = {
- NOT = { has_country_flag = curator_enclave_diplomacy_engaged }
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = { # Research
- name = leviathans.500.b
- custom_gui = "enclave_curator_option"
- allow = {
- custom_tooltip = {
- fail_text = leviathans.500.b.alreadyaided
- NOT = { has_modifier = curator_insight }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.507 }
- }
- }
- option = { # Guardians
- name = leviathans.500.c
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.508 }
- }
- }
- option = { # Hire Scientist
- name = leviathans.500.d
- custom_gui = "enclave_curator_option"
- allow = {
- custom_tooltip = {
- fail_text = leviathans.500.d.opinion
- event_target:curators = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- custom_tooltip = {
- fail_text = leviathans.500.d.alreadyrecruited
- NOT = {
- any_owned_leader = { has_trait = leader_trait_curator }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.590 }
- }
- }
- option = { # Think Tank
- name = leviathans.500.f
- custom_gui = "enclave_curator_option"
- trigger = {
- any_system_within_border = {
- has_star_flag = enclave
- any_ship_in_system = {
- exists = owner
- owner = {
- is_same_value = event_target:curators
- }
- }
- }
- }
- allow = {
- custom_tooltip = {
- fail_text = leviathans.500.d.opinion
- event_target:curators = {
- trust = {
- who = root
- value >= 50
- }
- }
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.511 }
- }
- }
- option = {
- name = leviathans.500.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.500.g
- custom_gui = "enclave_curator_option"
- trigger = {
- has_country_flag = pantagruel
- has_country_flag = asked_about_infinity_machine
- NOT = { has_country_flag = offered_information }
- }
- hidden_effect = {
- country_event = { id = leviathans.4000 }
- }
- }
- option = {
- name = distar.11500.a
- custom_gui = "enclave_curator_option"
- trigger = {
- has_event_chain = l_cluster_chain
- NOR = {
- is_homicidal = yes
- has_global_flag = l_cluster_opened
- has_completed_event_chain_counter = {
- event_chain = l_cluster_chain
- counter = clues
- }
- }
- }
- allow = {
- custom_tooltip = {
- fail_text = distar.11500.a.tooltip.noclue
- NOT = { has_country_flag = curator_clue_purchased }
- }
- }
- hidden_effect = {
- country_event = { id = distar.11501 }
- }
- }
- }
- # Curator Research Aid Menu
- country_event = {
- id = leviathans.507
- title = leviathans.507.name
- desc = leviathans.507.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.507.a
- response_text = leviathans.507.a.reply
- custom_gui = "enclave_curator_option"
- trigger = { num_pops < 61 }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -1000 }
- custom_tooltip = opinion20
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = {
- name = leviathans.507.a
- response_text = leviathans.507.a.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- num_pops > 60
- num_pops < 121
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -2000 }
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = {
- name = leviathans.507.a
- response_text = leviathans.507.a.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- num_pops > 120
- num_pops < 181
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 3000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -3000 }
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = {
- name = leviathans.507.a
- response_text = leviathans.507.a.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- num_pops > 180
- num_pops < 241
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 4000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -4000 }
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = {
- name = leviathans.507.a
- response_text = leviathans.507.a.reply
- custom_gui = "enclave_curator_option"
- trigger = { num_pops > 240 }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 5000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -5000 }
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- custom_gui = "enclave_curator_option"
- default_hide_option = yes
- }
- }
- # Curator Guardians Menu
- country_event = {
- id = leviathans.508
- title = leviathans.508.name
- desc = leviathans.508.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- # "Find" option
- option = {
- name = leviathans.508.a
- response_text = leviathans.508.a.reply
- custom_gui = "enclave_curator_option"
- custom_tooltip = opinion10
- trigger = {
- event_target:curators = { #debug_scope_type = country
- any_owned_fleet = {
- closest_system = {
- min_steps = 0
- max_steps = 999
- limit = {
- has_star_flag = guardian
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- OR = {
- is_country_type = guardian
- is_country_type = guardian_dragon
- is_country_type = guardian_sphere
- is_country_type = guardian_wraith
- is_country_type = guardian_horror
- is_country_type = guardian_fortress
- is_country_type = guardian_hiver
- is_country_type = guardian_stellarite
- is_country_type = guardian_dreadnought
- is_country_type = guardian_hatchling
- }
- }
- }
- NOR = {
- is_point_of_interest = {
- id = curator_poi_dragon
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_technosphere
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_wraith
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_horror
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_fortress
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_hiver
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_stellarite
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_dreadnought
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_hatchling
- owner = root
- event_chain = curator_poi_chain
- }
- }
- }
- }
- }
- }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 300 }
- }
- add_resource = { energy = -300 }
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 10
- }
- }
- event_target:curators = {
- random_owned_fleet = {
- limit = {}
- closest_system = {
- min_steps = 0
- max_steps = 999
- limit = {
- has_star_flag = guardian
- any_ship_in_system = {
- exists = owner
- owner = {
- is_guardian_country = yes
- NOT = {
- has_communications = root
- }
- }
- }
- NOR = {
- is_point_of_interest = {
- id = curator_poi_dragon
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_technosphere
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_wraith
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_horror
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_fortress
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_hiver
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_stellarite
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_dreadnought
- owner = root
- event_chain = curator_poi_chain
- }
- is_point_of_interest = {
- id = curator_poi_hatchling
- owner = root
- event_chain = curator_poi_chain
- }
- }
- }
- if = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- is_country_type = guardian_dragon
- }
- }
- }
- root = {
- if = {
- limit = {
- NOT = {
- has_event_chain = curator_poi_chain
- }
- }
- begin_event_chain = {
- event_chain = curator_poi_chain
- target = this
- }
- }
- create_point_of_interest = {
- id = curator_poi_dragon
- name = curator_poi_title
- desc = curator_poi_desc
- event_chain = curator_poi_chain
- location = prev
- }
- }
- break = yes
- }
- if = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- is_country_type = guardian_sphere
- }
- }
- }
- root = {
- if = {
- limit = {
- NOT = {
- has_event_chain = curator_poi_chain
- }
- }
- begin_event_chain = {
- event_chain = curator_poi_chain
- target = this
- }
- }
- create_point_of_interest = {
- id = curator_poi_technosphere
- name = curator_poi_title
- desc = curator_poi_desc
- event_chain = curator_poi_chain
- location = prev
- }
- }
- break = yes
- }
- if = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- is_country_type = guardian_horror
- }
- }
- }
- root = {
- if = {
- limit = {
- NOT = {
- has_event_chain = curator_poi_chain
- }
- }
- begin_event_chain = {
- event_chain = curator_poi_chain
- target = this
- }
- }
- create_point_of_interest = {
- id = curator_poi_horror
- name = curator_poi_title
- desc = curator_poi_desc
- event_chain = curator_poi_chain
- location = prev
- }
- }
- break = yes
- }
- if = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- is_country_type = guardian_stellarite
- }
- }
- }
- root = {
- if = {
- limit = {
- NOT = {
- has_event_chain = curator_poi_chain
- }
- }
- begin_event_chain = {
- event_chain = curator_poi_chain
- target = this
- }
- }
- create_point_of_interest = {
- id = curator_poi_stellarite
- name = curator_poi_title
- desc = curator_poi_desc
- event_chain = curator_poi_chain
- location = prev
- }
- }
- break = yes
- }
- if = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- is_country_type = guardian_hiver
- }
- }
- }
- root = {
- if = {
- limit = {
- NOT = {
- has_event_chain = curator_poi_chain
- }
- }
- begin_event_chain = {
- event_chain = curator_poi_chain
- target = this
- }
- }
- create_point_of_interest = {
- id = curator_poi_hiver
- name = curator_poi_title
- desc = curator_poi_desc
- event_chain = curator_poi_chain
- location = prev
- }
- }
- break = yes
- }
- if = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- is_country_type = guardian_fortress
- }
- }
- }
- root = {
- if = {
- limit = {
- NOT = {
- has_event_chain = curator_poi_chain
- }
- }
- begin_event_chain = {
- event_chain = curator_poi_chain
- target = this
- }
- }
- create_point_of_interest = {
- id = curator_poi_fortress
- name = curator_poi_title
- desc = curator_poi_desc
- event_chain = curator_poi_chain
- location = prev
- }
- }
- break = yes
- }
- if = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- is_country_type = guardian_wraith
- }
- }
- }
- root = {
- if = {
- limit = {
- NOT = {
- has_event_chain = curator_poi_chain
- }
- }
- begin_event_chain = {
- event_chain = curator_poi_chain
- target = this
- }
- }
- create_point_of_interest = {
- id = curator_poi_wraith
- name = curator_poi_title
- desc = curator_poi_desc
- event_chain = curator_poi_chain
- location = prev
- }
- }
- break = yes
- }
- if = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- is_country_type = guardian_dreadnought
- }
- }
- }
- root = {
- if = {
- limit = {
- NOT = {
- has_event_chain = curator_poi_chain
- }
- }
- begin_event_chain = {
- event_chain = curator_poi_chain
- target = this
- }
- }
- create_point_of_interest = {
- id = curator_poi_dreadnought
- name = curator_poi_title
- desc = curator_poi_desc
- event_chain = curator_poi_chain
- location = prev
- }
- }
- }
- if = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- NOT = {
- has_communications = root
- }
- is_country_type = guardian_hatchling
- }
- }
- }
- root = {
- if = {
- limit = {
- NOT = {
- has_event_chain = curator_poi_chain
- }
- }
- begin_event_chain = {
- event_chain = curator_poi_chain
- target = this
- }
- }
- create_point_of_interest = {
- id = curator_poi_hatchling
- name = curator_poi_title
- desc = curator_poi_desc
- event_chain = curator_poi_chain
- location = prev
- }
- }
- }
- }
- }
- }
- }
- }
- # "Poison" options
- # Dragon
- option = {
- name = leviathans.508.b
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_dragon
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.510 }
- }
- }
- # Enigmatic Fortress
- option = {
- name = leviathans.508.c
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_fortress
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.515 }
- }
- }
- # Stellarite
- option = {
- name = leviathans.508.d
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_stellarite
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.520 }
- }
- }
- # Dimensional Horror
- option = {
- name = leviathans.508.e
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_horror
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.525 }
- }
- }
- # Hiver
- option = {
- name = leviathans.508.f
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_hiver
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.530 }
- }
- }
- # Technosphere
- option = {
- name = leviathans.508.g
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_sphere
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.535 }
- }
- }
- # Automated Dreadnought
- option = {
- name = leviathans.508.h
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_dreadnought
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.540 }
- }
- }
- # Wraith
- option = {
- name = leviathans.508.i
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_wraith
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.545 }
- }
- }
- # Hatchling
- option = {
- name = leviathans.508.j
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_hatchling
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.550 }
- }
- }
- # Scavenger Bot
- option = {
- name = leviathans.508.k
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_scavenger_bot
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.555 }
- }
- }
- # Tiyanki Matriarch
- option = {
- name = leviathans.508.l
- custom_gui = "enclave_curator_option"
- trigger = {
- any_country = {
- is_country_type = guardian_elderly_tiyanki
- has_communications = root
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.556 }
- }
- }
- option = {
- name = leviathans.500.g
- custom_gui = "enclave_curator_option"
- trigger = {
- has_country_flag = pantagruel
- has_country_flag = asked_about_infinity_machine
- NOT = { has_country_flag = offered_information }
- }
- hidden_effect = {
- country_event = { id = leviathans.4000 }
- }
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Continue Research Aid?
- country_event = {
- id = leviathans.509
- title = leviathans.509.name
- desc = leviathans.509.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- trigger = {
- NOT = { has_country_flag = attacked_curators }
- exists = event_target:curators
- }
- immediate = {
- remove_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- }
- option = {
- name = leviathans.509.a
- response_text = leviathans.509.a.reply
- custom_gui = "enclave_curator_option"
- trigger = { num_pops < 61 }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -1000 }
- custom_tooltip = opinion20
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = {
- name = leviathans.509.a
- response_text = leviathans.509.a.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- num_pops > 60
- num_pops < 121
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -2000 }
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = {
- name = leviathans.509.a
- response_text = leviathans.509.a.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- num_pops > 120
- num_pops < 181
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 3000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -3000 }
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = {
- name = leviathans.509.a
- response_text = leviathans.509.a.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- num_pops > 180
- num_pops < 241
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 4000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -4000 }
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = {
- name = leviathans.509.a
- response_text = leviathans.509.a.reply
- custom_gui = "enclave_curator_option"
- trigger = { num_pops > 240 }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 5000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -5000 }
- add_modifier = {
- modifier = curator_insight
- days = 3600
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- set_relation_flag = {
- who = event_target:curators
- flag = curator_trade
- }
- country_event = { id = leviathans.509 days = 3600 }
- }
- }
- option = { # Sign Off
- name = leviathans.509.e
- custom_gui = "enclave_curator_option"
- default_hide_option = yes
- }
- }
- # Space Dragon
- # Curator Guardians Menu
- country_event = {
- id = leviathans.510
- title = leviathans.510.name
- desc = leviathans.510.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.510.a
- response_text = leviathans.510.a.reply
- is_dialog_only = yes
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.510.b
- response_text = leviathans.510.b.reply
- trigger = {
- NOT = { has_modifier = draconic_beats }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- }
- add_resource = { energy = -1000 }
- add_modifier = {
- modifier = draconic_beats
- days = -1
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- }
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Curator Think Tank
- country_event = {
- id = leviathans.511
- title = leviathans.511.name
- desc = leviathans.511.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- random_system_within_border = {
- limit = {
- any_ship_in_system = {
- exists = owner
- owner = {
- is_same_value = event_target:curators
- }
- }
- }
- save_event_target_as = curator_system
- }
- event_target:curators = {
- set_country_flag = think_tank@root
- }
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Enigmatic Fortress
- # Curator Guardians Menu
- country_event = {
- id = leviathans.515
- title = leviathans.515.name
- desc = leviathans.515.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.515.a
- response_text = leviathans.515.a.reply
- is_dialog_only = yes
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.515.b
- response_text = leviathans.515.b.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- NOT = { has_country_flag = bought_fortress_info_1 }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 200 }
- }
- hidden_effect = { set_country_flag = bought_fortress_info_1 }
- add_resource = { energy = -200 }
- }
- option = {
- name = leviathans.515.c
- response_text = leviathans.515.c.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- NOT = { has_country_flag = bought_fortress_info_2 }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 200 }
- }
- hidden_effect = { set_country_flag = bought_fortress_info_2 }
- add_resource = { energy = -200 }
- }
- option = {
- name = leviathans.515.d
- response_text = leviathans.515.d.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- NOT = { has_country_flag = bought_fortress_info_3 }
- }
- allow = {
- resource_stockpile_compare = { resource = energy value >= 200 }
- }
- hidden_effect = { set_country_flag = bought_fortress_info_3 }
- add_resource = { energy = -200 }
- }
- option = {
- name = leviathans.515.bb
- response_text = leviathans.515.b.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- has_country_flag = bought_fortress_info_1
- }
- }
- option = {
- name = leviathans.515.cc
- response_text = leviathans.515.c.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- has_country_flag = bought_fortress_info_2
- }
- }
- option = {
- name = leviathans.515.dd
- response_text = leviathans.515.d.reply
- custom_gui = "enclave_curator_option"
- trigger = {
- has_country_flag = bought_fortress_info_3
- }
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Stellarite
- # Curator Guardians Menu
- country_event = {
- id = leviathans.520
- title = leviathans.520.name
- desc = leviathans.520.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.510.a
- response_text = leviathans.520.a.reply
- is_dialog_only = yes
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.510.b
- response_text = leviathans.520.b.reply
- trigger = {
- NOT = { has_modifier = curator_buff_stellarite }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- }
- add_resource = { energy = -1000 }
- add_modifier = {
- modifier = curator_buff_stellarite
- days = -1
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- }
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Dimensional Horror
- # Curator Guardians Menu
- country_event = {
- id = leviathans.525
- title = leviathans.525.name
- desc = leviathans.525.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.525.a
- response_text = leviathans.525.a.reply
- is_dialog_only = yes
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.525.b
- response_text = leviathans.525.b.reply
- trigger = {
- NOT = { has_modifier = dimensional_horror_weak_points }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- }
- add_resource = { energy = -1000 }
- add_modifier = {
- modifier = dimensional_horror_weak_points
- days = -1
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- }
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Hiver
- # Curator Guardians Menu
- country_event = {
- id = leviathans.530
- title = leviathans.530.name
- desc = leviathans.530.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.530.a
- response_text = leviathans.530.a.reply
- is_dialog_only = yes
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.530.b
- response_text = leviathans.530.b.reply
- trigger = {
- NOT = { has_modifier = asteroid_hive_weak_points }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 2000 }
- }
- add_resource = { energy = -2000 }
- add_modifier = {
- modifier = asteroid_hive_weak_points
- days = -1
- }
- custom_tooltip = opinion10
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 10
- }
- }
- }
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Technosphere
- # Curator Guardians Menu
- country_event = {
- id = leviathans.535
- title = leviathans.535.name
- desc = leviathans.535.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- set_country_flag = asked_about_infinity_machine
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.510.a
- response_text = leviathans.535.a.reply
- is_dialog_only = yes
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.510.b
- response_text = leviathans.535.b.reply
- trigger = {
- NOT = { has_modifier = curator_buff_sphere }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 600 }
- }
- add_resource = { energy = -600 }
- add_modifier = {
- modifier = curator_buff_sphere
- days = -1
- }
- custom_tooltip = opinion15
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 15
- }
- }
- }
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Automated Dreadnought
- # Curator Guardians Menu
- country_event = {
- id = leviathans.540
- title = leviathans.540.name
- desc = leviathans.540.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.540.a
- response_text = leviathans.540.a.reply
- is_dialog_only = yes
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.540.b
- response_text = leviathans.540.b.reply
- trigger = {
- NOT = { has_modifier = automated_dreadnought_weak_points }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- }
- add_resource = { energy = -1000 }
- add_modifier = {
- modifier = automated_dreadnought_weak_points
- days = -1
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- }
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Wraith
- # Curator Guardians Menu
- country_event = {
- id = leviathans.545
- title = leviathans.545.name
- desc = leviathans.545.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.545.a
- response_text = leviathans.545.a.reply
- is_dialog_only = yes
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.545.b
- response_text = leviathans.545.b.reply
- trigger = {
- NOT = { has_country_flag = bought_wraith_info_1 }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 200 }
- }
- hidden_effect = { set_country_flag = bought_wraith_info_1 }
- add_resource = { energy = -200 }
- }
- option = {
- name = leviathans.545.c
- response_text = leviathans.545.c.reply
- trigger = {
- NOT = { has_country_flag = bought_wraith_info_2 }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 200 }
- }
- hidden_effect = { set_country_flag = bought_wraith_info_2 }
- add_resource = { energy = -200 }
- }
- option = {
- name = leviathans.545.d
- response_text = leviathans.545.d.reply
- trigger = {
- NOT = { has_country_flag = bought_wraith_info_3 }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 200 }
- }
- hidden_effect = { set_country_flag = bought_wraith_info_3 }
- add_resource = { energy = -200 }
- }
- option = {
- name = leviathans.545.b
- response_text = leviathans.545.b.reply
- custom_gui = "enclave_curator_option"
- trigger = { has_country_flag = bought_wraith_info_1 }
- }
- option = {
- name = leviathans.545.c
- response_text = leviathans.545.c.reply
- custom_gui = "enclave_curator_option"
- trigger = { has_country_flag = bought_wraith_info_2 }
- }
- option = {
- name = leviathans.545.d
- response_text = leviathans.545.d.reply
- custom_gui = "enclave_curator_option"
- trigger = { has_country_flag = bought_wraith_info_3 }
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Hatchling
- # Curator Guardians Menu
- country_event = {
- id = leviathans.550
- title = leviathans.550.name
- desc = leviathans.550.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.550.a
- response_text = leviathans.550.a.reply
- is_dialog_only = yes
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.550.b
- response_text = leviathans.550.b.reply
- trigger = {
- NOT = { has_modifier = curator_buff_hatchling }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- }
- add_resource = { energy = -1000 }
- add_modifier = {
- modifier = curator_buff_hatchling
- days = -1
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- }
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Scavenger Bot
- # Curator Guardians Menu
- country_event = {
- id = leviathans.555
- title = leviathans.555.name
- desc = leviathans.555.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.555.a
- response_text = leviathans.555.a.reply
- trigger = {
- NOT = { has_country_flag = bought_scavenger_info_1 }
- }
- custom_gui = "enclave_curator_option"
- is_dialog_only = yes
- hidden_effect = { set_country_flag = bought_scavenger_info_1 }
- }
- option = {
- name = leviathans.555.b
- response_text = leviathans.555.b.reply
- trigger = {
- NOT = { has_country_flag = bought_scavenger_info_2 }
- }
- custom_gui = "enclave_curator_option"
- is_dialog_only = yes
- hidden_effect = { set_country_flag = bought_scavenger_info_2 }
- }
- option = {
- name = leviathans.555.c
- response_text = leviathans.555.c.reply
- trigger = {
- NOT = { has_modifier = scavenger_weak_points }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- }
- add_resource = { energy = -1000 }
- add_modifier = {
- modifier = scavenger_weak_points
- days = -1
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- }
- }
- option = {
- name = leviathans.555.aa
- response_text = leviathans.555.b.reply
- trigger = {
- has_country_flag = bought_scavenger_info_1
- }
- custom_gui = "enclave_curator_option"
- is_dialog_only = yes
- }
- option = {
- name = leviathans.555.bb
- response_text = leviathans.555.b.reply
- trigger = {
- has_country_flag = bought_scavenger_info_2
- }
- custom_gui = "enclave_curator_option"
- is_dialog_only = yes
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Tiyanki Matriarch
- # Curator Guardians Menu
- country_event = {
- id = leviathans.556
- title = leviathans.556.name
- desc = leviathans.556.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.556.a
- response_text = leviathans.556.a.reply
- trigger = {
- NOT = { has_country_flag = bought_matriarch_info_1 }
- }
- custom_gui = "enclave_curator_option"
- is_dialog_only = yes
- hidden_effect = { set_country_flag = bought_matriarch_info_1 }
- }
- option = {
- name = leviathans.556.b
- response_text = leviathans.556.b.reply
- trigger = {
- NOT = { has_country_flag = bought_matriarch_info_2 }
- }
- custom_gui = "enclave_curator_option"
- is_dialog_only = yes
- hidden_effect = { set_country_flag = bought_matriarch_info_2 }
- }
- option = {
- name = leviathans.556.c
- response_text = leviathans.556.c.reply
- trigger = {
- NOT = { has_modifier = elderly_tiyanki_weak_points }
- }
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- }
- add_resource = { energy = -1000 }
- add_modifier = {
- modifier = elderly_tiyanki_weak_points
- days = -1
- }
- custom_tooltip = opinion20
- hidden_effect = {
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- }
- }
- option = {
- name = leviathans.556.aa
- response_text = leviathans.556.a.reply
- trigger = {
- has_country_flag = bought_matriarch_info_1
- }
- custom_gui = "enclave_curator_option"
- is_dialog_only = yes
- }
- option = {
- name = leviathans.556.bb
- response_text = leviathans.556.b.reply
- trigger = {
- has_country_flag = bought_matriarch_info_2
- }
- custom_gui = "enclave_curator_option"
- is_dialog_only = yes
- }
- option = { # Can we fight it? (No)
- name = leviathans.506.f
- trigger = { fleet_power < 5000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f1.reply
- }
- option = { # Can we fight it? (Probably not)
- name = leviathans.506.f
- trigger = {
- fleet_power > 5000
- fleet_power < 15000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f2.reply
- }
- option = { # Can we fight it? (Maybe)
- name = leviathans.506.f
- trigger = {
- fleet_power > 15000
- fleet_power < 30000
- }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f3.reply
- }
- option = { # Can we fight it? (Yes)
- name = leviathans.506.f
- trigger = { fleet_power > 30000 }
- custom_gui = "enclave_curator_option"
- response_text = leviathans.5106.f4.reply
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- default_hide_option = yes
- custom_gui = "enclave_curator_option"
- }
- }
- # Curator Hire Scientist Menu
- country_event = {
- id = leviathans.590
- title = leviathans.590.name
- desc = leviathans.590.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- event_target:curators = {
- owner_species = { save_event_target_as = curator_species }
- }
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = leviathans.590.a
- response_text = leviathans.590.a.reply
- custom_gui = "enclave_curator_option"
- allow = {
- resource_stockpile_compare = { resource = energy value >= 1000 }
- hidden_trigger = {
- NOT = { has_country_flag = attacked_curators }
- }
- }
- add_resource = { energy = -1000 }
- custom_tooltip = opinion20
- hidden_effect = {
- set_country_flag = curator_scientist_recruited
- event_target:curators = {
- add_trust = {
- who = root
- amount = 20
- }
- }
- random_list = {
- 20 = {
- create_leader = {
- class = scientist
- species = event_target:curator_species
- name = "NAME_Professor_Zarg"
- skill = 5
- traits = {
- trait = leader_trait_curator
- }
- event_leader = yes # prevents this leader from leading factions and winning elections
- }
- last_created_leader = {
- set_age = 41
- }
- }
- 20 = {
- create_leader = {
- class = scientist
- species = event_target:curator_species
- name = "NAME_Doctor_Xib"
- skill = 5
- traits = {
- trait = leader_trait_curator
- }
- event_leader = yes # prevents this leader from leading factions and winning elections
- }
- last_created_leader = {
- set_age = 45
- }
- }
- 20 = {
- create_leader = {
- class = scientist
- species = event_target:curator_species
- name = "NAME_The_Mentat"
- skill = 5
- traits = {
- trait = leader_trait_curator
- }
- event_leader = yes # prevents this leader from leading factions and winning elections
- }
- last_created_leader = {
- set_age = 43
- }
- }
- 20 = {
- create_leader = {
- class = scientist
- species = event_target:curator_species
- name = "NAME_Kix_the_Brilliant"
- skill = 5
- traits = {
- trait = leader_trait_curator
- }
- event_leader = yes # prevents this leader from leading factions and winning elections
- }
- last_created_leader = {
- set_age = 47
- }
- }
- 20 = {
- create_leader = {
- class = scientist
- species = event_target:curator_species
- name = "NAME_Sensei_Borkaz"
- skill = 5
- traits = {
- trait = leader_trait_curator
- }
- event_leader = yes # prevents this leader from leading factions and winning elections
- }
- last_created_leader = {
- set_age = 42
- }
- }
- }
- }
- }
- option = { # Back
- name = leviathans.506.d
- custom_gui = "enclave_curator_option"
- hidden_effect = {
- country_event = { id = leviathans.505 }
- }
- }
- option = { # Sign Off
- name = leviathans.506.e
- custom_gui = "enclave_curator_option"
- default_hide_option = yes
- }
- }
- # Port
- country_event = {
- id = leviathans.501
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- from = {
- country_event = { id = leviathans.502 }
- }
- }
- }
- # Curator Introduction
- country_event = {
- id = leviathans.502
- title = leviathans.502.name
- desc = {
- text = leviathans.502a.desc
- trigger = {
- NOT = { has_country_flag = curator_intro }
- }
- }
- desc = {
- text = leviathans.502b.desc
- trigger = { has_country_flag = curator_intro }
- }
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = from
- room = enclave_curator_room
- }
- is_triggered_only = yes
- after = {
- if = {
- limit = {
- NOT = { has_country_flag = curator_intro }
- }
- set_country_flag = curator_intro
- }
- }
- option = {
- name = leviathans.502.a
- custom_gui = "enclave_curator_option"
- trigger = {
- NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator }
- }
- }
- option = {
- name = SCUM
- custom_gui = "enclave_curator_option"
- trigger = {
- has_valid_civic = civic_fanatic_purifiers
- }
- }
- option = {
- name = TASTY
- custom_gui = "enclave_curator_option"
- trigger = {
- has_valid_civic = civic_hive_devouring_swarm
- }
- }
- option = {
- name = EXTERMINATE
- custom_gui = "enclave_curator_option"
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- }
- }
- # Enclave Communication Spread
- country_event = {
- id = leviathans.560
- hide_window = yes
- trigger = {
- is_country_type = enclave
- any_relation = {
- is_country_type = default
- any_relation = {
- is_country_type = default
- NOT = { has_communications = ROOT }
- }
- }
- }
- mean_time_to_happen = {
- months = 80
- }
- immediate = {
- random_relation = {
- limit = {
- any_relation = {
- is_country_type = default
- NOT = { has_communications = ROOT }
- }
- }
- random_relation = {
- limit = {
- is_country_type = default
- NOT = { has_communications = ROOT }
- }
- root = { establish_communications_no_message = prev }
- country_event = { id = leviathans.98 }
- }
- }
- }
- }
- # Curator Destroyed (HIDDEN)
- country_event = {
- id = leviathans.592
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = enclave
- has_country_flag = curator_enclave_country
- FROMFROM = {
- is_ship_size = enclave_station
- }
- }
- immediate = {
- FROMFROM = {
- solar_system = { save_event_target_as = curator_system }
- }
- FROM = {
- country_event = { id = leviathans.593 }
- save_event_target_as = curator_destroyer
- }
- observer_event = { id = observer.7 }
- every_country = {
- limit = {
- has_communications = ROOT
- NOT = { is_country = event_target:curator_destroyer }
- is_country_type = default
- }
- country_event = { id = leviathans.594 }
- }
- }
- }
- # Curator Destroyed (Destroyer)
- country_event = {
- id = leviathans.593
- title = "leviathans.593"
- desc = "leviathans.593.desc"
- picture = GFX_evt_space_debris
- location = event_target:curator_system
- show_sound = event_ship_bridge
- is_triggered_only = yes
- immediate = {
- set_country_flag = destroyed_curator
- if = {
- limit = {
- has_modifier = curator_insight
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- }
- remove_modifier = "curator_insight"
- remove_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- }
- }
- option = {
- name = EXCELLENT
- add_resource = {
- physics_research = 1000
- society_research = 1000
- engineering_research = 1000
- }
- if = {
- limit = { has_ancrel = yes }
- medium_artifact_reward = yes
- }
- }
- }
- # Curator Destroyed
- country_event = {
- id = leviathans.594
- title = "leviathans.593"
- desc = {
- text = leviathans.594.a.desc
- trigger = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- }
- has_communications = event_target:curator_destroyer
- }
- }
- desc = {
- text = leviathans.594.b.desc
- trigger = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- }
- NOT = { has_communications = event_target:curator_destroyer }
- }
- }
- desc = {
- text = leviathans.594.c.desc
- trigger = {
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- FROM = {
- count_owned_ships = {
- limit = { is_ship_size = enclave_station }
- count < 1
- }
- }
- has_communications = event_target:curator_destroyer
- }
- }
- desc = {
- text = leviathans.594.d.desc
- trigger = {
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- FROM = {
- count_owned_ships = {
- limit = { is_ship_size = enclave_station }
- count < 1
- }
- }
- NOT = { has_communications = event_target:curator_destroyer }
- }
- }
- picture = GFX_evt_exploding_ship
- location = event_target:curator_system
- show_sound = event_ship_explosion
- is_triggered_only = yes
- immediate = {
- if = {
- limit = {
- has_modifier = curator_insight
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- FROM = {
- count_owned_ships = {
- limit = { is_ship_size = enclave_station }
- count < 1
- }
- }
- }
- remove_modifier = "curator_insight"
- }
- if = {
- limit = {
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- FROM = {
- count_owned_ships = {
- limit = { is_ship_size = enclave_station }
- count < 1
- }
- }
- is_ai = yes
- }
- add_opinion_modifier = {
- who = event_target:curator_destroyer
- modifier = opinion_destroyed_curator_insight
- }
- }
- if = {
- limit = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- }
- is_ai = yes
- }
- add_opinion_modifier = {
- who = event_target:curator_destroyer
- modifier = opinion_destroyed_curator
- }
- }
- }
- option = {
- name = "leviathans.594.a"
- trigger = {
- NOT = {
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- }
- }
- }
- option = {
- name = "leviathans.594.b"
- trigger = {
- has_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- FROM = {
- count_owned_ships = {
- limit = { is_ship_size = enclave_station }
- count < 1
- }
- }
- }
- hidden_effect = {
- remove_relation_flag = {
- who = FROM
- flag = curator_trade
- }
- }
- }
- }
- # Attacked Curators (HIDDEN)
- country_event = {
- id = leviathans.595
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = default
- FROM = { has_country_flag = curator_enclave_country }
- }
- immediate = {
- FROM = {
- save_event_target_as = curators
- add_trust = {
- who = ROOT
- amount = -100
- }
- }
- set_country_flag = attacked_curators
- if = {
- limit = { has_modifier = curator_insight }
- remove_modifier = curator_insight
- country_event = { id = leviathans.596}
- }
- }
- }
- # Attacked Curators - Research Agreement Terminated
- country_event = {
- id = leviathans.596
- title = leviathans.500.name
- desc = leviathans.596.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- option = {
- name = leviathans.156.a
- custom_gui = "enclave_curator_option"
- }
- }
- # Attacked Curators - Refuses Communications
- country_event = {
- id = leviathans.597
- title = leviathans.500.name
- desc = leviathans.597a.desc
- desc = leviathans.597b.desc
- desc = leviathans.597c.desc
- desc = leviathans.597d.desc
- is_triggered_only = yes
- diplomatic = yes
- custom_gui = "enclave_curator_window"
- force_open = yes
- picture_event_data = {
- portrait = event_target:curators
- room = enclave_curator_room
- }
- trigger = {
- FROM = {
- is_country_type = enclave
- has_country_flag = curator_enclave_country
- }
- has_country_flag = attacked_curators
- NOT = { has_country_flag = curator_enclave_diplomacy_engaged }
- }
- immediate = {
- set_country_flag = curator_enclave_diplomacy_engaged
- FROM = { save_event_target_as = curators }
- }
- after = {
- hidden_effect = {
- remove_country_flag = curator_enclave_diplomacy_engaged
- }
- }
- option = {
- name = SCUM
- trigger = { has_valid_civic = civic_fanatic_purifiers }
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = TASTY
- trigger = { has_valid_civic = civic_hive_devouring_swarm }
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = EXTERMINATE
- trigger = {
- has_valid_civic = civic_machine_terminator
- }
- custom_gui = "enclave_curator_option"
- }
- option = {
- name = leviathans.156.a
- custom_gui = "enclave_curator_option"
- trigger = { NOR = { has_valid_civic = civic_fanatic_purifiers has_valid_civic = civic_hive_devouring_swarm has_valid_civic = civic_machine_terminator } }
- default_hide_option = yes
- }
- }
- # RESTART DEBUG
- fleet_event = {
- id = leviathans.601
- hide_window = yes
- trigger = { always = no }
- immediate = { fleet_event = { id = leviathans.602 } }
- }
- fleet_event = {
- id = leviathans.602
- hide_window = yes
- trigger = { always = no }
- immediate = { owner = { country_event = { id = leviathans.640 } } }
- }
- # Encounter
- fleet_event = {
- id = leviathans.610
- title = leviathans.610.name
- desc = leviathans.610.desc
- picture = GFX_evt_space_dragon
- location = from
- show_sound = event_yellow_alert
- is_triggered_only = yes
- trigger = {
- from = {
- has_star_flag = guardians_dragon_system
- any_ship_in_system = { is_ship_size = space_dragon_red }
- }
- owner = {
- NOT = {
- has_country_flag = dragon_encounter
- }
- OR = {
- is_country_type = default
- is_country_type = fallen_empire
- is_country_type = awakened_fallen_empire
- }
- }
- }
- immediate = {
- owner = {
- set_country_flag = dragon_encounter
- }
- }
- option = {
- name = leviathans.610.a
- }
- }
- # Restart mission after battle
- country_event = {
- id = leviathans.640
- hide_window = yes
- trigger = {
- is_country_type = guardian_dragon
- has_country_flag = dragon_country
- fromfrom = {
- has_hp_percentage > 0.15
- solar_system = {
- NOT = {
- has_star_flag = guardians_dragon_system
- }
- }
- }
- }
- is_triggered_only = yes
- immediate = {
- fromfrom = {
- if = {
- limit = {
- has_fleet_flag = dragon_mission_1
- }
- queue_actions = {
- repeat = {
- find_closest_system = {
- trigger = {
- id = dragon.1.retaliation.1x
- has_star_flag = system_target_1
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = dragon.1.retaliation.2x
- is_star = yes
- }
- found_planet = {
- move_to = this
- wait = {
- duration = 60
- }
- effect = {
- id = dragon.1.retaliation.3x
- solar_system = {
- remove_star_flag = system_target_1
- }
- root = {
- remove_fleet_flag = dragon_mission_1
- clear_fleet_actions = this
- }
- }
- }
- }
- }
- }
- }
- }
- if = {
- limit = {
- any_system = {
- has_star_flag = system_target_2
- }
- }
- queue_actions = {
- repeat = {
- find_closest_system = {
- trigger = {
- id = dragon.2.retaliation.1x
- is_same_value = event_target:system_target_2
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = dragon.2.retaliation.2x
- is_star = yes
- }
- found_planet = {
- move_to = this
- wait = {
- duration = 60
- }
- effect = {
- id = dragon.2.retaliation.3x
- solar_system = {
- remove_star_flag = system_target_2
- }
- root = {
- remove_fleet_flag = dragon_mission_2
- clear_fleet_actions = this
- }
- }
- }
- }
- }
- }
- }
- }
- queue_actions = {
- repeat = {
- find_closest_system = {
- trigger = {
- id = dragon.3.retaliation.1x
- has_star_flag = guardians_dragon_system
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = dragon.3.retaliation.2x
- has_planet_flag = hoard_planet
- }
- found_planet = {
- move_to = this
- effect = {
- id = dragon.3.retaliation.3x
- root = {
- remove_fleet_flag = dragon_mission_3
- clear_fleet_actions = this
- }
- }
- }
- }
- }
- }
- }
- }
- }
- break = yes
- }
- if = {
- limit = {
- has_fleet_flag = dragon_mission_2
- }
- queue_actions = {
- repeat = {
- find_closest_system = {
- trigger = {
- id = dragon.2.retaliation.1y
- has_star_flag = system_target_2
- }
- found_system = {
- move_to = this
- }
- }
- find_closest_planet = {
- trigger = {
- id = dragon.2.retaliation.2y
- is_star = yes
- }
- found_planet = {
- move_to = this
- wait = {
- duration = 60
- }
- effect = {
- id = dragon.2.retaliation.3y
- solar_system = {
- remove_star_flag = system_target_2
- }
- root = {
- remove_fleet_flag = dragon_mission_2
- clear_fleet_actions = this
- }
- }
- }
- }
- }
- }
- queue_actions = {
- repeat = {
- find_closest_system = {
- trigger = {
- id = dragon.3.retaliation.1y
- has_star_flag = guardians_dragon_system
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = dragon.3.retaliation.2y
- has_planet_flag = hoard_planet
- }
- found_planet = {
- move_to = this
- effect = {
- id = dragon.3.retaliation.3y
- root = {
- remove_fleet_flag = dragon_mission_3
- clear_fleet_actions = this
- }
- }
- }
- }
- }
- }
- }
- }
- break = yes
- }
- if = {
- limit = {
- has_fleet_flag = dragon_mission_3
- }
- queue_actions = {
- repeat = {
- find_closest_system = {
- trigger = {
- id = dragon.3.retaliation.1z
- has_star_flag = guardians_dragon_system
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = dragon.3.retaliation.2z
- has_planet_flag = hoard_planet
- }
- found_planet = {
- move_to = this
- effect = {
- id = dragon.3.retaliation.3z
- root = {
- remove_fleet_flag = dragon_mission_3
- clear_fleet_actions = this
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- # Dragon retaliates if hurt and fleet destroyed
- country_event = {
- id = leviathans.648
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = guardian_dragon
- any_owned_ship = {
- is_ship_size = space_dragon_red
- has_hp_percentage < 0.80
- has_hp_percentage > 0.15
- fleet = {
- NOT = {
- has_fleet_flag = aggro_cooldown
- }
- exists = solar_system
- solar_system = {
- has_star_flag = guardians_dragon_system
- }
- }
- }
- from = {
- is_country_type = default
- }
- }
- immediate = {
- random_owned_fleet = {
- limit = {
- any_owned_ship = {
- is_ship_size = space_dragon_red
- }
- }
- set_timed_fleet_flag = {
- flag = aggro_cooldown
- days = 60
- }
- clear_fleet_actions = this
- fleet_event = { id = leviathans.652 }
- }
- from = {
- country_event = { id = leviathans.649 }
- }
- }
- }
- # Retaliation notification
- country_event = {
- id = leviathans.649
- title = leviathans.650.name
- desc = {
- text = leviathans.649.desc
- trigger = {
- NOT = { has_ethic = ethic_gestalt_consciousness }
- }
- }
- desc = {
- text = leviathans.649.desc.gesta
- trigger = {
- has_ethic = ethic_gestalt_consciousness
- }
- }
- picture = GFX_evt_exploding_ship
- is_triggered_only = yes
- trigger = {
- from = { is_country_type = guardian_dragon }
- }
- option = {
- name = leviathans.649.a
- trigger = {
- NOT = { has_ethic = ethic_gestalt_consciousness }
- }
- }
- option = {
- name = leviathans.649.b.gesta
- trigger = {
- has_ethic = ethic_gestalt_consciousness
- }
- }
- }
- # Dragon pursues if fleet flees
- # Fired before entering FTL - does combat still exist?
- fleet_event = {
- id = leviathans.650
- #hide_window = yes
- title = leviathans.650.name
- desc = {
- text = leviathans.650.desc
- trigger = {
- owner = { NOT = { has_ethic = ethic_gestalt_consciousness } }
- }
- }
- desc = {
- text = leviathans.650.desc.gesta
- trigger = {
- owner = { has_ethic = ethic_gestalt_consciousness }
- }
- }
- picture = GFX_evt_space_dragon
- is_triggered_only = yes
- trigger = {
- owner = {
- is_country_type = default
- }
- from = {
- has_star_flag = guardians_dragon_system
- }
- any_combatant_fleet = {
- exists = owner
- owner = {
- is_country_type = guardian_dragon
- }
- NOT = { has_fleet_flag = aggro_cooldown }
- any_owned_ship = {
- is_ship_size = space_dragon_red
- has_hp_percentage < 0.80
- has_hp_percentage > 0.15
- }
- }
- }
- immediate = {
- random_combatant_fleet = {
- limit = {
- exists = owner
- owner = {
- is_country_type = guardian_dragon
- }
- any_owned_ship = {
- is_ship_size = space_dragon_red
- }
- }
- #save_event_target_as = retaliating_dragon
- set_timed_fleet_flag = {
- flag = aggro_cooldown
- days = 30
- }
- clear_fleet_actions = this
- fleet_event = { id = leviathans.651 }
- }
- }
- option = {
- name = leviathans.649.a
- trigger = { owner = { NOT = { has_ethic = ethic_gestalt_consciousness } } }
- }
- option = {
- name = leviathans.649.b.gesta
- trigger = { owner = { has_ethic = ethic_gestalt_consciousness } }
- }
- }
- # Goes to two of fleeing country's systems (with stations) and gets wreckin'
- fleet_event = {
- id = leviathans.651
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- exists = from
- exists = from.owner
- }
- immediate = {
- closest_system = {
- limit = {
- any_ship_in_system = {
- OR = {
- is_ship_size = mining_station
- is_ship_size = research_station
- is_ship_class = shipclass_starbase
- }
- exists = owner
- owner = {
- is_same_value = from.owner
- }
- }
- }
- set_star_flag = system_target_1
- save_event_target_as = system_target_1
- }
- if = {
- limit = {
- exists = event_target:system_target_1
- }
- set_fleet_flag = dragon_mission_1
- #from.owner = { country_event = { id = leviathans.649 } }
- queue_actions = {
- repeat = {
- max_iterations = 1
- find_closest_system = {
- trigger = {
- id = dragon.1.retaliation.1
- is_same_value = event_target:system_target_1
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = dragon.1.retaliation.2
- is_star = yes
- }
- found_planet = {
- move_to = this
- wait = {
- duration = 1
- }
- effect = {
- id = dragon.1.retaliation.3
- solar_system = {
- remove_star_flag = system_target_1
- }
- root = {
- remove_fleet_flag = dragon_mission_1
- #clear_fleet_actions = this
- }
- }
- find_closest_system = {
- trigger = {
- id = dragon.3.retaliation.1
- has_star_flag = guardians_dragon_system
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = dragon.3.retaliation.2
- has_planet_flag = hoard_planet
- }
- found_planet = {
- move_to = this
- effect = {
- id = dragon.3.retaliation.3
- root = {
- remove_fleet_flag = dragon_mission_3
- clear_fleet_actions = this
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- # Goes to two of destroyed fleet owner's systems (with stations) and gets wreckin'
- fleet_event = {
- id = leviathans.652
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- exists = fromfrom
- }
- immediate = {
- closest_system = {
- limit = {
- any_ship_in_system = {
- OR = {
- is_ship_size = mining_station
- is_ship_size = research_station
- is_ship_class = shipclass_starbase
- }
- exists = owner
- owner = {
- is_same_value = fromfrom
- }
- }
- }
- set_star_flag = system_target_3
- save_event_target_as = system_target_3
- }
- if = {
- limit = {
- exists = event_target:system_target_3
- }
- set_fleet_flag = dragon_mission_1
- #fromfrom = { country_event = { id = leviathans.649 } }
- queue_actions = {
- repeat = {
- max_iterations = 1
- find_closest_system = {
- trigger = {
- id = dragon.4.retaliation.1
- is_same_value = event_target:system_target_3
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = dragon.4.retaliation.2
- is_star = yes
- }
- found_planet = {
- move_to = this
- wait = {
- duration = 1
- }
- effect = {
- id = dragon.4.retaliation.3
- solar_system = {
- remove_star_flag = system_target_3
- }
- root = {
- remove_fleet_flag = dragon_mission_3
- #clear_fleet_actions = this
- }
- }
- find_closest_system = {
- trigger = {
- id = dragon.5.retaliation.1
- has_star_flag = guardians_dragon_system
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = dragon.5.retaliation.2
- has_planet_flag = hoard_planet
- }
- found_planet = {
- move_to = this
- effect = {
- id = dragon.5.retaliation.3
- root = {
- remove_fleet_flag = dragon_mission_3
- clear_fleet_actions = this
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- fleet_event = {
- id = leviathans.654
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- owner = {
- is_country_type = default
- }
- from = {
- has_star_flag = guardians_dragon_system
- }
- any_combatant_fleet = {
- exists = owner
- owner = {
- is_country_type = guardian_dragon
- }
- #NOT = { has_fleet_flag = aggro_cooldown }
- any_owned_ship = {
- is_ship_size = space_dragon_red
- has_hp_percentage < 0.16
- }
- }
- }
- immediate = {
- from = {
- random_fleet_in_system = {
- limit = {
- exists = owner
- owner = {
- is_country_type = guardian_dragon
- }
- #NOT = { has_fleet_flag = aggro_cooldown }
- any_owned_ship = {
- is_ship_size = space_dragon_red
- }
- }
- random_owned_ship = {
- limit = { is_ship_size = space_dragon_red }
- save_event_target_as = dragon_ship
- }
- clear_fleet_actions = this
- queue_actions = {
- repeat = {
- max_iterations = 1
- find_random_system = {
- trigger = {
- id = guardian.hibernate.7
- has_star_flag = guardians_dragon_system
- }
- found_system = {
- move_to = this
- find_random_planet = {
- trigger = {
- id = guardian.hibernate.8
- is_star = yes
- }
- found_planet = {
- move_to = this
- orbit_planet = this
- effect = {
- id = guardian.hibernate.9
- event_target:dragon_ship = {
- repair_ship = yes
- }
- }
- }
- }
- wait = {
- duration = 60
- }
- }
- }
- }
- }
- }
- }
- }
- }
- # On won battle but wounded, hibernate
- country_event = {
- id = leviathans.655
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = guardian_dragon
- fromfrom = {
- any_owned_ship = {
- has_hp_percentage < 0.16
- }
- NOR = {
- has_fleet_flag = dragon_mission_1
- has_fleet_flag = dragon_mission_2
- has_fleet_flag = dragon_mission_3
- }
- }
- }
- immediate = {
- fromfrom = {
- clear_fleet_actions = this
- queue_actions = {
- repeat = {
- max_iterations = 1
- find_random_system = {
- trigger = {
- id = guardian.hibernate.1
- has_star_flag = guardians_dragon_system
- }
- found_system = {
- move_to = this
- find_random_planet = {
- trigger = {
- id = guardian.hibernate.2
- is_star = yes
- }
- found_planet = {
- orbit_planet = this
- effect = {
- id = guardian.hibernate.3
- root.fromfrom = { random_owned_ship = { repair_ship = yes } }
- }
- }
- }
- wait = {
- duration = 60
- }
- }
- }
- }
- }
- }
- }
- }
- fleet_event = {
- id = leviathans.1
- hide_window = yes
- trigger = { always = no }
- immediate = {
- destroy_fleet = this
- }
- }
- planet_event = {
- id = leviathans.660
- hide_window = yes
- mean_time_to_happen = {
- years = 50
- }
- trigger = {
- has_planet_flag = hoard_planet
- #has_deposit = d_guardian_dragon_hoard
- NOT = {
- has_planet_flag = deboned
- }
- has_mining_station = yes
- exists = controller
- controller = {
- is_country_type = default
- }
- }
- immediate = {
- set_planet_flag = deboned
- controller = {
- country_event = { id = leviathans.661 }
- }
- }
- }
- # Dragon Hoard event - Bones
- country_event = {
- id = leviathans.661
- title = "leviathans.660.name"
- desc = "leviathans.660.desc"
- picture = GFX_evt_archaeological_dig
- location = from
- show_sound = event_mystic_reveal
- is_triggered_only = yes
- option = {
- name = leviathans.660.a
- add_research_option = tech_dragon_armor
- add_tech_progress = {
- tech = tech_dragon_armor
- progress = 0.3
- }
- }
- option = {
- name = leviathans.660.b
- add_monthly_resource_mult = {
- resource = minerals
- value = 36
- min = 100
- max = 4000
- }
- add_monthly_resource_mult = {
- resource = society_research
- value = 30
- min = 1000
- max = 5000
- }
- }
- }
- planet_event = {
- id = leviathans.662
- hide_window = yes
- mean_time_to_happen = {
- years = 50
- }
- trigger = {
- has_planet_flag = hoard_planet
- #has_deposit = d_guardian_dragon_hoard
- NOT = {
- has_planet_flag = deegged
- }
- has_mining_station = yes
- exists = controller
- controller = {
- is_country_type = default
- }
- }
- immediate = {
- set_planet_flag = deegged
- controller = {
- country_event = { id = leviathans.663 }
- }
- }
- }
- # Dragon Hoard event - Egg
- country_event = {
- id = leviathans.663
- title = "leviathans.661.name"
- desc = "leviathans.661.desc"
- picture = GFX_evt_archaeological_dig
- location = root
- show_sound = event_mystic_reveal
- trackable = yes
- is_triggered_only = yes
- option = {
- name = leviathans.661.a
- custom_tooltip = leviathans.661.a.tooltip
- capital_scope = {
- enable_special_project = {
- name = "DRAGON_INCUBATION_PROJECT"
- location = this
- owner = root
- }
- }
- }
- option = {
- name = leviathans.661.b
- custom_tooltip = leviathans.661.b.tooltip
- add_resource = { influence = 300 }
- }
- }
- # Egg incubated
- planet_event = {
- id = leviathans.664
- title = leviathans.664.name
- desc = leviathans.664.desc
- picture = GFX_evt_space_dragon
- location = root
- show_sound = event_mystic_reveal
- is_triggered_only = yes
- immediate = {
- create_fleet = {
- name = "NAME_Ether_Hatchling"
- settings = {
- can_upgrade = no
- can_change_composition = no
- can_change_leader = no
- uses_naval_capacity = no
- spawn_debris = no
- }
- effect = {
- set_owner = root.owner
- create_ship_design = {
- design = NAME_Dragonspawn
- }
- create_ship = {
- design = last_created_design
- name = "NAME_Scile"
- prefix = no
- upgradable = no
- }
- set_location = root
- }
- }
- owner = { set_country_flag = hatched_dragon }
- }
- option = {
- name = leviathans.664.a
- custom_tooltip = leviathans.664.a.tooltip
- }
- }
- country_event = {
- id = leviathans.665
- title = leviathans.665.name
- desc = {
- text = leviathans.665.desc
- trigger = { NOT = { has_ethic = ethic_gestalt_consciousness } }
- }
- desc = {
- text = leviathans.665.desc.gesta
- trigger = { has_ethic = ethic_gestalt_consciousness }
- }
- picture = GFX_evt_throne_room
- location = capital_scope
- show_sound = event_mystic_reveal
- is_triggered_only = yes
- option = {
- name = UNFORTUNATE
- }
- }
- # victorious admiral gains dragonslayer trait
- country_event = {
- id = leviathans.670
- title = leviathans.670.name
- desc = {
- text = leviathans.670.desc
- trigger = {
- NOT = { has_ethic = ethic_gestalt_consciousness }
- fromfrom = {
- exists = leader
- }
- }
- }
- desc = {
- text = leviathans.670.desc.noleader
- trigger = {
- NOT = { has_ethic = ethic_gestalt_consciousness }
- fromfrom = {
- NOT = { exists = leader }
- }
- }
- }
- desc = {
- text = leviathans.670.desc.gesta
- trigger = {
- has_ethic = ethic_gestalt_consciousness
- fromfrom = {
- NOT = { exists = leader }
- }
- }
- }
- picture = GFX_evt_space_dragon
- location = fromfrom
- show_sound = event_mystic_reveal
- is_triggered_only = yes
- trigger = {
- from = {
- is_country_type = guardian_dragon
- NOT = { has_country_flag = rubricator_dragon_country }
- }
- #fromfromfrom = {
- # has_fleet_flag = dragon_fleet
- #}
- }
- immediate = {
- every_country = {
- limit = {
- is_country_type = default
- has_modifier = draconic_beats
- }
- remove_modifier = draconic_beats
- }
- fromfrom.solar_system = {
- save_event_target_as = slain_guardian_system
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:slain_guardian_system = {
- is_point_of_interest = {
- id = curator_poi_dragon
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_dragon
- end_curator_chain = yes
- }
- }
- option = {
- name = leviathans.670.a
- trigger = {
- fromfrom = {
- exists = leader
- }
- }
- fromfrom = {
- leader = {
- add_trait = leader_trait_dragonslayer
- }
- }
- add_resource = { influence = 300 }
- add_relic = r_dragon_trophy
- capital_scope = {
- add_deposit = d_dragon_monument
- }
- }
- option = {
- name = leviathans.670.a
- trigger = {
- fromfrom = {
- NOT = {
- exists = leader
- }
- }
- }
- add_resource = { influence = 300 }
- add_relic = r_dragon_trophy
- capital_scope = {
- add_deposit = d_dragon_monument
- }
- }
- }
- ### STELLARITE ###
- # Stellarite spawns as an empire enters its system
- ship_event = {
- id = leviathans.999
- title = leviathans.999.name
- desc = leviathans.999.desc
- picture = GFX_evt_star_yellow
- show_sound = event_radio_chatter
- location = root
- is_triggered_only = yes
- trigger = {
- from = {
- has_star_flag = guardians_stellarite_system
- NOT = {
- has_star_flag = guardians_stellarite_about_to_spawn
- }
- }
- }
- immediate = {
- from = {
- set_star_flag = guardians_stellarite_about_to_spawn
- save_event_target_as = stellarite_system
- set_star_flag = stellarite_present
- every_system_planet = {
- limit = {
- is_star = no
- is_asteroid = no
- }
- add_modifier = {
- modifier = stellarite_low_temp
- days = -1
- }
- }
- }
- }
- option = {
- name = leviathans.999.a
- hidden_effect = {
- owner = {
- country_event = { id = leviathans.1000 days = 7 }
- }
- }
- }
- }
- # Stellarite spawns
- country_event = {
- id = leviathans.1000
- title = leviathans.1000.name
- desc = leviathans.1000.desc
- picture = GFX_evt_stellarites
- show_sound = event_radio_chatter
- location = fromfrom
- is_triggered_only = yes
- trigger = {
- NOT = { has_country_flag = guardians_stellarite_encountered }
- any_system = {
- has_star_flag = guardians_stellarite_about_to_spawn
- has_star_flag = guardians_stellarite_system
- }
- }
- option = {
- name = BATTLESTATIONS
- hidden_effect = {
- set_country_flag = guardians_stellarite_encountered
- country_event = { id = story.8 days = 15 }
- event_target:stellarite_system = {
- random_system_planet = {
- limit = {
- is_star = yes
- }
- change_planet_size = -5
- spawn_sun_temperature_effect = yes
- create_country = {
- name = "NAME_Stellarite"
- type = guardian_stellarite
- flag = {
- icon = {
- category = "zoological"
- file = "flag_zoological_1.dds"
- }
- background= {
- category = "backgrounds"
- file = "00_solid.dds"
- }
- colors={
- "black"
- "black"
- "null"
- "null"
- }
- }
- }
- last_created_country = {
- save_global_event_target_as = stellarite_country
- set_country_flag = guardian_stellarite_country
- create_fleet = {
- name = "NAME_Stellarite_Devourer"
- settings = {
- spawn_debris = no
- is_boss = yes
- }
- effect = {
- set_owner = event_target:stellarite_country
- create_ship = {
- name = "NAME_Stellar_Devourer"
- design = "NAME_Stellarite"
- effect = {
- set_ship_flag = stellarite_ship
- save_global_event_target_as = stellarite
- }
- }
- set_location = PREVPREV
- set_fleet_stance = aggressive
- set_aggro_range_measure_from = self
- set_aggro_range = 100
- }
- }
- }
- }
- }
- establish_communications_no_message = event_target:stellarite_country
- }
- }
- }
- # Players who haven't encountered the stellarite gets a message
- ship_event = {
- id = leviathans.1001
- title = leviathans.1000.name
- desc = {
- trigger = {
- hidden:fromfromfrom = {
- hidden:solar_system = {
- switch = {
- trigger = has_star_flag
- guardians_stellarite_system = { text = leviathans.1000.desc }
- default = { text = leviathans.1001.desc }
- }
- }
- }
- }
- }
- picture = GFX_evt_stellarites
- show_sound = event_radio_chatter
- location = root
- is_triggered_only = yes
- trigger = {
- fromfrom = {
- is_ai = no
- NOT = { has_country_flag = guardians_stellarite_encountered }
- }
- from = {
- any_ship_in_system = {
- exists = owner
- owner = {
- is_country_type = guardian_stellarite
- has_country_flag = guardian_stellarite_country
- }
- }
- }
- }
- immediate = {
- fromfrom = {
- country_event = { id = story.8 days = 15 }
- set_country_flag = guardians_stellarite_encountered
- establish_communications_no_message = event_target:stellarite_country
- }
- }
- option = {
- name = DISCONCERTING
- }
- }
- # Stellarite enter system - temperature change
- fleet_event = {
- id = leviathans.1005
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- exists = owner
- owner = {
- is_country_type = guardian_stellarite
- has_country_flag = guardian_stellarite_country
- }
- solar_system = {
- NOT = { has_star_flag = guardians_stellarite_system }
- }
- }
- immediate = {
- if = {
- limit = {
- any_system = {
- has_star_flag = stellarite_present
- NOT = {
- any_ship_in_system = {
- owner = {
- has_country_flag = guardian_stellarite_country
- }
- }
- }
- }
- }
- random_system = {
- limit = {
- has_star_flag = stellarite_present
- }
- remove_star_flag = stellarite_present
- every_system_planet = {
- limit = {
- has_modifier = stellarite_high_temp
- }
- remove_modifier = stellarite_high_temp
- }
- }
- }
- solar_system = {
- set_star_flag = stellarite_present
- every_system_planet = {
- limit = {
- is_star = no
- is_asteroid = no
- }
- add_modifier = {
- modifier = stellarite_high_temp
- days = -1
- }
- }
- }
- }
- }
- # Stellarite behaviour - chase aggressor setup - from destroyed fleet
- country_event = {
- id = leviathans.1009
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- fromfrom = {
- owner = {
- is_country_type = guardian_stellarite
- }
- any_owned_ship = {
- has_ship_flag = stellarite_ship
- }
- has_hp_percentage < 0.995
- has_hp_percentage > 0.33
- }
- }
- immediate = {
- from = {
- save_event_target_as = attacker_country
- set_timed_country_flag = { flag = stellarite_in_pursuit days = 90 } #set so the stellarite finds them
- }
- fromfrom = {
- clear_fleet_actions = this
- save_event_target_as = stellarite_fleet
- set_timed_fleet_flag = { flag = stellarite_in_pursuit days = 90 } #set so the stellarite knows when to stop chase
- queue_actions = {
- repeat = {
- while = {
- id = leviathans.1009.trigger.1
- has_hp_percentage > 0.33
- has_fleet_flag = stellarite_in_pursuit
- }
- find_closest_system = {
- trigger = {
- id = leviathans.1009.trigger.2
- exists = space_owner
- space_owner = { has_country_flag = stellarite_in_pursuit }
- any_system_planet = {
- OR = {
- has_mining_station = yes
- has_research_station = yes
- }
- is_owned_by = event_target:attacker_country
- }
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = leviathans.1009.trigger.3
- OR = {
- has_mining_station = yes
- has_research_station = yes
- }
- is_owned_by = event_target:attacker_country
- }
- found_planet = {
- move_to = this
- effect = {
- id = leviathans.1009.effect.3
- event_target:stellarite_fleet = {
- fleet_event = { id = leviathans.1011 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- failed = {
- effect = {
- id = leviathans.1009.effect.2
- event_target:stellarite_fleet = {
- set_timed_fleet_flag = { flag = returning_home days = 7 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- }
- }
- failed = {
- effect = {
- id = leviathans.1009.effect.1
- event_target:stellarite_fleet = {
- set_timed_fleet_flag = { flag = returning_home days = 7 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- # Stellarite behaviour - chase aggressor setup - from emergency ftl
- fleet_event = {
- id = leviathans.1010
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- any_combatant_fleet = {
- owner = {
- is_country_type = guardian_stellarite
- }
- any_owned_ship = {
- has_ship_flag = stellarite_ship
- }
- has_hp_percentage < 0.995
- has_hp_percentage > 0.33
- }
- }
- immediate = {
- owner = {
- save_event_target_as = attacker_country
- set_timed_country_flag = { flag = stellarite_in_pursuit days = 90 } #set so the stellarite finds them
- }
- random_combatant_fleet = {
- limit = {
- any_owned_ship = {
- has_ship_flag = stellarite_ship
- }
- }
- clear_fleet_actions = this
- save_event_target_as = stellarite_fleet
- set_timed_fleet_flag = { flag = stellarite_in_pursuit days = 90 } #set so the stellarite knows when to stop chase
- queue_actions = {
- repeat = {
- while = {
- id = leviathans.1010.trigger.1
- has_hp_percentage > 0.33
- has_fleet_flag = stellarite_in_pursuit
- }
- find_closest_system = {
- trigger = {
- id = leviathans.1010.trigger.2
- exists = space_owner
- space_owner = { has_country_flag = stellarite_in_pursuit }
- any_system_planet = {
- OR = {
- has_mining_station = yes
- has_research_station = yes
- }
- is_owned_by = event_target:attacker_country
- }
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = leviathans.1010.trigger.3
- OR = {
- has_mining_station = yes
- has_research_station = yes
- }
- is_owned_by = event_target:attacker_country
- }
- found_planet = {
- move_to = this
- effect = {
- id = leviathans.1010.effect.3
- event_target:stellarite_fleet = {
- fleet_event = { id = leviathans.1011 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- failed = {
- effect = {
- id = leviathans.1010.effect.2
- event_target:stellarite_fleet = {
- set_timed_fleet_flag = { flag = returning_home days = 7 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- }
- }
- failed = {
- effect = {
- id = leviathans.1010.effect.1
- event_target:stellarite_fleet = {
- set_timed_fleet_flag = { flag = returning_home days = 7 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- # Stellarite behaviour - chase aggressor continuation
- fleet_event = {
- id = leviathans.1011
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- owner = {
- is_country_type = guardian_stellarite
- }
- has_fleet_flag = stellarite_in_pursuit
- has_hp_percentage < 0.995
- has_hp_percentage > 0.33
- }
- immediate = {
- clear_fleet_actions = this
- save_event_target_as = stellarite_fleet
- queue_actions = {
- repeat = {
- while = {
- id = leviathans.1011.trigger.1
- has_hp_percentage > 0.33
- has_fleet_flag = stellarite_in_pursuit
- }
- find_closest_system = {
- trigger = {
- id = leviathans.1011.trigger.2
- exists = space_owner
- space_owner = { has_country_flag = stellarite_in_pursuit }
- any_system_planet = {
- OR = {
- has_mining_station = yes
- has_research_station = yes
- }
- is_owned_by = event_target:attacker_country
- }
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = leviathans.1011.trigger.3
- OR = {
- has_mining_station = yes
- has_research_station = yes
- }
- is_owned_by = event_target:attacker_country
- }
- found_planet = {
- move_to = this
- effect = {
- id = leviathans.1011.effect.3
- event_target:stellarite_fleet = {
- fleet_event = { id = leviathans.1011 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- failed = {
- effect = {
- id = leviathans.1011.effect.2
- event_target:stellarite_fleet = {
- set_timed_fleet_flag = { flag = returning_home days = 7 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- }
- }
- failed = {
- effect = {
- id = leviathans.1011.effect.1
- event_target:stellarite_fleet = {
- set_timed_fleet_flag = { flag = returning_home days = 7 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- }
- }
- }
- }
- }
- # Stellarite behaviour - chase aggressor continuation from combat
- country_event = {
- id = leviathans.1012
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = guardian_stellarite
- any_owned_ship = {
- has_ship_flag = stellarite_ship
- fleet = {
- has_hp_percentage < 0.995
- has_hp_percentage > 0.33
- }
- }
- }
- immediate = {
- from = {
- if = {
- limit = {
- NOT = { has_country_flag = stellarite_in_pursuit }
- }
- set_timed_country_flag = { flag = stellarite_in_pursuit days = 90 }
- }
- }
- fromfrom = {
- set_timed_fleet_flag = { flag = stellarite_in_pursuit days = 90 }
- save_event_target_as = stellarite_fleet
- clear_fleet_actions = this
- queue_actions = {
- repeat = {
- while = {
- id = leviathans.1012.trigger.1
- has_hp_percentage > 0.33
- has_fleet_flag = stellarite_in_pursuit
- }
- find_closest_system = {
- trigger = {
- id = leviathans.1012.trigger.2
- exists = space_owner
- space_owner = { has_country_flag = stellarite_in_pursuit }
- any_system_planet = {
- OR = {
- has_mining_station = yes
- has_research_station = yes
- }
- is_owned_by = event_target:attacker_country
- }
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = leviathans.1012.trigger.3
- OR = {
- has_mining_station = yes
- has_research_station = yes
- }
- is_owned_by = event_target:attacker_country
- }
- found_planet = {
- move_to = this
- effect = {
- id = leviathans.1012.effect.3
- event_target:stellarite_fleet = {
- fleet_event = { id = leviathans.1011 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- failed = {
- effect = {
- id = leviathans.1012.effect.2
- event_target:stellarite_fleet = {
- set_timed_fleet_flag = { flag = returning_home days = 7 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- }
- }
- failed = {
- effect = {
- id = leviathans.1012.effect.1
- event_target:stellarite_fleet = {
- set_timed_fleet_flag = { flag = returning_home days = 7 }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- # Stellarite behaviour - chase aggressor setup
- fleet_event = {
- id = leviathans.1013
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- any_combatant_fleet = {
- any_owned_ship = {
- has_ship_flag = stellarite_ship
- }
- has_hp_percentage < 0.995
- has_hp_percentage > 0.33
- }
- }
- immediate = {
- random_combatant_fleet = {
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- # Stellarite behavior - chase aggressor setup
- fleet_event = {
- id = leviathans.1014
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- any_combatant_fleet = {
- any_owned_ship = {
- has_ship_flag = stellarite_ship
- }
- has_hp_percentage < 0.995
- has_hp_percentage > 0.33
- }
- }
- immediate = {
- random_combatant_fleet = {
- limit = {
- any_owned_ship = {
- has_ship_flag = stellarite_ship
- }
- }
- fleet_event = { id = leviathans.1011 }
- }
- }
- }
- # Stellarite behavior - return home if bored with weak opponent
- fleet_event = {
- id = leviathans.1020
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- any_combatant_fleet = {
- any_owned_ship = {
- has_ship_flag = stellarite_ship
- }
- has_hp_percentage > 0.995
- has_hp_percentage < 0.33
- }
- }
- immediate = {
- random_combatant_fleet = {
- limit = {
- any_owned_ship = {
- has_ship_flag = stellarite_ship
- }
- }
- owner = { country_event = { id = leviathans.1015 } }
- }
- }
- }
- # Stellarite behavior - return home to feed
- country_event = {
- id = leviathans.1015
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- any_owned_fleet = {
- any_owned_ship = { has_ship_flag = stellarite_ship }
- OR = {
- has_hp_percentage < 0.33
- has_fleet_flag = returning_home
- }
- }
- }
- immediate = {
- random_owned_fleet = {
- limit = {
- any_ship = { has_ship_flag = stellarite_ship }
- }
- clear_fleet_actions = this
- queue_actions = {
- repeat = {
- max_iterations = 1
- find_random_system = {
- trigger = {
- id = leviathans.1004.trigger.1
- has_star_flag = guardians_stellarite_system
- }
- found_system = {
- move_to = this
- find_random_planet = {
- trigger = {
- id = leviathans.1004.trigger.2
- is_star = yes
- }
- found_planet = {
- orbit_planet = this
- }
- }
- }
- }
- repeat = {
- while = {
- id = leviathans.1004.trigger.3
- has_hp_percentage < 1.0
- }
- wait = {
- duration = 30
- }
- effect = {
- id = leviathans.1004.trigger.4
- repair_percentage = 0.075
- }
- }
- }
- }
- }
- }
- }
- # Stellarite dies and creates special project
- country_event = {
- id = leviathans.1016
- title = leviathans.1000.name
- desc = {
- text = leviathans.1016.desc
- trigger = { NOT = { has_ethic = ethic_gestalt_consciousness } }
- }
- desc = {
- text = leviathans.1016.desc.gesta
- trigger = { has_ethic = ethic_gestalt_consciousness }
- }
- picture = GFX_evt_stellarites
- show_sound = event_radio_chatter
- location = event_target:stellarite_project_object
- trackable = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = default
- from = { is_country_type = guardian_stellarite }
- fromfromfrom = {
- has_ship_flag = stellarite_ship
- solar_system = {
- has_star_flag = stellarite_present
- NOT = {
- has_star_flag = stellarite_slain
- }
- }
- }
- }
- immediate = {
- fromfromfrom = {
- solar_system = {
- save_event_target_as = slain_guardian_system
- }
- create_ambient_object = {
- type = stellarite_object
- location = this
- }
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:slain_guardian_system = {
- is_point_of_interest = {
- id = curator_poi_stellarite
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_stellarite
- end_curator_chain = yes
- }
- last_created_ambient_object = {
- save_event_target_as = stellarite_project_object
- set_ambient_object_flag = stellarite_project_object
- solar_system = {
- set_star_flag = stellarite_slain
- }
- }
- random_system = {
- limit = {
- has_star_flag = stellarite_present
- }
- every_system_planet = {
- limit = {
- has_modifier = stellarite_high_temp
- }
- remove_modifier = stellarite_high_temp
- }
- }
- }
- option = {
- name = leviathans.1016.a
- #hidden_effect = {
- event_target:stellarite_project_object = {
- enable_special_project = {
- name = "STELLARITE_DEAD_PROJECT"
- location = this
- owner = root
- }
- }
- #}
- }
- option = {
- name = leviathans.1016.b
- trigger = {
- OR = {
- has_ethic = ethic_militarist
- has_ethic = ethic_fanatic_militarist
- has_ethic = ethic_xenophobe
- has_ethic = ethic_fanatic_xenophobe
- }
- }
- add_resource = { influence = 500 }
- capital_scope = {
- add_deposit = d_stellarite_trophy
- }
- hidden_effect = {
- set_country_flag = stellarite_trophy_allowed
- random_ambient_object = {
- limit = {
- has_ambient_object_flag = stellarite_project_object
- }
- destroy_ambient_object = this
- }
- }
- }
- after = {
- hidden_effect = {
- random_system = {
- limit = {
- has_star_flag = stellarite_present
- }
- remove_star_flag = stellarite_present
- }
- }
- }
- }
- # Stellarite sun project to increase temperature
- ship_event = {
- id = leviathans.1017
- title = leviathans.1000.name
- desc = {
- text = leviathans.1017.desc
- trigger = {
- NOT = { owner = { has_ethic = ethic_gestalt_consciousness } }
- }
- }
- desc = {
- text = leviathans.1017.desc.gesta
- trigger = {
- owner = { has_ethic = ethic_gestalt_consciousness }
- }
- }
- picture = GFX_evt_star_yellow
- show_sound = event_radio_chatter
- location = root
- trackable = yes
- is_triggered_only = yes
- immediate = {
- solar_system = {
- random_system_ambient_object = {
- limit = { has_ambient_object_flag = stellarite_project_object }
- destroy_ambient_object = this
- }
- }
- random_system = {
- limit = {
- has_star_flag = guardians_stellarite_system
- }
- save_event_target_as = guardians_stellarite_home_system
- }
- }
- option = {
- name = leviathans.1017.a
- random_system = {
- limit = {
- has_star_flag = guardians_stellarite_system
- }
- random_system_planet = {
- limit = {
- is_star = yes
- }
- enable_special_project = {
- name = "STELLARITE_STAR_PROJECT"
- location = this
- owner = root.owner
- }
- }
- }
- }
- option = {
- name = leviathans.1017.b
- owner = {
- add_monthly_resource_mult = {
- resource = energy
- value = @tier4materialreward
- min = @tier4materialmin
- max = @tier4materialmax
- }
- add_monthly_resource_mult = {
- resource = minerals
- value = @tier2materialreward
- min = @tier2materialmin
- max = @tier2materialmax
- }
- add_monthly_resource_mult = {
- resource = influence
- value = @tier2influencereward
- min = @tier2influencemin
- max = @tier2influencemax
- }
- }
- }
- }
- # Stellarite system is updated and Gaia world unlocks
- ship_event = {
- id = leviathans.1018
- title = leviathans.1000.name
- desc = {
- trigger = {
- hidden:owner = {
- switch = {
- trigger = has_country_flag
- stellarite_project_success = { text = leviathans.1018.desc }
- default = { text = leviathans.1018.alt.desc }
- }
- }
- }
- }
- picture = GFX_evt_star_yellow
- show_sound = event_radio_chatter
- location = root
- is_triggered_only = yes
- immediate = {
- random_system = {
- limit = {
- has_star_flag = guardians_stellarite_system
- }
- save_event_target_as = guardians_stellarite_home_system
- random_system_planet = {
- limit = {
- is_planet_class = pc_frozen
- }
- save_event_target_as = stellarite_rich_planet
- }
- }
- random_list = {
- 70 = { owner = { set_country_flag = stellarite_project_success } }
- 30 = {
- root = {
- kill_leader = { type = scientist show_notification = no }
- fleet = {
- destroy_fleet = this
- }
- }
- }
- }
- }
- option = {
- name = EXCELLENT
- custom_tooltip = leviathans.1018.a.tooltip
- trigger = {
- owner = {
- has_country_flag = stellarite_project_success
- }
- }
- hidden_effect = {
- owner = { remove_country_flag = stellarite_project_success }
- random_system = {
- limit = {
- has_star_flag = guardians_stellarite_system
- }
- random_system_planet = {
- limit = {
- is_star = yes
- }
- change_planet_size = 12
- spawn_sun_temperature_effect = yes
- }
- every_system_planet = {
- limit = {
- is_star = no
- is_asteroid = no
- }
- spawn_planet_temperature_effect = yes
- remove_modifier = stellarite_low_temp
- if = {
- limit = {
- is_planet_class = pc_frozen
- NOT = { has_planet_flag = stellarite_terraformed }
- solar_system = {
- NOT = { has_star_flag = gaia_planet_gained }
- }
- }
- change_pc = pc_gaia
- set_planet_flag = stellarite_terraformed
- reroll_planet = yes
- solar_system = { set_star_flag = gaia_planet_gained }
- }
- else_if = {
- limit = {
- is_planet_class = pc_frozen
- NOT = { has_planet_flag = stellarite_terraformed }
- solar_system = {
- has_star_flag = gaia_planet_gained
- }
- }
- increase_planet_temperature = yes
- set_planet_flag = stellarite_terraformed
- }
- else = {
- increase_planet_temperature = yes
- set_planet_flag = stellarite_terraformed
- }
- }
- }
- }
- }
- option = {
- name = UNFORTUNATE
- custom_tooltip = leviathans.1018.b.tooltip
- trigger = {
- owner = {
- NOT = { has_country_flag = stellarite_project_success }
- }
- }
- hidden_effect = {
- random_system = {
- limit = {
- has_star_flag = guardians_stellarite_system
- }
- random_system_planet = {
- limit = {
- is_star = yes
- }
- change_planet_size = 8
- planet_event = { id = leviathans.1019 }
- }
- every_system_planet = {
- limit = {
- is_star = no
- is_asteroid = no
- }
- spawn_planet_temperature_effect = yes
- remove_modifier = stellarite_low_temp
- if = {
- limit = {
- is_planet_class = pc_frozen
- NOT = { has_planet_flag = stellarite_terraformed }
- }
- change_pc = pc_tundra
- set_planet_flag = stellarite_terraformed
- reroll_planet = yes
- }
- else_if = {
- limit = {
- is_planet_class = pc_frozen
- NOT = { has_planet_flag = stellarite_terraformed }
- solar_system = {
- has_star_flag = gaia_planet_gained
- }
- }
- increase_planet_temperature = yes
- set_planet_flag = stellarite_terraformed
- reroll_planet = yes
- }
- else = {
- increase_planet_temperature = yes
- set_planet_flag = stellarite_terraformed
- reroll_planet = yes
- }
- }
- }
- }
- }
- }
- planet_event = {
- id = leviathans.1019
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- spawn_sun_temperature_effect = yes
- }
- }
- ### TECHNOSPHERE ###
- #Encountering Technosphere for the first time
- fleet_event = {
- id = leviathans.1030
- title = leviathans.1030.name
- desc = {
- trigger = {
- hidden:from = {
- switch = {
- trigger = has_star_flag
- guardians_technosphere_system = { text = leviathans.1030.desc }
- default = { text = leviathans.1030.desc.alt }
- }
- }
- }
- }
- picture = GFX_evt_technosphere
- show_sound = event_yellow_alert
- location = from
- is_triggered_only = yes
- trigger = {
- from = {
- any_ship_in_system = {
- exists = owner
- owner = {
- is_country_type = guardian_sphere
- }
- }
- }
- owner = {
- is_ai = no
- NOR = {
- has_country_flag = guardians_technosphere_encountered
- has_country_flag = worm_events_available
- }
- }
- }
- immediate = {
- owner = {
- country_event = { id = story.8 days = 15 }
- set_country_flag = guardians_technosphere_encountered
- establish_communications_no_message = event_target:guardian_technosphere_country
- }
- }
- option = {
- name = INTERESTING
- owner = {
- begin_event_chain = {
- event_chain = technosphere_chain
- target = root.owner
- }
- }
- hidden_effect = {
- owner = {
- create_point_of_interest = {
- id = technosphere_chain_poi
- name = technosphere_chain_title
- desc = technosphere_chain_desc
- event_chain = technosphere_chain
- location = root.solar_system
- }
- country_event = { id = leviathans.1050 days = 520 random = 200 }
- }
- }
- }
- }
- #Technosphere return to black hole to heal
- fleet_event = {
- id = leviathans.1031
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- any_combatant_fleet = {
- has_fleet_flag = technosphere_fleet
- }
- }
- immediate = {
- random_combatant_fleet = {
- limit = {
- has_fleet_flag = technosphere_fleet
- }
- clear_fleet_actions = this
- queue_actions = {
- repeat = {
- max_iterations = 1
- find_random_system = {
- trigger = {
- id = leviathans.1031.trigger.1
- has_star_flag = guardians_technosphere_system
- }
- found_system = {
- move_to = this
- #find_random_planet = {
- # trigger = {
- # id = leviathans.1031.trigger.2
- # is_star = yes
- # }
- # found_planet = {
- # orbit_planet = this
- # }
- #}
- }
- }
- repeat = {
- while = {
- id = leviathans.1031.trigger.3
- has_hp_percentage < 1.0
- }
- wait = {
- duration = 30
- }
- effect = {
- id = leviathans.1031.trigger.4
- repair_percentage = 0.075
- }
- }
- }
- }
- }
- }
- }
- country_event = {
- id = leviathans.1032
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- fromfrom = {
- has_fleet_flag = technosphere_fleet
- }
- }
- immediate = {
- fromfrom = {
- clear_fleet_actions = this
- queue_actions = {
- repeat = {
- max_iterations = 1
- find_random_system = {
- trigger = {
- id = leviathans.1032.trigger.1
- has_star_flag = guardians_technosphere_system
- }
- found_system = {
- move_to = this
- find_random_planet = {
- trigger = {
- id = leviathans.1032.trigger.2
- is_star = yes
- }
- found_planet = {
- orbit_planet = this
- }
- }
- }
- }
- repeat = {
- while = {
- id = leviathans.1032.trigger.3
- has_hp_percentage < 1.0
- }
- wait = {
- duration = 30
- }
- effect = {
- id = leviathans.1032.trigger.4
- repair_percentage = 0.075
- }
- }
- }
- }
- }
- }
- }
- #Killing the Technosphere
- country_event = {
- id = leviathans.1039
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:slain_guardian_system = {
- is_point_of_interest = {
- id = curator_poi_technosphere
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_technosphere
- end_curator_chain = yes
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = technosphere_chain
- }
- end_event_chain = technosphere_chain
- }
- every_country = {
- limit = {
- NOR = {
- is_same_value = root
- is_hostile = event_target:guardian_technosphere_country
- }
- is_country_type = default
- OR = {
- has_modifier = infinity_calculations
- has_modifier = technosphere_praising
- has_country_flag = guardians_technosphere_encountered
- }
- }
- country_event = { id = leviathans.1041 }
- }
- }
- after = {
- if = {
- limit = {
- has_modifier = infinity_calculations
- }
- remove_modifier = infinity_calculations
- }
- if = {
- limit = {
- has_modifier = technosphere_praising
- }
- remove_modifier = technosphere_praising
- }
- }
- }
- country_event = {
- id = leviathans.1040
- title = leviathans.1030.name
- desc = {
- trigger = {
- switch = {
- trigger = has_country_flag
- technosphere_sabotaged = { text = leviathans.1040.desc.alt }
- technosphere_studied = { text = leviathans.1040.desc.detail }
- default = { text = leviathans.1040.desc }
- }
- }
- }
- picture = GFX_evt_technosphere
- show_sound = event_super_explosion
- location = fromfrom
- is_triggered_only = yes
- trigger = {
- OR = {
- AND = {
- has_country_flag = technosphere_sabotaged
- fromfrom = { owner = { is_country_type = guardian_sphere } }
- }
- AND = {
- from = {
- is_country_type = guardian_sphere
- }
- }
- }
- }
- immediate = {
- fromfrom = {
- solar_system = {
- save_event_target_as = technosphere_location
- save_event_target_as = slain_guardian_system
- }
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:slain_guardian_system = {
- is_point_of_interest = {
- id = curator_poi_technosphere
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_technosphere
- end_curator_chain = yes
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = technosphere_chain
- }
- end_event_chain = technosphere_chain
- }
- every_country = {
- limit = {
- NOR = {
- is_same_value = root
- is_hostile = event_target:guardian_technosphere_country
- }
- is_country_type = default
- OR = {
- has_modifier = infinity_calculations
- has_modifier = technosphere_praising
- has_country_flag = guardians_technosphere_encountered
- }
- }
- country_event = { id = leviathans.1041 }
- }
- }
- after = {
- if = {
- limit = {
- has_modifier = infinity_calculations
- }
- remove_modifier = infinity_calculations
- }
- if = {
- limit = {
- has_modifier = technosphere_praising
- }
- remove_modifier = technosphere_praising
- }
- }
- option = {
- name = leviathans.1040.a
- add_monthly_resource_mult = {
- resource = influence
- value = @tier5influencereward
- min = @tier5influencemin
- max = @tier5influencemax
- }
- add_monthly_resource_mult = {
- resource = minerals
- value = @tier5materialreward
- min = @tier5materialmin
- max = @tier5materialmax
- }
- }
- option = {
- name = leviathans.1040.c
- trigger = {
- NOR = {
- has_ethic = ethic_gestalt_consciousness
- has_technology = tech_robotic_workers
- has_technology = tech_droid_workers
- has_technology = tech_synthetic_workers
- has_technology = tech_synthetic_leaders
- }
- }
- add_research_option = tech_robotic_workers
- add_tech_progress = {
- tech = tech_robotic_workers
- progress = 0.50
- }
- }
- option = {
- name = leviathans.1040.c
- trigger = {
- has_technology = tech_robotic_workers
- NOR = {
- has_ethic = ethic_gestalt_consciousness
- has_technology = tech_droid_workers
- has_technology = tech_synthetic_workers
- has_technology = tech_synthetic_leaders
- }
- }
- add_research_option = tech_droid_workers
- add_tech_progress = {
- tech = tech_droid_workers
- progress = 0.50
- }
- }
- option = {
- name = leviathans.1040.c
- trigger = {
- has_technology = tech_robotic_workers
- has_technology = tech_droid_workers
- NOR = {
- has_ethic = ethic_gestalt_consciousness
- has_technology = tech_synthetic_workers
- has_technology = tech_synthetic_leaders
- }
- }
- add_research_option = tech_synthetic_workers
- add_tech_progress = {
- tech = tech_synthetic_workers
- progress = 0.50
- }
- }
- option = {
- name = leviathans.1040.c
- trigger = {
- has_technology = tech_robotic_workers
- has_technology = tech_droid_workers
- has_technology = tech_synthetic_workers
- NOR = {
- has_ethic = ethic_gestalt_consciousness
- has_technology = tech_synthetic_leaders
- }
- }
- add_research_option = tech_synthetic_leaders
- add_tech_progress = {
- tech = tech_synthetic_leaders
- progress = 0.50
- }
- }
- }
- country_event = {
- id = leviathans.1041
- title = leviathans.1030.name
- desc = leviathans.1041.desc
- picture = GFX_evt_technosphere
- show_sound = event_super_explosion
- location = event_target:technosphere_ship
- is_triggered_only = yes
- after = {
- if = {
- limit = {
- has_modifier = infinity_calculations
- }
- remove_modifier = infinity_calculations
- }
- if = {
- limit = {
- has_modifier = technosphere_praising
- }
- remove_modifier = technosphere_praising
- }
- }
- option = {
- name = TERRIBLE
- trigger = {
- NOR = {
- has_ethic = ethic_fanatic_militarist
- has_ethic = ethic_militarist
- has_ethic = ethic_fanatic_materialist
- has_ethic = ethic_materialist
- }
- }
- }
- option = {
- name = CURSES
- trigger = {
- OR = {
- has_ethic = ethic_fanatic_militarist
- has_ethic = ethic_militarist
- has_ethic = ethic_fanatic_materialist
- has_ethic = ethic_materialist
- }
- }
- }
- }
- #Investigating the Technosphere
- country_event = {
- id = leviathans.1050
- title = leviathans.1050.name
- desc = leviathans.1050.desc
- picture = GFX_evt_technosphere
- show_sound = event_sensor_ping
- location = event_target:technosphere_ship
- trackable = yes
- is_triggered_only = yes
- trigger = {
- exists = event_target:technosphere_ship
- is_ai = no
- has_country_flag = guardians_technosphere_encountered
- any_system = {
- has_star_flag = guardians_technosphere_system
- any_ship_in_system = {
- exists = owner
- owner = {
- is_country_type = guardian_sphere
- }
- }
- }
- NOR = {
- has_country_flag = worm_events_available
- event_target:guardian_technosphere_country = {
- is_hostile = root
- }
- }
- }
- immediate = {
- event_target:guardian_technosphere_country = {
- random_owned_ship = {
- limit = {
- is_ship_size = sphere
- }
- save_event_target_as = technosphere_location
- }
- }
- end_event_chain = technosphere_chain
- }
- option = {
- name = FASCINATING
- enable_special_project = {
- name = "TECHNOSPHERE_PROJECT"
- location = event_target:technosphere_ship
- owner = root
- }
- }
- option = {
- name = NOTIME
- add_resource = { influence = 50 }
- }
- }
- #Succeeded in researching the Technosphere
- country_event = {
- id = leviathans.1051
- title = leviathans.1050.name
- desc = leviathans.1051.desc
- picture = GFX_evt_technosphere
- show_sound = event_mystic_reveal
- location = event_target:technosphere_ship
- trackable = yes
- is_triggered_only = yes
- trigger = {
- exists = event_target:technosphere_ship
- NOT = { has_country_flag = worm_events_available }
- }
- immediate = {
- set_country_flag = technosphere_studied
- event_target:guardian_technosphere_country = {
- random_owned_ship = {
- limit = {
- is_ship_size = sphere
- }
- save_event_target_as = technosphere_location
- }
- }
- }
- option = {
- name = leviathans.1051.a
- trigger = {
- NOT = { has_ethic = ethic_gestalt_consciousness }
- }
- hidden_effect = {
- country_event = { id = leviathans.1055 }
- }
- }
- option = {
- name = leviathans.1051.c #praise it as your god
- trigger = {
- OR = {
- has_ethic = ethic_fanatic_spiritualist
- has_ethic = ethic_spiritualist
- }
- }
- add_modifier = {
- modifier = technosphere_praising
- days = -1
- }
- }
- option = {
- name = leviathans.1051.b #hack it
- trigger = {
- OR = {
- has_ethic = ethic_fanatic_materialist
- has_ethic = ethic_materialist
- }
- }
- enable_special_project = {
- name = TECHNOSPHERE_HACKING
- location = event_target:technosphere_ship
- owner = root
- }
- }
- option = {
- name = leviathans.1051.d #sabotage it
- #custom_tooltip = leviathans.1051.d.tooltip
- trigger = {
- OR = {
- has_ethic = ethic_fanatic_militarist
- has_ethic = ethic_militarist
- }
- }
- hidden_effect = {
- set_country_flag = technosphere_sabotaged
- }
- event_target:technosphere_ship = {
- enable_special_project = {
- name = TECHNOSPHERE_DESTRUCTION
- location = this
- owner = root
- }
- }
- }
- option = {
- name = leviathans.1051.e #hack it - Gestalt Consciousness
- trigger = {
- has_ethic = ethic_gestalt_consciousness
- }
- enable_special_project = {
- name = TECHNOSPHERE_HACKING
- location = event_target:technosphere_ship
- owner = root
- }
- }
- }
- #Hacking the technosphere - success
- country_event = {
- id = leviathans.1052
- title = leviathans.1050.name
- desc = {
- trigger = {
- NOT = { has_ethic = ethic_gestalt_consciousness }
- }
- text = leviathans.1052.desc
- }
- desc = {
- trigger = { has_ethic = ethic_gestalt_consciousness }
- text = leviathans.1052.gestalt.desc
- }
- picture = GFX_evt_technosphere
- show_sound = event_ai_started
- location = event_target:technosphere_ship
- is_triggered_only = yes
- trigger = {
- exists = event_target:technosphere_ship
- }
- immediate = {
- event_target:guardian_technosphere_country = {
- random_owned_ship = {
- limit = {
- is_ship_size = sphere
- }
- save_event_target_as = technosphere_location
- }
- }
- }
- after = {
- add_modifier = {
- modifier = infinity_calculations_hacked
- days = -1
- }
- event_target:technosphere_location = {
- solar_system = {
- save_event_target_as = slain_guardian_system
- }
- fleet = {
- destroy_fleet = this
- }
- }
- hidden_effect = {
- country_event = { id = leviathans.1039 }
- }
- }
- option = {
- name = leviathans.1052.a
- give_technology = { tech = tech_sapient_ai }
- trigger = {
- NOT = {
- has_technology = tech_sapient_ai
- }
- }
- }
- option = {
- name = leviathans.1052.a
- trigger = {
- has_technology = tech_sapient_ai
- NOT = {
- has_technology = tech_zero_point_power
- }
- }
- give_technology = { tech = tech_zero_point_power }
- }
- option = {
- name = leviathans.1052.a
- trigger = {
- has_technology = tech_sapient_ai
- has_technology = tech_zero_point_power
- }
- add_monthly_resource_mult = {
- resource = society_research
- value = 24
- min = 1000
- max = 5000
- }
- }
- }
- #Hacking the technosphere - fail
- country_event = {
- id = leviathans.1053
- title = sphere
- desc = leviathans.1053.desc
- is_triggered_only = yes
- diplomatic = yes
- trigger = { exists = event_target:technosphere_ship }
- picture_event_data = {
- room = technosphere_room
- }
- option = {
- name = leviathans.1053.a
- response_text = leviathans.1053.a.reply
- default_hide_option = yes
- }
- option = {
- name = leviathans.1053.b
- response_text = leviathans.1053.b.reply
- }
- }
- #Contacting the technosphere
- country_event = {
- id = leviathans.1055
- title = sphere
- desc = leviathans.1055.desc
- is_triggered_only = yes
- diplomatic = yes
- trigger = {
- exists = event_target:technosphere_ship
- NOT = { has_country_flag = worm_events_available }
- }
- picture_event_data = {
- room = technosphere_room
- }
- option = {
- name = leviathans.1055.a
- #default_hide_option = yes
- hidden_effect = {
- country_event = { id = leviathans.1056 }
- }
- }
- }
- #Dialogue with the Technosphere
- country_event = {
- id = leviathans.1056
- title = sphere
- desc = leviathans.1056.desc
- is_triggered_only = yes
- diplomatic = yes
- trigger = { exists = event_target:technosphere_ship }
- picture_event_data = {
- room = technosphere_room
- }
- option = {
- name = leviathans.1056.a
- response_text = leviathans.1056.a.reply
- is_dialog_only = yes
- }
- option = {
- name = leviathans.1056.b
- response_text = leviathans.1056.b.reply
- is_dialog_only = yes
- }
- option = {
- name = leviathans.1056.c
- response_text = leviathans.1056.c.reply
- is_dialog_only = yes
- trigger = {
- OR = {
- has_ethic = ethic_fanatic_militarist
- has_ethic = ethic_militarist
- has_ethic = ethic_fanatic_egalitarian
- }
- }
- }
- option = {
- name = leviathans.1056.d
- hidden_effect = {
- country_event = { id = leviathans.1060 }
- }
- }
- option = {
- name = leviathans.1056.e
- response_text = leviathans.1056.e.reply
- add_resource = { influence = 100 }
- }
- }
- #Offer your services to the Technosphere
- country_event = {
- id = leviathans.1060
- title = sphere
- desc = leviathans.1060.desc
- is_triggered_only = yes
- diplomatic = yes
- trackable = yes
- trigger = { exists = event_target:technosphere_ship }
- picture_event_data = {
- room = technosphere_room
- }
- immediate = {
- random_system = {
- limit = {
- has_star_flag = guardians_technosphere_system
- }
- random_system_planet = {
- limit = {
- is_star = yes
- }
- save_event_target_as = technosphere_blackhole
- }
- }
- }
- option = {
- name = leviathans.1060.a
- response_text = leviathans.1060.a.reply
- enable_special_project = {
- name = TECHNOSPHERE_BLACKHOLE
- location = event_target:technosphere_blackhole
- owner = root
- }
- }
- option = {
- name = leviathans.1056.e #GOODBYE
- response_text = leviathans.1056.e.reply
- add_resource = { influence = 100 }
- }
- }
- #Researching the black hole - success
- country_event = {
- id = leviathans.1061
- title = sphere
- desc = leviathans.1061.desc
- is_triggered_only = yes
- diplomatic = yes
- trigger = { exists = event_target:technosphere_ship }
- picture_event_data = {
- room = technosphere_room
- }
- immediate = {
- random_system = {
- limit = {
- has_star_flag = guardians_technosphere_system
- }
- random_system_planet = {
- limit = {
- is_star = yes
- }
- save_event_target_as = technosphere_blackhole
- }
- }
- }
- option = {
- name = leviathans.1061.a
- response_text = leviathans.1061.a.reply
- give_technology = { tech = tech_sapient_ai }
- add_resource = { influence = 150 }
- trigger = {
- NOT = {
- has_technology = tech_sapient_ai
- }
- }
- }
- option = {
- name = leviathans.1061.a
- response_text = leviathans.1061.a.reply
- give_technology = { tech = tech_zero_point_power }
- add_resource = { influence = 150 }
- trigger = {
- has_technology = tech_sapient_ai
- NOT = {
- has_technology = tech_zero_point_power
- }
- }
- }
- option = {
- name = leviathans.1061.b
- response_text = leviathans.1061.b.reply
- add_modifier = {
- modifier = infinity_calculations
- days = -1
- }
- trigger = {
- NOR = {
- has_technology = tech_sapient_ai
- has_technology = tech_zero_point_power
- }
- }
- }
- option = {
- name = leviathans.1061.b.alt
- response_text = leviathans.1061.b.reply
- add_modifier = {
- modifier = infinity_calculations
- days = -1
- }
- trigger = {
- has_technology = tech_sapient_ai
- has_technology = tech_zero_point_power
- }
- }
- }
- #Researching the black hole - submerge check (fail or special event)
- country_event = {
- id = leviathans.1062
- title = sphere
- desc = leviathans.1062.desc
- show_sound = event_mystic_reveal
- location = event_target:technosphere_ship
- diplomatic = yes
- trigger = { exists = event_target:technosphere_ship }
- picture_event_data = {
- room = technosphere_room
- }
- is_triggered_only = yes
- immediate = {
- set_country_flag = technosphere_studied
- event_target:guardian_technosphere_country = {
- random_owned_ship = {
- limit = {
- is_ship_size = sphere
- }
- save_event_target_as = technosphere_location
- }
- }
- random_system = {
- limit = {
- has_star_flag = guardians_technosphere_system
- }
- random_system_planet = {
- limit = {
- is_star = yes
- }
- save_event_target_as = technosphere_blackhole
- }
- }
- }
- option = {
- name = leviathans.1062.a
- hidden_effect = {
- event_target:guardian_technosphere_country = {
- random_owned_ship = {
- limit = {
- is_ship_size = sphere
- }
- fleet = {
- queue_actions = {
- find_closest_planet = {
- trigger = {
- id = leviathans.1062.trigger.1
- is_planet_class = pc_black_hole
- solar_system = {
- has_star_flag = guardians_technosphere_system
- }
- }
- found_planet = {
- move_to = this
- effect = {
- id = leviathans.1062.effect.1
- root = {
- if = {
- limit = {
- has_country_flag = technosphere_special
- }
- remove_country_flag = technosphere_special
- country_event = { id = leviathans.1065 }
- }
- else = {
- country_event = { id = leviathans.1063 }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- #The technosphere submerges itself into the hole - FAIL
- country_event = {
- id = leviathans.1063
- title = sphere
- desc = leviathans.1063.desc
- picture = GFX_evt_technosphere
- show_sound = event_mystic_reveal
- location = event_target:technosphere_ship
- is_triggered_only = yes
- trigger = { exists = event_target:technosphere_ship }
- option = {
- name = PECULIAR
- custom_tooltip = leviathans.1063.a.tooltip
- add_resource = { influence = 150 }
- if = {
- limit = {
- NOT = {
- has_technology = tech_sapient_ai
- }
- }
- give_technology = { tech = tech_sapient_ai }
- }
- else_if = {
- limit = {
- NOT = { has_technology = tech_zero_point_power }
- }
- give_technology = { tech = tech_zero_point_power }
- }
- else = {
- add_resource = { influence = 150 }
- }
- hidden_effect = {
- event_target:technosphere_ship = {
- solar_system = {
- random_system_planet = {
- limit = { is_star = yes }
- add_deposit = d_physics_4
- add_deposit = d_engineering_4
- add_deposit = d_society_4
- }
- }
- }
- event_target:technosphere_ship = {
- solar_system = {
- save_event_target_as = slain_guardian_system
- }
- delete_fleet = this
- }
- country_event = { id = leviathans.1039 }
- }
- }
- }
- #The technosphere submerges itself into the hole - secret
- country_event = {
- id = leviathans.1065
- title = sphere
- desc = leviathans.1065.desc
- picture = GFX_evt_technosphere
- show_sound = event_mystic_reveal
- location = event_target:technosphere_ship
- is_triggered_only = yes
- trigger = { exists = event_target:technosphere_ship }
- immediate = {
- set_country_flag = pantagruel
- }
- option = {
- name = AMAZING
- custom_tooltip = leviathans.1065.a.tooltip
- add_modifier = {
- modifier = black_hole_pantagruel_research
- days = -1
- }
- hidden_effect = {
- add_resource = { influence = 200 }
- event_target:technosphere_ship.solar_system = {
- random_system_planet = {
- limit = { is_star = yes }
- solar_system = {
- set_name = "NAME_Pantagruel"
- }
- set_name = "NAME_Pantagruel"
- change_planet_size = -30
- create_ambient_object = {
- type = explosion_particle_object
- location = this
- duration = 5
- use_3d_location = yes
- entity_offset = { min = 0 max = 0 }
- entity_offset_angle = { min = 0 max = 0 }
- entity_offset_height = { min = 0 max = 0 }
- entity_scale_to_size = yes
- scale = 100
- }
- add_deposit = d_physics_2
- add_deposit = d_physics_4
- add_deposit = d_physics_4
- add_deposit = d_engineering_2
- add_deposit = d_engineering_4
- add_deposit = d_engineering_4
- add_deposit = d_society_2
- add_deposit = d_society_4
- add_deposit = d_society_4
- add_modifier = {
- modifier = black_hole_pantagruel
- days = -1
- }
- if = {
- limit = {
- exists = space_owner
- space_owner = { is_same_value = root }
- }
- space_owner = {
- add_modifier = {
- modifier = black_hole_pantagruel_research
- days = -1
- }
- }
- }
- if = {
- limit = {
- is_surveyed = {
- who = root
- status = no
- }
- }
- surveyed = {
- set_surveyed = yes
- surveyor = root
- }
- }
- }
- }
- event_target:technosphere_ship = {
- solar_system = {
- save_event_target_as = slain_guardian_system
- }
- #fleet = {
- delete_fleet = this
- #}
- }
- country_event = { id = leviathans.1039 }
- }
- }
- }
- #############################################################
- # wraith won't be discovered past the midgame
- event = {
- id = leviathans.20101
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- any_system = {
- any_system_planet = { has_planet_flag = guardians_wraith_pulsar }
- }
- }
- immediate = {
- random_planet = {
- limit = { has_planet_flag = guardians_wraith_pulsar }
- remove_planet_flag = guardians_wraith_pulsar
- }
- }
- }
- ### WRAITH ###
- # First scan of the neutron star, sets Wraith spawn timer
- ship_event = {
- id = leviathans.2010
- title = "leviathans.2010.name"
- desc = {
- text = leviathans.2010.desc
- trigger = {
- owner = { NOT = { has_ethic = ethic_gestalt_consciousness } }
- }
- }
- desc = {
- text = leviathans.2010.desc.gesta
- trigger = {
- owner = { has_ethic = ethic_gestalt_consciousness }
- }
- }
- picture = GFX_evt_star_pulsar
- show_sound = event_mystic_reveal
- is_triggered_only = yes
- trigger = {
- from = { has_planet_flag = guardians_wraith_pulsar }
- }
- immediate = {
- from = {
- remove_planet_flag = guardians_wraith_pulsar
- add_modifier = {
- modifier = germinating_wraith
- days = -1
- }
- }
- }
- option = {
- name = leviathans.2010.a
- custom_tooltip = leviathans.2010.c
- }
- }
- # Wraith is born
- event = {
- id = leviathans.2011
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- any_system = {
- any_system_planet = { has_modifier = germinating_wraith }
- }
- }
- immediate = {
- random_planet = {
- limit = { has_modifier = germinating_wraith }
- save_event_target_as = wraith_star
- remove_modifier = germinating_wraith
- create_country = {
- name = "NAME_Wraith"
- type = guardian_wraith
- flag = {
- icon = {
- category = "zoological"
- file = "flag_zoological_5.dds"
- }
- background= {
- category = "backgrounds"
- file = "00_solid.dds"
- }
- colors={
- "red"
- "red"
- "null"
- "null"
- }
- }
- }
- last_created_country = {
- set_country_flag = wraith_country
- save_global_event_target_as = wraith_country
- create_fleet = {
- name = "NAME_Specter"
- settings = {
- spawn_debris = no
- is_boss = yes
- }
- effect = {
- set_owner = event_target:wraith_country
- random_list = {
- 33 = {
- create_ship = {
- name = "NAME_Wraith_650THz"
- design = "NAME_Spectral_Wraith_650THz"
- effect = {
- set_ship_flag = wraith_ship
- set_ship_flag = wraith_freq_blue
- }
- }
- }
- 33 = {
- create_ship = {
- name = "NAME_Wraith_450THz"
- design = "NAME_Spectral_Wraith_450THz"
- effect = {
- set_ship_flag = wraith_ship
- set_ship_flag = wraith_freq_red
- }
- }
- }
- 33 = {
- create_ship = {
- name = "NAME_Wraith_520THz"
- design = "NAME_Spectral_Wraith_520THz"
- effect = {
- set_ship_flag = wraith_ship
- set_ship_flag = wraith_freq_yellow
- }
- }
- }
- }
- save_global_event_target_as = wraith_fleet
- set_location = event_target:wraith_star
- set_fleet_stance = aggressive
- set_aggro_range_measure_from = self
- set_aggro_range = 20
- queue_actions = {
- repeat = {
- find_closest_system = {
- trigger = {
- id = wraith.1.trigger.1
- NOR = {
- exists = space_owner
- any_ship_in_system = {
- fleet = { is_same_value = event_target:wraith_fleet }
- }
- has_star_flag = guardians_wraith_visited
- }
- }
- found_system = {
- move_to = this
- find_closest_planet = {
- trigger = {
- id = wraith.1.trigger.2
- is_star = yes
- }
- found_planet = {
- move_to = this
- #orbit_planet = this
- wait = {
- duration = 10
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- if = {
- limit = { exists = space_owner }
- space_owner = {
- country_event = { id = leviathans.2012 }
- }
- }
- }
- }
- }
- # Wraith Spawned in Territory
- country_event = {
- id = leviathans.2012
- title = "leviathans.2012.name"
- desc = {
- text = leviathans.2012.desc
- trigger = {
- NOT = { has_ethic = ethic_gestalt_consciousness }
- }
- }
- desc = {
- text = leviathans.2012.desc.gesta
- trigger = {
- has_ethic = ethic_gestalt_consciousness
- }
- }
- picture = GFX_evt_wraith
- show_sound = event_space_whale
- is_triggered_only = yes
- immediate = {
- country_event = { id = story.8 days = 15 }
- establish_communications_no_message = event_target:wraith_country
- set_country_flag = guardians_wraith_encountered
- }
- option = {
- name = leviathans.2012.a
- }
- }
- # Wraith Enters Territory
- country_event = {
- id = leviathans.2013
- title = "leviathans.2012.name"
- desc = leviathans.2013.desc
- picture = GFX_evt_wraith
- show_sound = event_space_whale
- is_triggered_only = yes
- trigger = {
- FROM.OWNER = { has_country_flag = wraith_country }
- NOT = { has_country_flag = guardians_wraith_encountered }
- }
- immediate = {
- country_event = { id = story.8 days = 15 }
- establish_communications_no_message = event_target:wraith_country
- set_country_flag = guardians_wraith_encountered
- }
- option = {
- name = leviathans.2013.a
- }
- }
- # Wraith killed
- country_event = {
- id = leviathans.2014
- title = "leviathans.2014.name"
- desc = {
- text = leviathans.2014.desc
- trigger = {
- NOT = { has_ethic = ethic_gestalt_consciousness }
- }
- }
- desc = {
- text = leviathans.2014.desc.gesta
- trigger = {
- has_ethic = ethic_gestalt_consciousness
- }
- }
- picture = GFX_evt_wraith
- show_sound = event_space_whale
- is_triggered_only = yes
- trigger = {
- from = { has_country_flag = wraith_country }
- }
- immediate = {
- set_country_flag = killed_wraith
- fromfrom.solar_system = {
- save_event_target_as = slain_guardian_system
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:slain_guardian_system = {
- is_point_of_interest = {
- id = curator_poi_wraith
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_wraith
- end_curator_chain = yes
- }
- }
- option = {
- name = leviathans.2014.a
- add_modifier = {
- modifier = "spectral_residue_studies"
- days = -1
- }
- }
- }
- # Wraith Frequency Modifier Mechanics
- ship_event = {
- id = leviathans.2061
- hide_window = yes
- is_triggered_only = yes
- trigger = { has_ship_flag = wraith_ship }
- immediate = {
- solar_system = {
- set_star_flag = guardians_wraith_visited
- if = {
- limit = {
- exists = space_owner
- space_owner = { NOT = { has_country_flag = guardians_wraith_encountered } }
- }
- space_owner = {
- country_event = { id = leviathans.2013 }
- }
- }
- }
- if = {
- limit = { has_modifier = wraith_frequency_sync }
- # Removes the modifier when the right star class is not present
- if = {
- limit = {
- has_ship_flag = wraith_freq_blue
- NOT = {
- solar_system = {
- OR = {
- is_star_class = sc_b
- is_star_class = sc_a
- }
- }
- }
- }
- remove_modifier = "wraith_frequency_sync"
- }
- if = {
- limit = {
- has_ship_flag = wraith_freq_yellow
- NOT = {
- solar_system = {
- is_star_class = sc_g
- }
- }
- }
- remove_modifier = "wraith_frequency_sync"
- }
- if = {
- limit = {
- has_ship_flag = wraith_freq_red
- NOT = {
- solar_system = {
- is_star_class = sc_m
- }
- }
- }
- remove_modifier = "wraith_frequency_sync"
- }
- }
- if = {
- limit = { NOT = { has_modifier = wraith_frequency_sync } }
- # Adds the modifier when the right star class is present
- if = {
- limit = {
- has_ship_flag = wraith_freq_blue
- solar_system = {
- OR = {
- is_star_class = sc_b
- is_star_class = sc_a
- }
- }
- }
- add_modifier = { modifier = "wraith_frequency_sync" days = -1 }
- }
- if = {
- limit = {
- has_ship_flag = wraith_freq_yellow
- solar_system = {
- is_star_class = sc_g
- }
- }
- add_modifier = { modifier = "wraith_frequency_sync" days = -1 }
- }
- if = {
- limit = {
- has_ship_flag = wraith_freq_red
- solar_system = {
- is_star_class = sc_m
- }
- }
- add_modifier = { modifier = "wraith_frequency_sync" days = -1 }
- }
- }
- }
- }
- # Enigmatic Fortress Disabled (HIDDEN)
- ship_event = {
- id = leviathans.2100
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- has_ship_flag = fortress_vault
- from.owner = { is_country_type = default }
- }
- immediate = {
- from.owner = { country_event = { id = leviathans.2101 } }
- }
- }
- # Ship destroyed perp port
- country_event = {
- id = leviathans.2099
- title = "leviathans.2101.name"
- desc = {
- text = "leviathans.2101.desc"
- trigger = { NOT = { has_ethic = ethic_gestalt_consciousness } }
- }
- desc = {
- text = "leviathans.2101.desc.gesta"
- trigger = { has_ethic = ethic_gestalt_consciousness }
- }
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_space_battle
- location = fromfrom
- is_triggered_only = yes
- trigger = {
- exists = from
- exists = event_target:fortress_country
- from = { is_same_value = event_target:fortress_country }
- exists = event_target:fortress_vault_core
- event_target:fortress_country = {
- count_owned_ships = { # Check that all ships are disabled
- limit = { is_disabled = no }
- count < 1
- }
- }
- }
- immediate = {
- country_event = { id = story.8 days = 15 }
- establish_communications_no_message = event_target:fortress_country
- #event_target:fortress_country = {
- event_target:fortress_vault_core = {
- #limit = { has_ship_flag = fortress_vault }
- save_global_event_target_as = disabled_enigmatic_fortress
- }
- #}
- every_playable_country = {
- limit = { has_event_chain = "enigmatic_fortress_chain" }
- end_event_chain = "enigmatic_fortress_chain"
- }
- }
- option = {
- name = "leviathans.2101.a"
- begin_event_chain = {
- event_chain = "enigmatic_fortress_chain"
- target = root
- }
- hidden_effect = { country_event = { id = leviathans.2111 } }
- trigger = { NOT = { has_ethic = ethic_gestalt_consciousness } }
- }
- option = {
- name = "leviathans.2101.b"
- hidden_effect = { country_event = { id = leviathans.2160 days = 360 } }
- trigger = { NOT = { has_ethic = ethic_gestalt_consciousness } }
- }
- option = {
- name = leviathans.2101.c.gesta
- trigger = { has_ethic = ethic_gestalt_consciousness }
- add_monthly_resource_mult = {
- resource = engineering_research
- value = 24
- min = 1000
- max = 5000
- }
- add_monthly_resource_mult = {
- resource = physics_research
- value = 24
- min = 1000
- max = 5000
- }
- add_monthly_resource_mult = {
- resource = society_research
- value = 24
- min = 1000
- max = 5000
- }
- add_research_option = tech_enigmatic_encoder
- add_tech_progress = {
- tech = tech_enigmatic_encoder
- progress = 0.30
- }
- add_research_option = tech_enigmatic_decoder
- add_tech_progress = {
- tech = tech_enigmatic_decoder
- progress = 0.30
- }
- hidden_effect = {
- # scuttle fortress
- event_target:fortress_vault_core = {
- fleet = {
- set_event_locked = no
- destroy_fleet = this
- }
- }
- #event_target:fortress_country = {
- # every_owned_fleet = {
- # delete_fleet = this
- # }
- #}
- #event_target:fortress_vault_core = {
- # solar_system = {
- # random_system_planet = {
- # limit = { is_star = yes }
- # create_ambient_object = {
- # type = "dead_enigmatic_fortress_object"
- # location = solar_system
- # }
- # last_created_ambient_object = {
- # save_global_event_target_as = fortress_ambient
- # set_location = {
- # target = PREV
- # distance = 110
- # angle = 110
- # }
- # }
- # }
- # }
- # fleet = {
- # delete_fleet = this
- # }
- #}
- }
- }
- }
- # The Enigmatic Fortress
- country_event = {
- id = leviathans.2101
- title = "leviathans.2101.name"
- desc = "leviathans.2101.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_space_battle
- location = from
- is_triggered_only = yes
- trigger = {
- from.owner = { is_same_value = event_target:fortress_country }
- event_target:fortress_country = {
- count_owned_ships = { # Check that all ships are disabled
- limit = { is_disabled = no }
- count < 1
- }
- }
- }
- immediate = {
- if = {
- limit = {
- NOT = { has_communications = event_target:fortress_country }
- }
- country_event = { id = story.8 days = 15 }
- establish_communications_no_message = event_target:fortress_country
- }
- event_target:fortress_country = {
- random_owned_ship = {
- limit = { has_ship_flag = fortress_vault }
- save_global_event_target_as = disabled_enigmatic_fortress
- }
- }
- }
- option = {
- name = "leviathans.2101.a"
- begin_event_chain = {
- event_chain = "enigmatic_fortress_chain"
- target = root
- }
- hidden_effect = { country_event = { id = leviathans.2111 } }
- }
- option = {
- name = "leviathans.2101.b"
- hidden_effect = { country_event = { id = leviathans.2160 days = 360 } }
- }
- }
- # Entering System
- ship_event = {
- id = leviathans.2105
- title = "leviathans.2105.name"
- desc = "leviathans.2105.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_ship_bridge
- location = FROM
- is_triggered_only = yes
- trigger = {
- FROM = {
- has_star_flag = guardians_fortress_system
- any_ship = {
- AND = {
- is_ship_size = station_xl
- is_disabled = no
- }
- }
- }
- owner = {
- NOT = { has_country_flag = encountered_fortress }
- is_ai = no
- }
- }
- immediate = {
- FROM = { save_event_target_as = fortress_system }
- owner = { set_country_flag = encountered_fortress }
- }
- option = {
- name = "leviathans.2105.a"
- }
- }
- # Entering the Fortress
- country_event = {
- id = leviathans.2111
- title = "leviathans.2111.name"
- desc = "leviathans.2111.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_mystic_reveal
- location = event_target:disabled_enigmatic_fortress
- trackable = yes
- is_triggered_only = yes
- option = {
- name = "leviathans.2111.a"
- custom_tooltip = leviathans.2111.a.tooltip
- hidden_effect = {
- event_target:disabled_enigmatic_fortress = {
- enable_special_project = {
- name = "ENIGMATIC_FORTRESS_1A"
- location = this
- owner = ROOT
- }
- }
- event_target:disabled_enigmatic_fortress = {
- enable_special_project = {
- name = "ENIGMATIC_FORTRESS_1B"
- location = this
- owner = ROOT
- }
- }
- }
- }
- }
- # Uncontrolled Demolition
- ship_event = {
- id = leviathans.2112
- title = "leviathans.2112.name"
- desc = "leviathans.2112.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_ground_battle
- location = fromfrom
- is_triggered_only = yes
- option = {
- name = "leviathans.2112.a"
- custom_tooltip = leviathans.2112.a.tooltip
- hidden_effect = {
- owner = { country_event = { id = leviathans.2131 days = 30 } }
- fleet = { destroy_fleet = this }
- }
- }
- }
- # Adjusting Energy Supply
- ship_event = {
- id = leviathans.2113
- title = "leviathans.2113.name"
- desc = "leviathans.2113.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_laboratory_sound
- location = fromfrom
- is_triggered_only = yes
- option = {
- name = "leviathans.2113.a"
- trigger = { owner = { resource_stockpile_compare = { resource = energy value >= 500 } } }
- owner = {
- add_resource = { energy = -500 }
- hidden_effect = { country_event = { id = leviathans.2114 } }
- }
- }
- option = {
- name = "leviathans.2113.b"
- owner = {
- add_resource = { energy = -50 }
- hidden_effect = { country_event = { id = leviathans.2115 } }
- }
- }
- }
- # Fortress Repowers (Energy Surge)
- country_event = {
- id = leviathans.2114
- title = "leviathans.2114.name"
- desc = "leviathans.2114.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_activating_unknown_technology
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- option = {
- name = "leviathans.2114.a"
- hidden_effect = {
- event_target:disabled_enigmatic_fortress = {
- set_disabled = no
- repair_ship = yes
- }
- }
- end_event_chain = "enigmatic_fortress_chain"
- }
- }
- # Airlock Opened
- country_event = {
- id = leviathans.2115
- title = "leviathans.2115.name"
- desc = "leviathans.2115.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_airlock
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- option = {
- name = "leviathans.2115.a"
- custom_tooltip = leviathans.2112.a.tooltip
- hidden_effect = { country_event = { id = leviathans.2131 days = 30 } }
- }
- }
- # The Tower
- country_event = {
- id = leviathans.2131
- title = "leviathans.2131.name"
- desc = "leviathans.2131.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_mystic_reveal
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- option = {
- name = "leviathans.2131.a"
- hidden_effect = { country_event = { id = leviathans.2132 } }
- }
- option = {
- name = "leviathans.2131.b"
- hidden_effect = { country_event = { id = leviathans.2132 } }
- }
- option = {
- name = "leviathans.2131.c"
- hidden_effect = { country_event = { id = leviathans.2133 } }
- }
- option = {
- name = "leviathans.2131.d"
- hidden_effect = { country_event = { id = leviathans.2132 } }
- }
- }
- # Disturbing Noises
- country_event = {
- id = leviathans.2132
- title = "leviathans.2132.name"
- desc = "leviathans.2132.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_activating_unknown_technology
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- option = {
- name = "leviathans.2132.a"
- hidden_effect = {
- event_target:disabled_enigmatic_fortress = {
- set_disabled = no
- repair_ship = yes
- }
- }
- end_event_chain = "enigmatic_fortress_chain"
- }
- }
- # Tower Rebuilt
- country_event = {
- id = leviathans.2133
- title = "leviathans.2133.name"
- desc = "leviathans.2133.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_radio_chatter
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- option = {
- name = "leviathans.2133.a"
- custom_tooltip = guardian.fortress.continue
- hidden_effect = {
- country_event = { id = leviathans.2150 days = 30 }
- }
- }
- }
- # The Pivot
- country_event = {
- id = leviathans.2150
- title = "leviathans.2150.name"
- desc = "leviathans.2150.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_mystic_reveal
- location = event_target:disabled_enigmatic_fortress
- trackable = yes
- is_triggered_only = yes
- option = {
- name = "leviathans.2150.a"
- event_target:disabled_enigmatic_fortress = {
- solar_system = {
- random_system_planet = {
- limit = { is_star = yes }
- enable_special_project = {
- name = "ENIGMATIC_FORTRESS_5B"
- location = this
- owner = ROOT
- }
- }
- }
- if = {
- limit = {
- ROOT = {
- has_country_resource = {
- type = sr_dark_matter
- amount > 10
- }
- }
- }
- enable_special_project = {
- name = "ENIGMATIC_FORTRESS_5C"
- location = this
- owner = ROOT
- }
- }
- enable_special_project = {
- name = "ENIGMATIC_FORTRESS_5D"
- location = this
- owner = ROOT
- }
- }
- add_resource = { sr_dark_matter = -10 }
- capital_scope = {
- closest_system = {
- limit = {
- has_access_fleet = ROOT
- has_planet_class = pc_black_hole
- }
- random_system_planet = {
- limit = { is_planet_class = pc_black_hole }
- enable_special_project = {
- name = "ENIGMATIC_FORTRESS_5A"
- location = this
- owner = ROOT
- }
- }
- }
- }
- }
- }
- # The Heart of Dark Matter
- country_event = {
- id = leviathans.2151
- title = "leviathans.2151.name"
- desc = "leviathans.2151.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_laboratory_sound
- location = from
- is_triggered_only = yes
- immediate = {
- set_country_flag = fortress_solved
- event_target:disabled_enigmatic_fortress = {
- save_event_target_as = slain_guardian_system
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:slain_guardian_system = {
- is_point_of_interest = {
- id = curator_poi_fortress
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_fortress
- end_curator_chain = yes
- }
- event_target:disabled_enigmatic_fortress = {
- solar_system = {
- random_system_planet = {
- limit = { is_star = yes }
- create_ambient_object = {
- type = "dead_enigmatic_fortress_object"
- location = solar_system
- }
- last_created_ambient_object = {
- save_global_event_target_as = fortress_ambient
- set_location = {
- target = PREV
- distance = 110
- angle = 110
- }
- }
- }
- }
- fleet = {
- delete_fleet = this
- }
- }
- }
- option = {
- name = "leviathans.2151.a"
- add_monthly_resource_mult = {
- resource = engineering_research
- value = 24
- min = 1000
- max = 5000
- }
- add_monthly_resource_mult = {
- resource = physics_research
- value = 24
- min = 1000
- max = 5000
- }
- add_monthly_resource_mult = {
- resource = society_research
- value = 24
- min = 1000
- max = 5000
- }
- add_research_option = tech_enigmatic_encoder
- add_tech_progress = {
- tech = tech_enigmatic_encoder
- progress = 0.30
- }
- add_research_option = tech_enigmatic_decoder
- add_tech_progress = {
- tech = tech_enigmatic_decoder
- progress = 0.30
- }
- end_event_chain = "enigmatic_fortress_chain"
- }
- }
- # Our Star Witness
- country_event = {
- id = leviathans.2152
- title = "leviathans.2152.name"
- desc = "leviathans.2152.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_alien_signal
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- option = {
- name = "leviathans.2152.a"
- hidden_effect = { country_event = { id = leviathans.2153 } }
- }
- option = {
- name = "leviathans.2152.b"
- hidden_effect = { country_event = { id = leviathans.2154 } }
- }
- option = {
- name = "leviathans.2152.c"
- hidden_effect = { country_event = { id = leviathans.2155 } }
- }
- }
- # Fruitless Beginnings
- country_event = {
- id = leviathans.2153
- title = "leviathans.2153.name"
- desc = "leviathans.2153.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_activating_unknown_technology
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- option = {
- name = "leviathans.2153.a"
- end_event_chain = "enigmatic_fortress_chain"
- hidden_effect = {
- event_target:disabled_enigmatic_fortress = {
- set_disabled = no
- repair_ship = yes
- }
- }
- }
- }
- # The Middle Path
- country_event = {
- id = leviathans.2154
- title = "leviathans.2154.name"
- desc = "leviathans.2154.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_laboratory_sound
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- immediate = {
- set_country_flag = fortress_solved
- event_target:disabled_enigmatic_fortress = {
- save_event_target_as = slain_guardian_system
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:slain_guardian_system = {
- is_point_of_interest = {
- id = curator_poi_fortress
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_fortress
- end_curator_chain = yes
- }
- event_target:disabled_enigmatic_fortress = {
- solar_system = {
- random_system_planet = {
- limit = { is_star = yes }
- create_ambient_object = {
- type = "dead_enigmatic_fortress_object"
- location = solar_system
- }
- last_created_ambient_object = {
- save_global_event_target_as = fortress_ambient
- set_location = {
- target = PREV
- distance = 110
- angle = 110
- }
- }
- #create_ambient_object = {
- # type = explosion_particle_object
- # location = this
- # use_3d_location = yes
- # duration = 10
- # scale = 20
- #}
- #last_created_ambient_object = {
- # set_location = {
- # target = PREV
- # distance = 110
- # angle = 110
- # }
- #}
- }
- }
- fleet = {
- delete_fleet = this
- }
- }
- }
- option = {
- name = "leviathans.2154.a"
- add_monthly_resource_mult = {
- resource = engineering_research
- value = 24
- min = 1000
- max = 5000
- }
- add_monthly_resource_mult = {
- resource = physics_research
- value = 24
- min = 1000
- max = 5000
- }
- add_monthly_resource_mult = {
- resource = society_research
- value = 24
- min = 1000
- max = 5000
- }
- add_research_option = tech_enigmatic_encoder
- add_tech_progress = {
- tech = tech_enigmatic_encoder
- progress = 0.30
- }
- add_research_option = tech_enigmatic_decoder
- add_tech_progress = {
- tech = tech_enigmatic_decoder
- progress = 0.30
- }
- end_event_chain = "enigmatic_fortress_chain"
- }
- }
- # The End
- country_event = {
- id = leviathans.2155
- title = "leviathans.2155.name"
- desc = "leviathans.2155.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_activating_unknown_technology
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- option = {
- name = "leviathans.2155.a"
- end_event_chain = "enigmatic_fortress_chain"
- hidden_effect = {
- event_target:disabled_enigmatic_fortress = {
- set_disabled = no
- repair_ship = yes
- }
- }
- }
- }
- # Dark Matter Gambit
- country_event = {
- id = leviathans.2156
- title = "leviathans.2156.name"
- desc = "leviathans.2156.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_laboratory_sound
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- immediate = {
- set_country_flag = fortress_solved
- event_target:disabled_enigmatic_fortress = {
- save_event_target_as = slain_guardian_system
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:slain_guardian_system = {
- is_point_of_interest = {
- id = curator_poi_fortress
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_fortress
- end_curator_chain = yes
- }
- event_target:disabled_enigmatic_fortress = {
- solar_system = {
- random_system_planet = {
- limit = { is_star = yes }
- create_ambient_object = {
- type = "dead_enigmatic_fortress_object"
- location = solar_system
- }
- last_created_ambient_object = {
- save_global_event_target_as = fortress_ambient
- set_location = {
- target = PREV
- distance = 110
- angle = 110
- }
- }
- }
- }
- fleet = {
- delete_fleet = this
- }
- }
- }
- option = {
- name = "leviathans.2156.a"
- add_monthly_resource_mult = {
- resource = engineering_research
- value = 24
- min = 1000
- max = 5000
- }
- add_monthly_resource_mult = {
- resource = physics_research
- value = 24
- min = 1000
- max = 5000
- }
- add_monthly_resource_mult = {
- resource = society_research
- value = 24
- min = 1000
- max = 5000
- }
- add_research_option = tech_enigmatic_encoder
- add_tech_progress = {
- tech = tech_enigmatic_encoder
- progress = 0.30
- }
- add_research_option = tech_enigmatic_decoder
- add_tech_progress = {
- tech = tech_enigmatic_decoder
- progress = 0.30
- }
- end_event_chain = "enigmatic_fortress_chain"
- }
- }
- # Shot Through the Heart
- country_event = {
- id = leviathans.2157
- title = "leviathans.2157.name"
- desc = "leviathans.2157.desc"
- picture = GFX_evt_exploding_ship
- show_sound = event_super_explosion
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- immediate = {
- event_target:disabled_enigmatic_fortress = {
- save_event_target_as = slain_guardian_system
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:slain_guardian_system = {
- is_point_of_interest = {
- id = curator_poi_fortress
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_fortress
- end_curator_chain = yes
- }
- event_target:disabled_enigmatic_fortress = {
- solar_system = {
- random_system_planet = {
- limit = { is_star = yes }
- create_ambient_object = {
- type = "large_debris_object" # Actually explosion
- location = solar_system
- }
- last_created_ambient_object = {
- save_global_event_target_as = fortress_ambient
- set_location = {
- target = PREV
- distance = 110
- angle = 110
- }
- }
- }
- }
- create_ambient_object = {
- type = explosion_particle_object
- location = this
- use_3d_location = yes
- duration = 10
- scale = 30
- }
- fleet = {
- delete_fleet = this
- }
- }
- }
- option = {
- name = "leviathans.2157.a"
- custom_tooltip = leviathans.2157.a.tooltip
- end_event_chain = "enigmatic_fortress_chain"
- hidden_effect = {
- event_target:disabled_enigmatic_fortress = {
- solar_system = {
- every_system_planet = {
- limit = {
- habitable_planet = yes
- NOR = {
- is_planet_class = pc_ringworld_habitable
- is_planet_class = pc_habitat
- }
- }
- create_ambient_object = {
- type = explosion_particle_object
- location = this
- use_3d_location = yes
- duration = 10
- scale = 20
- }
- change_pc = pc_nuked
- reset_planet = yes
- }
- every_system_planet = {
- limit = {
- habitable_planet = no
- is_asteroid = no
- is_star = no
- NOT = { is_planet_class = pc_gas_giant }
- }
- create_ambient_object = {
- type = explosion_particle_object
- location = this
- use_3d_location = yes
- duration = 10
- scale = 20
- }
- change_pc = pc_molten
- reset_planet = yes
- }
- every_fleet_in_system = { destroy_fleet = this }
- }
- }
- }
- }
- }
- # Fortress Repowers (Generic)
- country_event = {
- id = leviathans.2160
- title = "leviathans.2160.name"
- desc = "leviathans.2160.desc"
- picture = GFX_evt_enigmatic_fortress
- show_sound = event_activating_unknown_technology
- location = event_target:disabled_enigmatic_fortress
- is_triggered_only = yes
- option = {
- name = "leviathans.2160.a"
- end_event_chain = "enigmatic_fortress_chain"
- hidden_effect = {
- random_country = {
- limit = { is_country_type = guardian_fortress }
- random_owned_ship = {
- limit = { has_ship_flag = fortress_vault }
- save_event_target_as = disabled_enigmatic_fortress
- }
- }
- event_target:disabled_enigmatic_fortress = {
- set_disabled = no
- repair_ship = yes
- }
- }
- }
- }
- # 3000 DIMENSIONAL HORROR
- # Entering System
- ship_event = {
- id = leviathans.3000
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- owner = {
- NOT = { has_country_flag = encountered_horror }
- }
- FROM = {
- has_star_flag = guardians_horror_system
- OR = {
- NOT = { has_star_flag = horror_spawned }
- any_ship = { is_ship_size = dimensional_horror }
- }
- }
- }
- immediate = {
- if = {
- limit = {
- solar_system = {
- NOT = { has_star_flag = horror_spawned }
- }
- }
- solar_system = {
- set_star_flag = horror_spawned
- save_event_target_as = horror_system
- random_system_planet = {
- limit = { is_planet_class = pc_black_hole }
- create_country = {
- name = "NAME_Dimensional_Horror"
- type = guardian_horror
- flag = {
- icon = {
- category = "zoological"
- file = "flag_zoological_3.dds"
- }
- background = {
- category = "backgrounds"
- file = "00_solid.dds"
- }
- colors={
- "red"
- "red"
- "null"
- "null"
- }
- }
- }
- last_created_country = {
- save_global_event_target_as = dimensional_horror_country
- set_country_flag = dimensional_horror_country
- }
- create_fleet = {
- name = "NAME_Dimensional_Horror"
- settings = {
- spawn_debris = no
- is_boss = yes
- }
- effect = {
- set_owner = event_target:dimensional_horror_country
- save_global_event_target_as = dimensional_horror
- create_ship = {
- name = "NAME_Dimensional_Horror"
- design = "NAME_Dimensional_Horror"
- effect = { set_disabled = yes }
- }
- set_location = {
- target = PREV
- distance = 100
- angle = random
- }
- }
- }
- last_created_fleet = {
- create_ambient_object = {
- type = "horror_spawn_object"
- location = THIS
- use_3d_location = yes
- duration = 10
- }
- fleet_event = { id = leviathans.3220 days = 8 }
- }
- }
- }
- }
- solar_system = { save_event_target_as = horror_system }
- owner = {
- country_event = { id = story.8 days = 15 }
- set_country_flag = encountered_horror
- establish_communications_no_message = event_target:dimensional_horror_country
- country_event = { id = leviathans.3001 }
- }
- }
- }
- # Entering System
- country_event = {
- id = leviathans.3001
- title = "leviathans.3001"
- desc = "leviathans.3001.desc"
- picture = GFX_evt_dimensional_horror
- show_sound = event_activating_unknown_technology
- location = event_target:horror_system
- is_triggered_only = yes
- option = {
- name = "leviathans.3001.a"
- }
- }
- # Horror Destroyed (HIDDEN)
- country_event = {
- id = leviathans.3002
- hide_window = yes
- fire_only_once = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = guardian_horror
- has_country_flag = dimensional_horror_country
- FROMFROM = { is_ship_size = dimensional_horror }
- }
- immediate = {
- FROMFROM = {
- solar_system = { save_event_target_as = guardians_horror_system }
- }
- create_ambient_object = {
- type = "horror_energy_object"
- location = FROMFROM
- }
- last_created_ambient_object = {
- save_event_target_as = horror_energy
- set_ambient_object_flag = horror_energy
- }
- FROM = {
- country_event = { id = leviathans.3003 days = 6 }
- }
- destroy_country = yes
- every_country = {
- limit = {
- is_country_type = default
- has_modifier = dimensional_horror_weak_points
- }
- remove_modifier = "dimensional_horror_weak_points"
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:guardians_horror_system = {
- is_point_of_interest = {
- id = curator_poi_horror
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_horror
- end_curator_chain = yes
- }
- }
- }
- # Horror Destroyed
- country_event = {
- id = leviathans.3003
- title = "leviathans.3003"
- desc = "leviathans.3003.desc"
- picture = GFX_evt_dimensional_horror
- show_sound = event_super_explosion
- location = event_target:guardians_horror_system
- trackable = yes
- is_triggered_only = yes
- immediate = { set_country_flag = horror_killed }
- option = {
- name = "leviathans.3003.a"
- event_target:horror_energy = {
- enable_special_project = {
- name = "DIMENSIONAL_HORROR_PROJECT"
- location = THIS
- owner = ROOT
- }
- }
- }
- }
- # Special Project Completed
- ship_event = {
- id = leviathans.3004
- title = "PROJECT_COMPLETE"
- picture = GFX_evt_dimensional_horror
- show_sound = event_laboratory_sound
- desc = {
- text = "leviathans.3004a.desc"
- trigger = {
- owner = {
- NOR = {
- has_technology = tech_jump_drive_1
- has_technology = tech_psi_jump_drive_1
- }
- }
- }
- }
- desc = {
- text = "leviathans.3004b.desc"
- trigger = {
- owner = {
- OR = {
- has_technology = tech_jump_drive_1
- has_technology = tech_psi_jump_drive_1
- }
- }
- }
- }
- is_triggered_only = yes
- immediate = {
- random_ambient_object = {
- limit = { has_ambient_object_flag = horror_energy }
- destroy_ambient_object = this
- }
- }
- option = {
- name = "EXCELLENT"
- trigger = {
- owner = {
- NOR = {
- has_technology = tech_jump_drive_1
- has_technology = tech_psi_jump_drive_1
- }
- }
- }
- owner = {
- add_research_option = tech_jump_drive_1
- add_tech_progress = {
- tech = tech_jump_drive_1
- progress = 0.5
- }
- add_monthly_resource_mult = {
- resource = physics_research
- value = 24
- min = 4000
- max = 6000
- }
- add_monthly_resource_mult = {
- resource = society_research
- value = 24
- min = 4000
- max = 6000
- }
- }
- }
- option = {
- name = "EXCELLENT"
- trigger = {
- owner = {
- OR = {
- has_technology = tech_jump_drive_1
- has_technology = tech_psi_jump_drive_1
- }
- }
- }
- owner = {
- add_monthly_resource_mult = {
- resource = physics_research
- value = 24
- min = 4000
- max = 6000
- }
- add_monthly_resource_mult = {
- resource = society_research
- value = 24
- min = 4000
- max = 6000
- }
- }
- }
- }
- # 3100 AUTOMATED DREADNOUGHT
- # Entering System
- ship_event = {
- id = leviathans.3100
- title = "leviathans.3100"
- desc = {
- trigger = { owner = { NOT = { has_authority = auth_machine_intelligence } } }
- text = leviathans.3100.desc
- }
- desc = {
- trigger = { owner = { has_authority = auth_machine_intelligence } }
- text = leviathans.3100.desc.mach
- }
- picture = GFX_evt_automated_dreadnought
- show_sound = event_radio_chatter
- location = FROM
- is_triggered_only = yes
- trigger = {
- owner = {
- NOT = { has_country_flag = encountered_dreadnought }
- }
- FROM = {
- has_star_flag = guardians_dreadnought_system
- any_ship = {
- AND = {
- is_ship_size = npc_warship_01
- owner = { is_country_type = guardian_dreadnought }
- }
- }
- }
- }
- immediate = {
- FROM = { save_event_target_as = dreadnought_system }
- owner = {
- set_country_flag = encountered_dreadnought
- }
- }
- option = {
- name = "leviathans.3100.a"
- }
- }
- # Dreadnought Disabled (HIDDEN)
- country_event = {
- id = leviathans.3101
- hide_window = yes
- fire_only_once = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = guardian_dreadnought
- has_country_flag = automated_dreadnought_country
- FROMFROM = { is_ship_size = npc_warship_01 }
- FROM = { is_ai = no }
- }
- immediate = {
- FROMFROM = {
- solar_system = { save_event_target_as = guardians_dreadnought_system }
- create_ambient_object = {
- type = "dreadnought_object"
- location = THIS
- }
- last_created_ambient_object = { save_global_event_target_as = disabled_dreadnought_object }
- create_ambient_object = {
- type = "large_debris_object"
- location = THIS
- }
- last_created_ambient_object = { set_ambient_object_flag = dreadnought_debris }
- }
- FROM = {
- country_event = { id = leviathans.3102 }
- }
- destroy_country = yes
- every_country = {
- limit = {
- is_country_type = default
- has_modifier = automated_dreadnought_weak_points
- }
- remove_modifier = "automated_dreadnought_weak_points"
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:guardians_dreadnought_system = {
- is_point_of_interest = {
- id = curator_poi_dreadnought
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_dreadnought
- end_curator_chain = yes
- }
- }
- }
- # Dreadnought Disabled
- country_event = {
- id = leviathans.3102
- title = "leviathans.3102"
- desc = "leviathans.3102.desc"
- picture = GFX_evt_automated_dreadnought
- show_sound = event_ship_bridge
- location = event_target:guardians_dreadnought_system
- trackable = yes
- is_triggered_only = yes
- option = {
- name = "leviathans.3102.a"
- event_target:disabled_dreadnought_object = {
- enable_special_project = {
- name = "DISABLED_DREADNOUGHT_PROJECT"
- location = THIS
- owner = ROOT
- }
- }
- }
- option = {
- name = "leviathans.3102.b"
- add_resource = {
- minerals = 5000
- energy = 5000
- }
- add_monthly_resource_mult = {
- resource = engineering_research
- value = 30
- min = 1000
- max = 5000
- }
- }
- }
- # Dreadnought Rebuilt
- ship_event = {
- id = leviathans.3103
- title = "leviathans.3103"
- desc = {
- trigger = { owner = { NOT = { has_authority = auth_machine_intelligence } } }
- text = leviathans.3103.desc
- }
- desc = {
- trigger = { owner = { has_authority = auth_machine_intelligence } }
- text = leviathans.3103.desc.mach
- }
- picture = GFX_evt_automated_dreadnought
- show_sound = event_construction
- location = event_target:guardians_dreadnought_system
- is_triggered_only = yes
- immediate = {
- owner = {
- save_event_target_as = project_owner
- set_country_flag = restored_dreadnought
- }
- }
- option = {
- name = "leviathans.3103.a"
- # Psi Jump Dreadnought if owner has it
- if = {
- limit = {
- owner = { has_technology = "tech_psi_jump_drive_1" }
- }
- create_fleet = {
- name = "NAME_Dreadnought"
- effect = {
- set_owner = event_target:project_owner
- create_ship = {
- name = random
- design = "NAME_Type_37" # Psi Jump Dreadnought
- graphical_culture = "npf_01"
- upgradable = no
- }
- set_location = {
- target = event_target:disabled_dreadnought_object
- distance = 0
- angle = random
- }
- }
- }
- hidden_effect = {
- event_target:disabled_dreadnought_object = { destroy_ambient_object = this }
- solar_system = {
- random_system_ambient_object = {
- limit = { has_ambient_object_flag = dreadnought_debris }
- destroy_ambient_object = this
- }
- }
- }
- break = yes
- }
- # Jump Dreadnought if owner has it
- create_fleet = {
- name = "NAME_Dreadnought"
- effect = {
- set_owner = event_target:project_owner
- create_ship = {
- name = random
- design = "NAME_Type_46" # Jump Dreadnought
- graphical_culture = "npf_01"
- upgradable = no
- }
- set_location = {
- target = event_target:disabled_dreadnought_object
- distance = 0
- angle = random
- }
- }
- }
- hidden_effect = {
- event_target:disabled_dreadnought_object = { destroy_ambient_object = this }
- solar_system = {
- random_system_ambient_object = {
- limit = { has_ambient_object_flag = dreadnought_debris }
- destroy_ambient_object = this
- }
- }
- }
- break = yes
- }
- }
- # 3200 HIVE ASTEROID
- # Built Hive Mine (HIDDEN)
- ship_event = {
- id = leviathans.3200
- hide_window = yes
- is_triggered_only = yes
- trigger = {
- FROM = {
- is_planet_class = pc_crystal_asteroid
- }
- }
- immediate = {
- owner = {
- set_country_flag = built_hiver_mine
- }
- }
- }
- # Hivers Appear (HIDDEN)
- country_event = {
- id = leviathans.3210
- hide_window = yes
- fire_only_once = yes
- trigger = {
- is_country_type = default
- has_country_flag = built_hiver_mine
- any_planet_within_border = {
- OR = {
- has_planet_flag = hiver_asteroid_1
- has_planet_flag = hiver_asteroid_2
- has_planet_flag = hiver_asteroid_3
- has_planet_flag = hiver_asteroid_4
- has_planet_flag = hiver_asteroid_5
- }
- has_mining_station = yes
- }
- }
- mean_time_to_happen = {
- years = 100
- modifier = {
- factor = 0.3
- any_planet_within_border = {
- has_mining_station = yes
- has_planet_flag = hiver_asteroid_1
- }
- }
- modifier = {
- factor = 0.3
- any_planet_within_border = {
- has_mining_station = yes
- has_planet_flag = hiver_asteroid_2
- }
- }
- modifier = {
- factor = 0.3
- any_planet_within_border = {
- has_mining_station = yes
- has_planet_flag = hiver_asteroid_3
- }
- }
- modifier = {
- factor = 0.3
- any_planet_within_border = {
- has_mining_station = yes
- has_planet_flag = hiver_asteroid_4
- }
- }
- modifier = {
- factor = 0.3
- any_planet_within_border = {
- has_mining_station = yes
- has_planet_flag = hiver_asteroid_5
- }
- }
- }
- immediate = {
- random_system = {
- limit = { has_star_flag = guardians_hive_system }
- save_event_target_as = hiver_system
- }
- country_event = { id = leviathans.3201 }
- set_global_flag = hivers_appeared
- }
- }
- # Hivers Appear
- country_event = {
- id = leviathans.3201
- title = "leviathans.3201"
- desc = "leviathans.3201.desc"
- picture = GFX_evt_hive
- show_sound = event_red_alert
- location = event_target:hiver_system
- is_triggered_only = yes
- immediate = {
- event_target:hiver_system = {
- random_system_ambient_object = {
- limit = { has_ambient_object_flag = hive_asteroid_1 }
- save_event_target_as = ambient_hive_1
- }
- random_system_ambient_object = {
- limit = { has_ambient_object_flag = hive_asteroid_2 }
- save_event_target_as = ambient_hive_2
- }
- random_system_ambient_object = {
- limit = { has_ambient_object_flag = hive_asteroid_3 }
- save_event_target_as = ambient_hive_3
- }
- random_system_ambient_object = {
- limit = { has_ambient_object_flag = hive_asteroid_4 }
- save_event_target_as = ambient_hive_4
- }
- random_system_ambient_object = {
- limit = { has_ambient_object_flag = hive_asteroid_5 }
- save_event_target_as = ambient_hive_5
- }
- random_system_ambient_object = {
- limit = { has_ambient_object_flag = hive_asteroid_6 }
- save_event_target_as = ambient_hive_6
- }
- }
- create_country = {
- name = "NAME_Alien_Hive"
- type = guardian_hiver
- flag = {
- icon = {
- category = "spherical"
- file = "flag_spherical_6.dds"
- }
- background= {
- category = "backgrounds"
- file = "00_solid.dds"
- }
- colors={
- "red"
- "red"
- "null"
- "null"
- }
- }
- }
- last_created_country = {
- save_global_event_target_as = hive_country
- set_country_flag = hive_country
- }
- every_playable_country = {
- establish_communications_no_message = event_target:hive_country
- }
- create_fleet = {
- name = "NAME_Hiver_Nest"
- settings = { spawn_debris = no }
- effect = {
- set_owner = event_target:hive_country
- create_ship = {
- name = "NAME_Hiver_Nest"
- design = "NAME_Hive_Asteroid"
- }
- set_location = event_target:ambient_hive_1
- }
- }
- event_target:ambient_hive_1 = { destroy_ambient_object = this }
- create_fleet = {
- name = "NAME_Hiver_Nest"
- settings = { spawn_debris = no }
- effect = {
- set_owner = event_target:hive_country
- create_ship = {
- name = "NAME_Hiver_Nest"
- design = "NAME_Hive_Asteroid"
- }
- set_location = event_target:ambient_hive_2
- }
- }
- event_target:ambient_hive_2 = { destroy_ambient_object = this }
- create_fleet = {
- name = "NAME_Hiver_Nest"
- settings = { spawn_debris = no }
- effect = {
- set_owner = event_target:hive_country
- create_ship = {
- name = "NAME_Hiver_Nest"
- design = "NAME_Hive_Asteroid"
- }
- set_location = event_target:ambient_hive_3
- }
- }
- event_target:ambient_hive_3 = { destroy_ambient_object = this }
- create_fleet = {
- name = "NAME_Hiver_Nest"
- settings = { spawn_debris = no }
- effect = {
- set_owner = event_target:hive_country
- create_ship = {
- name = "NAME_Hiver_Nest"
- design = "NAME_Hive_Asteroid"
- }
- set_location = event_target:ambient_hive_4
- }
- }
- event_target:ambient_hive_4 = { destroy_ambient_object = this }
- create_fleet = {
- name = "NAME_Hiver_Nest"
- settings = { spawn_debris = no }
- effect = {
- set_owner = event_target:hive_country
- create_ship = {
- name = "NAME_Hiver_Nest"
- design = "NAME_Hive_Asteroid"
- }
- set_location = event_target:ambient_hive_5
- }
- }
- event_target:ambient_hive_5 = { destroy_ambient_object = this }
- create_fleet = {
- name = "NAME_Hiver_Nest"
- settings = { spawn_debris = no }
- effect = {
- set_owner = event_target:hive_country
- create_ship = {
- name = "NAME_Hiver_Nest"
- design = "NAME_Hive_Asteroid"
- }
- set_location = event_target:ambient_hive_6
- }
- }
- event_target:ambient_hive_6 = { destroy_ambient_object = this }
- set_country_flag = provoked_hivers
- }
- option = {
- name = "leviathans.3201.a"
- }
- }
- # Entering System
- ship_event = {
- id = leviathans.3202
- title = "leviathans.3202"
- desc = "leviathans.3202.desc"
- picture = GFX_evt_hive
- show_sound = event_ship_bridge
- location = FROM
- is_triggered_only = yes
- trigger = {
- NOT = { has_global_flag = hivers_appeared }
- owner = {
- NOT = { has_country_flag = encountered_hivers }
- is_ai = no
- }
- FROM = {
- has_star_flag = guardians_hive_system
- NOT = { has_star_flag = hivers_defeated }
- }
- }
- immediate = {
- FROM = { save_event_target_as = hiver_system }
- owner = {
- set_country_flag = encountered_hivers
- }
- }
- option = {
- name = "leviathans.3202.a"
- }
- }
- # Hivers Destroyed (HIDDEN)
- country_event = {
- id = leviathans.3203
- hide_window = yes
- fire_only_once = yes
- is_triggered_only = yes
- trigger = {
- is_country_type = guardian_hiver
- has_country_flag = hive_country
- count_owned_ships = {
- limit = { is_ship_size = hive_asteroid }
- count < 1 # count_owned_ships no longer counts dead ships
- }
- FROM = {
- has_country_flag = provoked_hivers
- is_ai = no
- }
- }
- immediate = {
- random_system = {
- limit = { has_star_flag = guardians_hive_system }
- save_event_target_as = hive_system
- set_star_flag = hivers_defeated
- }
- create_ambient_object = {
- type = "dormant_hive_base_2_object"
- }
- last_created_ambient_object = {
- set_location = FROMFROM
- set_ambient_object_flag = boardable_hive_asteroid
- save_event_target_as = boardable_hive_asteroid
- }
- FROM = {
- country_event = { id = leviathans.3204 }
- }
- every_country = {
- limit = {
- is_country_type = default
- has_modifier = asteroid_hive_weak_points
- }
- remove_modifier = "asteroid_hive_weak_points"
- }
- every_country = {
- limit = {
- is_country_type = default
- has_event_chain = curator_poi_chain
- event_target:hive_system = {
- is_point_of_interest = {
- id = curator_poi_hiver
- event_chain = curator_poi_chain
- owner = prev
- }
- }
- }
- remove_point_of_interest = curator_poi_hiver
- end_curator_chain = yes
- }
- }
- }
- # Hivers Destroyed
- country_event = {
- id = leviathans.3204
- title = "leviathans.3204"
- desc = "leviathans.3204.desc"
- picture = GFX_evt_hive
- show_sound = event_scanner
- location = event_target:hive_system
- trackable = yes
- is_triggered_only = yes
- option = {
- name = "leviathans.3204.a"
- event_target:boardable_hive_asteroid = {
- enable_special_project = {
- name = "HIVE_ASTEROID_PROJECT"
- location = THIS
- owner = ROOT
- }
- }
- }
- }
- # Special Project Completed
- ship_event = {
- id = leviathans.3205
- title = "PROJECT_COMPLETE"
- desc = "leviathans.3205.desc"
- picture = GFX_evt_hive
- show_sound = event_airlock
- location = event_target:boardable_hive_asteroid
- is_triggered_only = yes
- option = {
- name = "EXCELLENT"
- owner = {
- add_resource = {
- society_research = 2000
- energy = 500
- }
- }
- hidden_effect = {
- random_ambient_object = {
- limit = { has_ambient_object_flag = boardable_hive_asteroid }
- destroy_ambient_object = this
- }
- }
- }
- }
- # Undisable Horror
- fleet_event = {
- id = leviathans.3220
- hide_window = yes
- is_triggered_only = yes
- immediate = {
- owner = {
- random_owned_ship = {
- set_disabled = no
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement