Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.67 KB | None | 0 0
  1. ### PRETHORYN SCOURGE
  2.  
  3.  
  4. @tier1unityreward = 6
  5. @tier1unitymin = 100
  6. @tier1unitymax = 500
  7. @tier2unityreward = 12
  8. @tier2unitymin = 150
  9. @tier2unitymax = 1000
  10. @tier3unityreward = 18
  11. @tier3unitymin = 250
  12. @tier3unitymax = 1500
  13. @tier4unityreward = 24
  14. @tier4unitymin = 350
  15. @tier4unitymax = 2000
  16. @tier5unityreward = 48
  17. @tier5unitymin = 700
  18. @tier5unitymax = 4000
  19.  
  20. # Vanguard Arrives (HIDDEN)
  21. country_event = {
  22. id = crisis_playable.17
  23. hide_window = yes
  24. fire_only_once = yes
  25.  
  26. mean_time_to_happen = {
  27. days = 10
  28. }
  29.  
  30. trigger = {
  31. has_ascension_perk = ap_true_swarm
  32. #NOT = { has_global_flag = prethoryn_arrival_playable }
  33. }
  34.  
  35. immediate = {
  36.  
  37. closest_system = {
  38.  
  39. limit = {
  40. NOT = {
  41. any_country = {
  42. is_ai = yes
  43. OR = {
  44. is_country_type = fallen_empire
  45. is_country_type = awakened_fallen_empire
  46. }
  47. any_system_within_border = {
  48. is_same_value = prev
  49. }
  50. }
  51. }
  52. any_country = {
  53. has_trait = trait_true_swarm
  54. }
  55. }
  56. #print_scope_effect = yes
  57. set_star_flag = swarm_invasion_target_1_playable
  58. save_event_target_as = prethoryn_invasion_system_playable
  59. }
  60. set_global_flag = prethoryn_arrival_playable
  61. #random_rim_system = {
  62. random_system = {
  63. limit = { has_star_flag = swarm_invasion_target_1_playable }
  64. random_system_planet = {
  65.  
  66. every_country = {
  67. limit = {
  68. OR = {
  69. is_country_type = default
  70. #is_country_type = fallen_empire
  71. #is_country_type = awakened_fallen_empire
  72. }
  73. NOT = { has_trait = trait_true_swarm }
  74. }
  75. establish_communications_no_message = root
  76. declare_war = {
  77. target = root
  78. attacker_war_goal = wg_end_threat_swarm
  79. }
  80.  
  81.  
  82. add_opinion_modifier = {
  83. who = root
  84. modifier = opinion_swarm
  85. }
  86. root = {
  87.  
  88. add_opinion_modifier = {
  89. who = PREV
  90. modifier = opinion_prey
  91. }
  92. }
  93. }
  94. root = {
  95. set_country_type = swarm_playable
  96. set_graphical_culture = swarm_01
  97.  
  98.  
  99. #create_ship_design = { design = "Swarm Transport" }
  100. #add_ship_design = last_created_design
  101. #create_ship_design = { design = "Swarm Colonizer" }
  102. #add_ship_design = last_created_design
  103. #create_ship_design = { design = "Swarm Constructor" }
  104. #add_ship_design = last_created_design
  105. #create_ship_design = { design = "Swarm Small Station" }
  106. #add_ship_design = last_created_design
  107. #create_ship_design = { design = "Swarm Large Station" }
  108. #add_ship_design = last_created_design
  109.  
  110. create_ship_design = { design = "NAME_Swarm_Transport" }
  111. add_ship_design = last_created_design
  112. create_ship_design = { design = "NAME_Swarm_Colonizer" }
  113. add_ship_design = last_created_design
  114. create_ship_design = { design = "NAME_Swarm_Constructor" }
  115. add_ship_design = last_created_design
  116. create_ship_design = { design = "NAME_Swarm_Starbase" }
  117. add_ship_design = last_created_design
  118.  
  119. save_event_target_as = prethoryn_playable
  120. owner_species = { save_event_target_as = prethoryn_species_playable }
  121.  
  122. ### FIRST SYSTEM
  123.  
  124.  
  125.  
  126. swarm_vanguard_playable = yes
  127.  
  128.  
  129. # Constructor
  130. create_fleet = {
  131. name = "Prethoryn Constructor"
  132. effect = {
  133. set_owner = PREV
  134. create_ship = {
  135. name = random
  136. design = "Swarm Constructor"
  137. graphical_culture = "swarm_01"
  138. }
  139. set_location = PREVPREV
  140. }
  141. }
  142. }
  143. }
  144.  
  145. ### SECOND SYSTEM
  146. random_system = {
  147. limit = {
  148. distance = {
  149. source = PREV
  150. use_bypasses = no
  151. min_jumps = 2
  152. max_jumps = 6
  153. #max_distance <= 60
  154. #min_distance >= 5
  155. }
  156. }
  157. set_star_flag = swarm_invasion_target_2_playable
  158. random_system_planet = {
  159. root = {
  160.  
  161. swarm_vanguard_playable = yes
  162.  
  163.  
  164. # Constructor
  165. create_fleet = {
  166. name = "Prethoryn Constructor"
  167. effect = {
  168. set_owner = PREV
  169. create_ship = {
  170. name = random
  171. design = "Swarm Constructor"
  172. graphical_culture = "swarm_01"
  173. }
  174. set_location = PREVPREV
  175. }
  176. }
  177. }
  178. }
  179. }
  180.  
  181. ### THIRD SYSTEM
  182. random_system = {
  183. limit = {
  184. distance = {
  185. source = PREV
  186. use_bypasses = no
  187. min_jumps = 2
  188. max_jumps = 6
  189. #max_distance >= 60
  190. #min_distance <= 5
  191. }
  192. NOT = {
  193. has_star_flag = swarm_invasion_target_1_playable
  194. has_star_flag = swarm_invasion_target_2_playable
  195. }
  196. }
  197. set_star_flag = swarm_invasion_target_3_playable
  198. random_system_planet = {
  199. root = {
  200.  
  201.  
  202. swarm_vanguard_playable = yes
  203.  
  204.  
  205. # Constructor
  206. create_fleet = {
  207. name = "Prethoryn Constructor"
  208. effect = {
  209. set_owner = PREV
  210. create_ship = {
  211. name = random
  212. design = "Swarm Constructor"
  213. graphical_culture = "swarm_01"
  214. }
  215. set_location = PREVPREV
  216. }
  217. }
  218. }
  219. }
  220. }
  221.  
  222. ### FOURTH SYSTEM
  223. random_system = {
  224. limit = {
  225. distance = {
  226. source = PREV
  227. max_distance <= 60
  228. min_distance >= 5
  229. }
  230. NOT = {
  231. has_star_flag = swarm_invasion_target_1_playable
  232. has_star_flag = swarm_invasion_target_2_playable
  233. has_star_flag = swarm_invasion_target_3_playable
  234. }
  235. }
  236. set_star_flag = swarm_invasion_target_4_playable
  237. random_system_planet = {
  238. root = {
  239.  
  240.  
  241.  
  242. swarm_vanguard_playable = yes
  243.  
  244.  
  245. # Constructor
  246. create_fleet = {
  247. name = "Prethoryn Constructor"
  248. effect = {
  249. set_owner = PREV
  250. create_ship = {
  251. name = random
  252. design = "Swarm Constructor"
  253. graphical_culture = "swarm_01"
  254. }
  255. set_location = PREVPREV
  256. }
  257. }
  258. }
  259. }
  260. }
  261. }
  262.  
  263. root = {
  264. #country_event = { id = crisis_playable.19 days = 10 random = 5 }
  265. #country_event = { id = crisis_playable.19 days = 60 random = 20 months = 12 } #before the change
  266. country_event = { id = crisis_playable.19 days = 340 } #new #365 370
  267. }
  268. }
  269. }
  270. }
  271.  
  272. # Vanguard Arrives
  273. country_event = {
  274. id = crisis_playable.18
  275. title = "crisis_playable.18.name"
  276. desc = "crisis_playable.18.desc"
  277. picture = GFX_evt_physics_research
  278. show_sound = event_alien_nature
  279. location = event_target:prethoryn_invasion_system_playable
  280.  
  281. is_triggered_only = yes
  282.  
  283. immediate = {
  284. #random_rim_system = {
  285. random_system = {
  286. limit = { has_star_flag = swarm_invasion_target_1_playable }
  287. save_event_target_as = prethoryn_invasion_system_playable
  288. }
  289. }
  290.  
  291. option = {
  292. name = crisis_playable.18.a
  293. trigger = {
  294. has_spiritualist_government = yes
  295. NOT = {
  296. has_ethic = "ethic_fanatic_egalitarian"
  297. has_ethic = "ethic_fanatic_authoritarian"
  298. has_ethic = "ethic_fanatic_xenophile"
  299. has_ethic = "ethic_fanatic_xenophobe"
  300. }
  301. }
  302.  
  303. begin_event_chain = {
  304. event_chain = "prethoryn_scourge_chain_playable"
  305. target = ROOT
  306. }
  307. }
  308. option = {
  309. name = crisis_playable.18.b
  310. trigger = {
  311. has_militarist_government = yes
  312. NOT = {
  313. has_ethic = "ethic_fanatic_egalitarian"
  314. has_ethic = "ethic_fanatic_authoritarian"
  315. has_ethic = "ethic_fanatic_xenophile"
  316. has_ethic = "ethic_fanatic_xenophobe"
  317. }
  318. }
  319.  
  320. begin_event_chain = {
  321. event_chain = "prethoryn_scourge_chain_playable"
  322. target = ROOT
  323. }
  324. }
  325. option = {
  326. name = crisis_playable.18.c
  327. trigger = {
  328. has_materialist_government = yes
  329. NOT = {
  330. has_ethic = "ethic_fanatic_egalitarian"
  331. has_ethic = "ethic_fanatic_authoritarian"
  332. has_ethic = "ethic_fanatic_xenophile"
  333. has_ethic = "ethic_fanatic_xenophobe"
  334. }
  335. }
  336.  
  337. begin_event_chain = {
  338. event_chain = "prethoryn_scourge_chain_playable"
  339. target = ROOT
  340. }
  341. }
  342. option = {
  343. name = crisis_playable.18.d
  344. trigger = {
  345. has_pacifist_government = yes
  346. NOT = {
  347. has_ethic = "ethic_fanatic_egalitarian"
  348. has_ethic = "ethic_fanatic_authoritarian"
  349. has_ethic = "ethic_fanatic_xenophile"
  350. has_ethic = "ethic_fanatic_xenophobe"
  351. }
  352. }
  353.  
  354. begin_event_chain = {
  355. event_chain = "prethoryn_scourge_chain_playable"
  356. target = ROOT
  357. }
  358. }
  359. option = {
  360. name = crisis_playable.18.e
  361. trigger = {
  362. has_government = gov_megacorporation
  363. NOT = {
  364. has_ethic = "ethic_fanatic_egalitarian"
  365. has_ethic = "ethic_fanatic_authoritarian"
  366. has_ethic = "ethic_fanatic_xenophile"
  367. has_ethic = "ethic_fanatic_xenophobe"
  368. }
  369. }
  370.  
  371. begin_event_chain = {
  372. event_chain = "prethoryn_scourge_chain_playable"
  373. target = ROOT
  374. }
  375. }
  376. option = {
  377. name = crisis_playable.18.f
  378. trigger = {
  379. OR = {
  380. has_generic_government = yes
  381. has_government = gov_enlightened_monarchy
  382. #has_government = gov_enlightened_dictatorship
  383. has_government = gov_hive_mind
  384. }
  385. NOT = {
  386. has_ethic = "ethic_fanatic_egalitarian"
  387. has_ethic = "ethic_fanatic_authoritarian"
  388. has_ethic = "ethic_fanatic_xenophile"
  389. has_ethic = "ethic_fanatic_xenophobe"
  390. }
  391. }
  392.  
  393. begin_event_chain = {
  394. event_chain = "prethoryn_scourge_chain_playable"
  395. target = ROOT
  396. }
  397. }
  398. option = {
  399. name = crisis_playable.18.g
  400. trigger = {
  401. has_ethic = "ethic_fanatic_xenophobe"
  402. }
  403.  
  404. begin_event_chain = {
  405. event_chain = "prethoryn_scourge_chain_playable"
  406. target = ROOT
  407. }
  408. }
  409. option = {
  410. name = crisis_playable.18.h
  411. trigger = {
  412. has_ethic = "ethic_fanatic_xenophile"
  413. }
  414.  
  415. begin_event_chain = {
  416. event_chain = "prethoryn_scourge_chain_playable"
  417. target = ROOT
  418. }
  419. }
  420. option = {
  421. name = crisis_playable.18.i
  422. trigger = {
  423. has_ethic = "ethic_fanatic_authoritarian"
  424. }
  425.  
  426. begin_event_chain = {
  427. event_chain = "prethoryn_scourge_chain_playable"
  428. target = ROOT
  429. }
  430. }
  431. option = {
  432. name = crisis_playable.18.j
  433. trigger = {
  434. has_ethic = "ethic_fanatic_egalitarian"
  435. }
  436.  
  437. begin_event_chain = {
  438. event_chain = "prethoryn_scourge_chain_playable"
  439. target = ROOT
  440. }
  441. }
  442. }
  443. }
  444.  
  445. # Main Invasion Arrives (HIDDEN)
  446. country_event = {
  447. id = crisis_playable.19
  448. hide_window = yes
  449. fire_only_once = yes
  450.  
  451. is_triggered_only = yes
  452.  
  453. trigger = {
  454. is_ai = no
  455. OR = {
  456. is_country_type = swarm_playable
  457. has_trait = trait_true_swarm
  458. }
  459. }
  460. immediate = {
  461. set_global_flag = prethoryn_main_invasion_playable
  462. root = {
  463. #limit = {
  464. # is_ai = no
  465. #is_country_type = default
  466. # has_trait = trait_true_swarm
  467. #}
  468. #prethoryn_playable = root
  469. #country_event = { id = crisis_playable.20 }
  470. #create_species = {
  471. # name = "Prethoryn"
  472. # class = SWARM_TRUE #SWARM
  473. # portrait = random
  474. # traits = random
  475. # immortal = yes
  476. #}
  477.  
  478. #save_event_target_as = prethoryn_playable
  479. }
  480.  
  481.  
  482. #random_rim_system = {
  483. random_system = {
  484. limit = { has_star_flag = swarm_invasion_target_1_playable }
  485. random_system_planet = {
  486.  
  487. root = {
  488.  
  489. ### FIRST SYSTEM
  490. swarm_brood_playable = yes
  491.  
  492.  
  493. # Infestors
  494. while = {
  495. count = 3
  496. create_fleet = {
  497. name = "Prethoryn Infestor"
  498. effect = {
  499. set_owner = root
  500. create_ship = {
  501. name = random
  502. design = "Swarm Colonizer"
  503. graphical_culture = "swarm_01"
  504. }
  505. set_location = PREVPREV
  506. }
  507. }
  508. }
  509.  
  510. # Constructor
  511. create_fleet = {
  512. name = "Prethoryn Constructor"
  513. effect = {
  514. set_owner = root
  515. create_ship = {
  516. name = random
  517. design = "Swarm Constructor"
  518. graphical_culture = "swarm_01"
  519. }
  520. set_location = PREVPREV
  521. }
  522. }
  523.  
  524. # Army Transports
  525. create_fleet = {
  526. name = "Prethoryn Armies"
  527. effect = {
  528. set_owner = root
  529. while = {
  530. count = 3
  531. create_army_transport = {
  532. ship_name = "Prethoryn Transport"
  533. graphical_culture = "swarm_01"
  534. army_name = "Prethoryn Invaders"
  535. army_type = "swarm_army"
  536. species = owner_species #last_created_species #event_target:prethoryn_species_playable
  537.  
  538. }
  539. }
  540. set_location = PREVPREV
  541. }
  542. }
  543. }
  544. }
  545.  
  546. ### SECOND SYSTEM
  547. random_system = {
  548. limit = { has_star_flag = swarm_invasion_target_2_playable }
  549. random_system_planet = {
  550.  
  551. root = {
  552. swarm_brood_playable = yes
  553.  
  554.  
  555. # Infestors
  556. while = {
  557. count = 3
  558. create_fleet = {
  559. name = "Prethoryn Infestor"
  560. effect = {
  561. set_owner = root
  562. create_ship = {
  563. name = random
  564. design = "Swarm Colonizer"
  565. graphical_culture = "swarm_01"
  566. }
  567. set_location = PREVPREV
  568. }
  569. }
  570. }
  571.  
  572. # Constructor
  573. create_fleet = {
  574. name = "Prethoryn Constructor"
  575. effect = {
  576. set_owner = root
  577. create_ship = {
  578. name = random
  579. design = "Swarm Constructor"
  580. graphical_culture = "swarm_01"
  581. }
  582. set_location = PREVPREV
  583. }
  584. }
  585.  
  586. # Army Transports
  587. create_fleet = {
  588. name = "Prethoryn Armies"
  589. effect = {
  590. set_owner = root
  591. while = {
  592. count = 3
  593. create_army_transport = {
  594. ship_name = "Prethoryn Transport"
  595. graphical_culture = "swarm_01"
  596. army_name = "Prethoryn Invaders"
  597. army_type = "swarm_army"
  598. species = owner_species #last_created_species #event_target:prethoryn_species_playable
  599. }
  600. }
  601. set_location = PREVPREV
  602. }
  603. }
  604. }
  605. }
  606. }
  607.  
  608. ### THIRD FLEET
  609. random_system = {
  610. limit = { has_star_flag = swarm_invasion_target_3_playable }
  611. random_system_planet = {
  612.  
  613. root = {
  614. swarm_brood_playable = yes
  615.  
  616.  
  617. # Infestors
  618. while = {
  619. count = 3
  620. create_fleet = {
  621. name = "Prethoryn Infestor"
  622. effect = {
  623. set_owner = root
  624. create_ship = {
  625. name = random
  626. design = "Swarm Colonizer"
  627. graphical_culture = "swarm_01"
  628. }
  629. set_location = PREVPREV
  630. }
  631. }
  632. }
  633.  
  634. # Constructor
  635. create_fleet = {
  636. name = "Prethoryn Constructor"
  637. effect = {
  638. set_owner = root
  639. create_ship = {
  640. name = random
  641. design = "Swarm Constructor"
  642. graphical_culture = "swarm_01"
  643. }
  644. set_location = PREVPREV
  645. }
  646. }
  647.  
  648. # Army Transports
  649. create_fleet = {
  650. name = "Prethoryn Armies"
  651. effect = {
  652. set_owner = root
  653. while = {
  654. count = 3
  655. create_army_transport = {
  656. ship_name = "Prethoryn Transport"
  657. graphical_culture = "swarm_01"
  658. army_name = "Prethoryn Invaders"
  659. army_type = "swarm_army"
  660. species = owner_species #last_created_species #event_target:prethoryn_species_playable
  661. }
  662. }
  663. set_location = PREVPREV
  664. }
  665. }
  666. }
  667. }
  668. }
  669.  
  670. ### FOURTH FLEET
  671. random_system = {
  672. limit = { has_star_flag = swarm_invasion_target_4_playable }
  673. random_system_planet = {
  674.  
  675. root = {
  676. swarm_brood_playable = yes
  677.  
  678.  
  679. # Infestors
  680. while = {
  681. count = 3
  682. create_fleet = {
  683. name = "Prethoryn Infestor"
  684. effect = {
  685. set_owner = root
  686. create_ship = {
  687. name = random
  688. design = "Swarm Colonizer"
  689. graphical_culture = "swarm_01"
  690. }
  691. set_location = PREVPREV
  692. }
  693. }
  694. }
  695.  
  696. # Constructor
  697. create_fleet = {
  698. name = "Prethoryn Constructor"
  699. effect = {
  700. set_owner = root
  701. create_ship = {
  702. name = random
  703. design = "Swarm Constructor"
  704. graphical_culture = "swarm_01"
  705. }
  706. set_location = PREVPREV
  707. }
  708. }
  709.  
  710. # Army Transports
  711. create_fleet = {
  712. name = "Prethoryn Armies"
  713. effect = {
  714. set_owner = root
  715. while = {
  716. count = 3
  717. create_army_transport = {
  718. ship_name = "Prethoryn Transport"
  719. graphical_culture = "swarm_01"
  720. army_name = "Prethoryn Invaders"
  721. army_type = "swarm_army"
  722. species = owner_species #last_created_species #event_target:prethoryn_species_playable
  723. }
  724. }
  725. set_location = PREVPREV
  726. }
  727. }
  728. }
  729. }
  730. }
  731. }
  732. }
  733. }
  734. }
  735.  
  736. # Main Invasion Arrives
  737. country_event = {
  738. id = crisis_playable.20
  739. title = "crisis_playable.20.name"
  740. desc = "crisis_playable.20.desc"
  741. picture = GFX_evt_physics_research
  742. show_sound = event_alien_nature
  743. location = event_target:prethoryn_invasion_system_playable
  744.  
  745. is_triggered_only = yes
  746.  
  747. immediate = {
  748. #random_rim_system = {
  749. random_system = {
  750. limit = { has_star_flag = swarm_invasion_target_1_playable }
  751. save_event_target_as = prethoryn_invasion_system_playable
  752. }
  753. }
  754.  
  755. option = {
  756. name = crisis_playable.20.a
  757. }
  758. }
  759.  
  760. # Swarm Diplomacy
  761. country_event = {
  762. id = crisis_playable.30
  763. title = "TRANSMISSION"
  764.  
  765. desc = {
  766. text = crisis_playable.30.desc_01
  767. trigger = {
  768. NOT = { owner_species = { has_trait = trait_psionic } }
  769. NOR = { owner_species = { has_trait = trait_true_swarm } }
  770. }
  771. }
  772. desc = {
  773. text = crisis_playable.30.desc_02
  774. trigger = {
  775. NOT = { owner_species = { has_trait = trait_psionic } }
  776. NOR = { owner_species = { has_trait = trait_true_swarm } }
  777. }
  778. }
  779. desc = {
  780. text = crisis_playable.30.desc_03
  781. trigger = {
  782. NOT = { owner_species = { has_trait = trait_psionic } }
  783. NOR = { owner_species = { has_trait = trait_true_swarm } }
  784. }
  785. }
  786. desc = {
  787. text = crisis_playable.30.desc_04
  788. trigger = {
  789. owner_species = { has_trait = trait_psionic }
  790. NOR = { owner_species = { has_trait = trait_true_swarm } }
  791. }
  792. }
  793. desc = {
  794. text = crisis_playable.30.desc_05
  795. trigger = {
  796. owner_species = { has_trait = trait_psionic }
  797. NOR = { owner_species = { has_trait = trait_true_swarm } }
  798. }
  799. }
  800. desc = {
  801. text = crisis_playable.30.desc_06
  802. trigger = {
  803. owner_species = { has_trait = trait_psionic }
  804. NOR = { owner_species = { has_trait = trait_true_swarm } }
  805. }
  806. }
  807. desc = {
  808. text = crisis_playable.30.desc_07
  809. trigger = {
  810. owner_species = { has_trait = trait_true_swarm }
  811. }
  812. }
  813.  
  814. diplomatic = yes
  815.  
  816. picture_event_data = {
  817. portrait = swarm1
  818. room = "swarm_room"
  819. }
  820.  
  821. is_triggered_only = yes
  822.  
  823. trigger = {
  824. FROM = {
  825. OR = {
  826. is_country_type = swarm_playable
  827. #has_trait = trait_true_swarm
  828. }
  829. }
  830. }
  831.  
  832.  
  833. option = {
  834. name = crisis_playable.30.b
  835. trigger = {
  836. OR = {
  837. has_ethic = "ethic_pacifist"
  838. has_ethic = "ethic_fanatic_pacifist"
  839. }
  840. NOT = { owner_species = { has_trait = trait_psionic } }
  841. }
  842. response_text = crisis_playable.30.b.response
  843. }
  844. option = {
  845. name = crisis_playable.30.c
  846. trigger = {
  847. OR = {
  848. has_ethic = "ethic_militarist"
  849. has_ethic = "ethic_fanatic_militarist"
  850. }
  851. NOT = { owner_species = { has_trait = trait_psionic } }
  852. }
  853. response_text = crisis_playable.30.c.response
  854. }
  855. option = {
  856. name = crisis_playable.30.d
  857. trigger = {
  858. OR = {
  859. has_ethic = "ethic_xenophobe"
  860. has_ethic = "ethic_fanatic_xenophobe"
  861. }
  862. NOT = { owner_species = { has_trait = trait_psionic } }
  863. }
  864. response_text = crisis_playable.30.d.response
  865. }
  866. option = {
  867. name = crisis_playable.30.e
  868. trigger = {
  869. OR = {
  870. has_ethic = "ethic_xenophile"
  871. has_ethic = "ethic_fanatic_xenophile"
  872. }
  873. NOT = { owner_species = { has_trait = trait_psionic } }
  874. }
  875. response_text = crisis_playable.30.e.response
  876. }
  877. option = {
  878. name = crisis_playable.30.f
  879. trigger = {
  880. OR = {
  881. has_ethic = "ethic_spiritualist"
  882. has_ethic = "ethic_fanatic_spiritualist"
  883. }
  884. NOT = { owner_species = { has_trait = trait_psionic } }
  885. }
  886. response_text = crisis_playable.30.f.response
  887. }
  888. option = {
  889. name = crisis_playable.30.x
  890. trigger = {
  891. is_country_type = default
  892. NOT = { owner_species = { has_trait = trait_psionic } }
  893. NOT = { has_trait = trait_true_swarm }
  894. }
  895. response_text = crisis_playable.30.f.response
  896. custom_tooltip = fallen_empire_refuse_tooltip
  897. }
  898. option = {
  899. name = crisis_playable.30.a
  900. trigger = {
  901. NOT = { owner_species = { has_trait = trait_psionic } }
  902. }
  903. response_text = crisis_playable.30.a.response
  904. }
  905. option = {
  906. name = crisis_playable.30.g
  907. trigger = {
  908. owner_species = { has_trait = trait_psionic }
  909. NOT = { has_trait = trait_true_swarm }
  910. }
  911. response_text = crisis_playable.30.g.response
  912. is_dialog_only = yes
  913. }
  914. option = {
  915. name = crisis_playable.30.h
  916. trigger = {
  917. owner_species = { has_trait = trait_psionic }
  918. NOT = { has_trait = trait_true_swarm }
  919. }
  920. response_text = crisis_playable.30.h.response
  921. is_dialog_only = yes
  922. }
  923. option = {
  924. name = crisis_playable.30.i
  925. trigger = {
  926. owner_species = { has_trait = trait_psionic }
  927. NOT = { has_trait = trait_true_swarm }
  928. }
  929. response_text = crisis_playable.30.i.response
  930. is_dialog_only = yes
  931. }
  932. option = {
  933. name = crisis_playable.30.j
  934. trigger = {
  935. owner_species = { has_trait = trait_psionic }
  936. NOT = { has_trait = trait_true_swarm }
  937. }
  938. response_text = crisis_playable.30.j.response
  939. is_dialog_only = yes
  940. }
  941.  
  942. option = {
  943. name = crisis_playable.30.a
  944. trigger = {
  945. owner_species = { has_trait = trait_psionic }
  946. NOT = { has_trait = trait_true_swarm }
  947. }
  948. response_text = crisis_playable.30.k.response
  949. }
  950. #### SWARM TO SWARM
  951.  
  952. option = {
  953. name = crisis_playable.30.l
  954. trigger = {
  955. owner_species = { has_trait = trait_true_swarm }
  956. }
  957. is_dialog_only = yes
  958. response_text = crisis_playable.30.l.response1
  959. response_text = crisis_playable.30.l.response2
  960. }
  961. option = {
  962. name = crisis_playable.30.m
  963. trigger = {
  964. owner_species = { has_trait = trait_true_swarm }
  965. }
  966. is_dialog_only = yes
  967. from = { add_opinion_modifier = { who = root modifier = opinion_swarm_link } }
  968. }
  969.  
  970. option = {
  971. name = crisis_playable.30.a
  972. trigger = {
  973. owner_species = { has_trait = trait_true_swarm }
  974. }
  975. response_text = crisis_playable.30.k.response
  976. }
  977. }
  978.  
  979.  
  980. # Swarm Kill Count
  981. country_event = {
  982. id = crisis_playable.70
  983. hide_window = yes
  984.  
  985. is_triggered_only = yes
  986.  
  987. trigger = {
  988. exists = from
  989. #has_global_flag = sentinels_founded_playable
  990. #is_ai = no
  991. is_country_type = default
  992. FROM = {
  993. OR = {
  994. is_country_type = swarm_playable
  995. has_trait = trait_true_swarm
  996. }
  997. }
  998. }
  999.  
  1000. immediate = {
  1001. change_variable = {
  1002. which = "swarm_fleet_kills_playable"
  1003. value = 1
  1004. }
  1005. }
  1006. }
  1007. }
  1008.  
  1009.  
  1010. # Swarm Brood Queens Breed
  1011. fleet_event = {
  1012. id = crisis_playable.106
  1013. hide_window = yes
  1014.  
  1015.  
  1016. trigger = {
  1017. has_fleet_flag = pet_queen_playable
  1018. num_ships < 40
  1019. owner = {
  1020. #has_trait = trait_true_swarm
  1021. has_ascension_perk = ap_true_swarm
  1022. #used_naval_capacity_percent < 1.0
  1023. }
  1024. any_ship = { is_ship_size = queen_swarm }
  1025. }
  1026.  
  1027. mean_time_to_happen = {
  1028. months = 4
  1029. }
  1030.  
  1031. immediate = {
  1032. random_list = {
  1033. 50 = {
  1034. create_ship = {
  1035. name = "Spawned Warrior"
  1036. design = "Swarm Large"
  1037. graphical_culture = "swarm_01"
  1038. upgradable = no
  1039. }
  1040. }
  1041. 50 = {
  1042. create_ship = {
  1043. name = "Spawned Swarmling"
  1044. design = "Swarm Small"
  1045. graphical_culture = "swarm_01"
  1046. upgradable = no
  1047. }
  1048. }
  1049. }
  1050. }
  1051. }
  1052.  
  1053. ### HIDDEN SWARM FUNCTIONALITY
  1054.  
  1055. # Infested to Barren after Orbital Bombardment
  1056. planet_event = {
  1057. id = crisis_playable.200
  1058. hide_window = yes
  1059.  
  1060. is_triggered_only = yes
  1061.  
  1062. trigger = {
  1063. is_planet_class = pc_infested_swarmtech
  1064. }
  1065.  
  1066. immediate = {
  1067. destroy_colony = yes
  1068. #set_planet_max_health = 0
  1069. random_list = {
  1070. 50 = { change_pc = pc_barren }
  1071. 50 = { change_pc = pc_barren_cold }
  1072. }
  1073. #planet_event = { id = crisis_playable.216 }
  1074. }
  1075. }
  1076.  
  1077.  
  1078. # Purge Begins
  1079. country_event = {
  1080. id = crisis_playable.201
  1081. hide_window = yes
  1082.  
  1083. is_triggered_only = yes
  1084.  
  1085. trigger = {
  1086. OR = {
  1087. is_country_type = "swarm_playable"
  1088. has_trait = trait_true_swarm
  1089. }
  1090. }
  1091.  
  1092. immediate = {
  1093. FROMFROM = {
  1094. set_controller = root
  1095. #set_owner = root #new
  1096. #purge = yes
  1097. }
  1098. }
  1099. }
  1100.  
  1101. # Purge Complete
  1102. planet_event = {
  1103. id = crisis_playable.202
  1104. hide_window = yes
  1105.  
  1106. is_triggered_only = yes
  1107.  
  1108. trigger = {
  1109. #num_pops = 0
  1110. OR = {
  1111. controller = {
  1112. OR = {
  1113. is_country_type = "swarm_playable"
  1114. has_trait = trait_true_swarm
  1115. }
  1116. }
  1117. #controller = { has_trait = trait_true_swarm }
  1118. owner = {
  1119. is_country_type = "swarm_playable"
  1120. has_trait = trait_true_swarm
  1121. }
  1122. }
  1123. }
  1124.  
  1125.  
  1126. immediate = {
  1127. #set_controller = owner #new
  1128. set_owner = fromfrom #newer
  1129. if = {
  1130. limit = {
  1131. NOR = {
  1132. is_planet_class = pc_ringworld_habitable
  1133. is_planet_class = pc_habitat # habitats are currently uninfestable
  1134. }
  1135. }
  1136. every_owned_pop = { kill_pop = yes }
  1137.  
  1138. change_pc = pc_infested_swarmtech
  1139. set_owner = fromfrom #worked, but made it so armies couldn't leave
  1140.  
  1141. }
  1142. else_if = {
  1143. # Habitable Ring Worlds can't be infested...
  1144. # they are destroyed instead
  1145. limit = { is_planet_class = pc_ringworld_habitable }
  1146. destroy_colony = yes
  1147. change_pc = pc_ringworld_habitable_damaged
  1148. reset_planet = yes
  1149. }
  1150. else_if = {
  1151. limit = { is_planet_class = pc_habitat }
  1152. remove_planet = yes
  1153. }
  1154. }
  1155. }
  1156.  
  1157. # Planet Colonized
  1158. planet_event = {
  1159. id = crisis_playable.203
  1160. hide_window = yes
  1161.  
  1162. is_triggered_only = yes
  1163.  
  1164. trigger = {
  1165. owner = {
  1166. OR = {
  1167. is_country_type = "swarm_playable"
  1168. has_trait = trait_true_swarm
  1169. }
  1170. }
  1171. }
  1172.  
  1173. immediate = {
  1174. change_pc = pc_infested_swarmtech
  1175. set_planet_max_health = 8000
  1176. set_planet_health = 8000
  1177. planet_event = { id = crisis_playable.215 }
  1178. }
  1179. }
  1180.  
  1181. # Spawn Infestors if less than 4 are available, on_yearly_pulse
  1182. event = {
  1183. id = crisis_playable.204
  1184. hide_window = yes
  1185.  
  1186. is_triggered_only = yes
  1187.  
  1188. trigger = {
  1189. any_country = {
  1190. OR = {
  1191. is_country_type = "swarm_playable"
  1192. has_ascension_perk = ap_true_swarm
  1193. }
  1194. #num_ships > 10
  1195. count_owned_ships = {
  1196. limit = { is_ship_size = colony_ship_swarm }
  1197. count < 4
  1198. }
  1199. }
  1200. }
  1201.  
  1202. immediate = {
  1203. random_country = {
  1204. limit = {
  1205. OR = {
  1206. is_country_type = swarm_playable
  1207. has_ascension_perk = ap_true_swarm
  1208. }
  1209. }
  1210. #if = {
  1211. # limit = {
  1212. # NOT = {
  1213. # exists = root #event_target:prethoryn_playable
  1214. # }
  1215. # }
  1216. # save_event_target_as = prethoryn_playable
  1217. #}
  1218. random_owned_ship = {
  1219. save_event_target_as = infestor_respawn_system_playable
  1220. }
  1221. while = {
  1222. count = 5
  1223. create_fleet = {
  1224. name = "Prethoryn Infestor"
  1225. effect = {
  1226. set_owner = root #event_target:prethoryn_playable
  1227. create_ship = {
  1228. name = random
  1229. design = "Swarm Colonizer"
  1230. graphical_culture = "swarm_01"
  1231. }
  1232. set_location = {
  1233. target = event_target:infestor_respawn_system_playable
  1234. distance = 5
  1235. angle = random
  1236. }
  1237. }
  1238. }
  1239. }
  1240. }
  1241. }
  1242. }
  1243.  
  1244. # Spawn Constructors if less than 4 are available, on_yearly_pulse
  1245. event = {
  1246. id = crisis_playable.205
  1247. hide_window = yes
  1248.  
  1249. is_triggered_only = yes
  1250.  
  1251. trigger = {
  1252. any_country = {
  1253. OR = {
  1254. has_ascension_perk = ap_true_swarm
  1255. is_country_type = "swarm_playable"
  1256. }
  1257. num_ships > 10
  1258. count_owned_ships = {
  1259. limit = { is_ship_size = construction_ship_swarm }
  1260. count < 4
  1261. }
  1262. }
  1263. }
  1264.  
  1265. immediate = {
  1266. random_country = {
  1267. limit = {
  1268. OR = {
  1269. is_country_type = swarm_playable
  1270. has_trait = trait_true_swarm
  1271. }
  1272. }
  1273. #if = {
  1274. # limit = {
  1275. # NOT = {
  1276. # exists = root #event_target:prethoryn_playable
  1277. # }
  1278. # }
  1279. # save_event_target_as = prethoryn_playable
  1280. #}
  1281. random_owned_ship = {
  1282. save_event_target_as = constructor_respawn_system_playable
  1283. }
  1284. while = {
  1285. count = 3
  1286. create_fleet = {
  1287. name = "Prethoryn Constructor"
  1288. effect = {
  1289. set_owner = root #event_target:prethoryn_playable
  1290. create_ship = {
  1291. name = random
  1292. design = "Swarm Constructor"
  1293. graphical_culture = "swarm_01"
  1294. }
  1295. set_location = {
  1296. target = event_target:constructor_respawn_system_playable
  1297. distance = 5
  1298. angle = random
  1299. }
  1300. }
  1301. }
  1302. }
  1303. }
  1304. }
  1305. }
  1306.  
  1307. # Build new fleet every year
  1308. event = {
  1309. id = crisis_playable.206
  1310. hide_window = yes
  1311.  
  1312. is_triggered_only = yes
  1313.  
  1314. immediate = {
  1315. if = {
  1316. limit = {
  1317. any_country = {
  1318. OR = {
  1319. is_country_type = swarm_playable
  1320. has_ascension_perk = ap_true_swarm
  1321. }
  1322. num_owned_planets > 0
  1323. num_ships < 4711
  1324. num_armies < 100
  1325. any_system_within_border = { exists = starbase }
  1326. }
  1327. }
  1328. random_country = {
  1329. limit = {
  1330. OR = {
  1331. is_country_type = swarm_playable
  1332. has_trait = trait_true_swarm
  1333. }
  1334. NOT = { has_ascension_perk = ap_true_swarm }
  1335. }
  1336. country_event = { id = crisis_playable.207 }
  1337. }
  1338. random_country = {
  1339. limit = {
  1340. OR = {
  1341. is_country_type = swarm_playable
  1342. has_trait = trait_true_swarm
  1343. }
  1344. has_ascension_perk = ap_true_swarm
  1345. }
  1346. country_event = { id = crisis_playable.219 }
  1347. }
  1348. }
  1349. }
  1350. }
  1351.  
  1352. # Build new fleet (based on the Third Fleet)
  1353. # No ascension perk
  1354. country_event = {
  1355. id = crisis_playable.207
  1356. hide_window = yes
  1357.  
  1358. is_triggered_only = yes
  1359.  
  1360. trigger = {
  1361. OR = {
  1362. is_country_type = swarm_playable
  1363. has_trait = trait_true_swarm
  1364. }
  1365. NOT = { has_ascension_perk = ap_true_swarm }
  1366. num_owned_planets > 0
  1367. num_ships < 4711
  1368. num_armies < 100
  1369. }
  1370.  
  1371. immediate = {
  1372. save_event_target_as = prethoryn_playable
  1373. #owner_species = { save_event_target_as = prethoryn_species_playable }
  1374. random_owned_planet = {
  1375. #limit = { has_spaceport = yes }
  1376. limit = { exists = starbase }
  1377. save_event_target_as = spaceport_planet_playable
  1378.  
  1379. #event_target:prethoryn_playable = {
  1380. root = {
  1381. swarm_brood_playable = yes
  1382. #swarm_brood_playable = yes
  1383. #swarm_brood_playable = yes
  1384.  
  1385. # Infestors
  1386. while = {
  1387. count = 3
  1388. create_fleet = {
  1389. name = "Prethoryn Infestor"
  1390. effect = {
  1391. set_owner = root #event_target:prethoryn_playable
  1392. create_ship = {
  1393. name = random
  1394. design = "Swarm Colonizer"
  1395. graphical_culture = "swarm_01"
  1396. }
  1397. set_location = {
  1398. target = event_target:spaceport_planet_playable
  1399. distance = 35
  1400. angle = random
  1401. }
  1402. }
  1403. }
  1404. }
  1405.  
  1406. # Constructor
  1407. create_fleet = {
  1408. name = "Prethoryn Constructor"
  1409. effect = {
  1410. set_owner = root #event_target:prethoryn_playable
  1411. create_ship = {
  1412. name = random
  1413. design = "Swarm Constructor"
  1414. graphical_culture = "swarm_01"
  1415. }
  1416. set_location = {
  1417. target = event_target:spaceport_planet_playable
  1418. distance = 35
  1419. angle = random
  1420. }
  1421. }
  1422. }
  1423.  
  1424. # Army Transports #new
  1425. #create_fleet = {
  1426. # name = "Prethoryn Armies"
  1427. # effect = {
  1428. # set_owner = event_target:prethoryn_playable
  1429. #while = {
  1430. # count = 3
  1431. # create_army_transport = {
  1432. # ship_name = "Prethoryn Transport"
  1433. # graphical_culture = "swarm_01"
  1434. # army_name = "Prethoryn Invaders"
  1435. # army_type = "swarm_army"
  1436. # species = event_target:prethoryn_species_playable
  1437. # }
  1438. #}
  1439. # set_location = {
  1440. # target = event_target:spaceport_planet_playable
  1441. # distance = 35
  1442. # angle = random
  1443. # }
  1444. # }
  1445. #}
  1446. }
  1447. }
  1448. }
  1449. }
  1450. }
  1451.  
  1452. # Build new fleet (based on the Third Fleet)
  1453. # With ascension perk
  1454. country_event = {
  1455. id = crisis_playable.219
  1456. hide_window = yes
  1457.  
  1458. is_triggered_only = yes
  1459.  
  1460. trigger = {
  1461. OR = {
  1462. is_country_type = swarm_playable
  1463. has_trait = trait_true_swarm
  1464. }
  1465. has_ascension_perk = ap_true_swarm
  1466. num_owned_planets > 0
  1467. num_ships < 4711
  1468. num_armies < 100
  1469. }
  1470.  
  1471. immediate = {
  1472. save_event_target_as = prethoryn_playable
  1473. #owner_species = { save_event_target_as = prethoryn_species_playable }
  1474. random_owned_planet = {
  1475. #limit = { has_spaceport = yes }
  1476. limit = { exists = starbase }
  1477. save_event_target_as = spaceport_planet_playable
  1478.  
  1479. #event_target:prethoryn_playable = {
  1480. root = {
  1481. swarm_brood_playable_full = yes
  1482. #swarm_brood_playable = yes
  1483. #swarm_brood_playable = yes
  1484.  
  1485. # Infestors
  1486. while = {
  1487. count = 3
  1488. create_fleet = {
  1489. name = "Prethoryn Infestor"
  1490. effect = {
  1491. set_owner = root #event_target:prethoryn_playable
  1492. create_ship = {
  1493. name = random
  1494. design = "Swarm Colonizer"
  1495. graphical_culture = "swarm_01"
  1496. }
  1497. set_location = {
  1498. target = event_target:spaceport_planet_playable
  1499. distance = 35
  1500. angle = random
  1501. }
  1502. }
  1503. }
  1504. }
  1505.  
  1506. # Constructor
  1507. create_fleet = {
  1508. name = "Prethoryn Constructor"
  1509. effect = {
  1510. set_owner = root #event_target:prethoryn_playable
  1511. create_ship = {
  1512. name = random
  1513. design = "Swarm Constructor"
  1514. graphical_culture = "swarm_01"
  1515. }
  1516. set_location = {
  1517. target = event_target:spaceport_planet_playable
  1518. distance = 35
  1519. angle = random
  1520. }
  1521. }
  1522. }
  1523. }
  1524. }
  1525. }
  1526. }
  1527. }
  1528. # Destroy Swarm if no planets and only 5 or less ships remain
  1529. # On yearly pulse
  1530. event = {
  1531. id = crisis_playable.208
  1532. hide_window = yes
  1533.  
  1534. is_triggered_only = yes
  1535.  
  1536. trigger = {
  1537. any_country = {
  1538. OR = {
  1539. is_country_type = swarm_playable
  1540. has_trait = trait_true_swarm
  1541. }
  1542. }
  1543. }
  1544.  
  1545. immediate = {
  1546. if = {
  1547. limit = {
  1548. any_country = {
  1549. OR = {
  1550. is_country_type = swarm_playable
  1551. has_trait = trait_true_swarm
  1552. }
  1553. num_ships < 2
  1554. NOT = {
  1555. any_system = {
  1556. any_planet = {
  1557. exists = controller
  1558. controller = {
  1559. OR = {
  1560. is_country_type = swarm_playable
  1561. has_trait = trait_true_swarm
  1562. }
  1563. }
  1564. }
  1565. }
  1566. }
  1567. NOT = {
  1568. any_system = {
  1569. any_planet = {
  1570. exists = owner
  1571. owner = {
  1572. OR = {
  1573. is_country_type = swarm_playable
  1574. has_trait = trait_true_swarm
  1575. }
  1576. }
  1577. }
  1578. }
  1579. }
  1580. }
  1581. }
  1582. random_country = {
  1583. limit = {
  1584. OR = {
  1585. is_country_type = swarm_playable
  1586. has_trait = trait_true_swarm
  1587. }
  1588. }
  1589. destroy_country = yes
  1590. }
  1591. }
  1592. }
  1593. }
  1594.  
  1595. # Prethoryn Defeated (HIDDEN)
  1596. country_event = {
  1597. id = crisis_playable.210
  1598. hide_window = yes
  1599.  
  1600. is_triggered_only = yes
  1601.  
  1602. trigger = {
  1603. OR = {
  1604. is_country_type = swarm_playable
  1605. has_trait = trait_true_swarm
  1606. }
  1607. }
  1608.  
  1609. immediate = {
  1610. every_country = {
  1611. limit = {
  1612. OR = {
  1613. is_country_type = default
  1614. is_country_type = fallen_empire
  1615. }
  1616. }
  1617. country_event = { id = crisis_playable.211 }
  1618. }
  1619. }
  1620. }
  1621.  
  1622. # Prethoryn Defeated
  1623. country_event = {
  1624. id = crisis_playable.211
  1625. title = "crisis.211.name"
  1626. desc = "crisis.211.desc"
  1627. picture = GFX_evt_metropolis
  1628. show_sound = event_celebration
  1629.  
  1630. is_triggered_only = yes
  1631.  
  1632. option = { # Spiritualist Response
  1633. name = crisis_playable.211.a
  1634. trigger = {
  1635. has_spiritualist_government = yes
  1636. NOT = {
  1637. has_ethic = "ethic_fanatic_xenophile"
  1638. has_ethic = "ethic_fanatic_xenophobe"
  1639. }
  1640. }
  1641. add_modifier = {
  1642. modifier = "prethoryn_defeated"
  1643. days = 360
  1644. }
  1645. add_monthly_resource_mult = {
  1646. resource = unity
  1647. value = @tier5unityreward
  1648. }
  1649. end_event_chain = "prethoryn_scourge_chain_playable"
  1650. }
  1651. option = { # Militarist Response
  1652. name = crisis_playable.211.b
  1653. trigger = {
  1654. has_militarist_government = yes
  1655. NOT = {
  1656. has_ethic = "ethic_fanatic_xenophile"
  1657. has_ethic = "ethic_fanatic_xenophobe"
  1658. }
  1659. }
  1660. add_modifier = {
  1661. modifier = "prethoryn_defeated"
  1662. days = 360
  1663. }
  1664. add_monthly_resource_mult = {
  1665. resource = unity
  1666. value = @tier5unityreward
  1667. }
  1668. end_event_chain = "prethoryn_scourge_chain_playable"
  1669. }
  1670. option = { # Materialist Response
  1671. name = crisis_playable.211.c
  1672. trigger = {
  1673. has_materialist_government = yes
  1674. NOT = {
  1675. has_ethic = "ethic_fanatic_xenophile"
  1676. has_ethic = "ethic_fanatic_xenophobe"
  1677. }
  1678. }
  1679. add_modifier = {
  1680. modifier = "prethoryn_defeated"
  1681. days = 360
  1682. }
  1683. add_monthly_resource_mult = {
  1684. resource = unity
  1685. value = @tier5unityreward
  1686. }
  1687. end_event_chain = "prethoryn_scourge_chain_playable"
  1688. }
  1689. option = { # Pacifist Response
  1690. name = crisis_playable.211.d
  1691. trigger = {
  1692. has_pacifist_government = yes
  1693. NOT = {
  1694. has_ethic = "ethic_fanatic_xenophile"
  1695. has_ethic = "ethic_fanatic_xenophobe"
  1696. }
  1697. }
  1698. add_modifier = {
  1699. modifier = "prethoryn_defeated"
  1700. days = 360
  1701. }
  1702. add_monthly_resource_mult = {
  1703. resource = unity
  1704. value = @tier5unityreward
  1705. }
  1706. end_event_chain = "prethoryn_scourge_chain_playable"
  1707. }
  1708. option = { # Corporate Response
  1709. name = crisis_playable.211.e
  1710. trigger = {
  1711. has_government = gov_megacorporation
  1712. NOT = {
  1713. has_ethic = "ethic_fanatic_xenophile"
  1714. has_ethic = "ethic_fanatic_xenophobe"
  1715. }
  1716. }
  1717. add_modifier = {
  1718. modifier = "prethoryn_defeated"
  1719. days = 360
  1720. }
  1721. add_monthly_resource_mult = {
  1722. resource = unity
  1723. value = @tier5unityreward
  1724. }
  1725. end_event_chain = "prethoryn_scourge_chain_playable"
  1726. }
  1727. option = { # Default Response
  1728. name = crisis_playable.211.f
  1729. trigger = {
  1730. OR = {
  1731. has_generic_government = yes
  1732. has_government = gov_enlightened_monarchy
  1733. #has_government = gov_enlightened_dictatorship
  1734. has_government = gov_hive_mind
  1735. }
  1736. NOT = {
  1737. has_ethic = "ethic_fanatic_xenophile"
  1738. has_ethic = "ethic_fanatic_xenophobe"
  1739. }
  1740. }
  1741. add_modifier = {
  1742. modifier = "prethoryn_defeated"
  1743. days = 360
  1744. }
  1745. add_monthly_resource_mult = {
  1746. resource = unity
  1747. value = @tier5unityreward
  1748. }
  1749. end_event_chain = "prethoryn_scourge_chain_playable"
  1750. }
  1751. option = { # Xenophobe Response
  1752. name = crisis_playable.211.g
  1753. trigger = {
  1754. has_ethic = "ethic_fanatic_xenophobe"
  1755. }
  1756. add_modifier = {
  1757. modifier = "prethoryn_defeated"
  1758. days = 360
  1759. }
  1760. add_monthly_resource_mult = {
  1761. resource = unity
  1762. value = @tier5unityreward
  1763. }
  1764. end_event_chain = "prethoryn_scourge_chain_playable"
  1765. }
  1766. option = { # Xenophile Response
  1767. name = crisis_playable.211.h
  1768. trigger = {
  1769. has_ethic = "ethic_fanatic_xenophile"
  1770. }
  1771. add_modifier = {
  1772. modifier = "prethoryn_defeated"
  1773. days = 360
  1774. }
  1775. add_monthly_resource_mult = {
  1776. resource = unity
  1777. value = @tier5unityreward
  1778. }
  1779. end_event_chain = "prethoryn_scourge_chain_playable"
  1780. }
  1781. }
  1782.  
  1783. # World Infested (HIDDEN)
  1784. planet_event = {
  1785. id = crisis_playable.215
  1786. hide_window = yes
  1787.  
  1788. is_triggered_only = yes
  1789.  
  1790. immediate = {
  1791. every_country = {
  1792. limit = { has_event_chain = "prethoryn_scourge_chain_playable" }
  1793. add_event_chain_counter = {
  1794. event_chain = "prethoryn_scourge_chain_playable"
  1795. counter = "infested_worlds"
  1796. amount = 1
  1797. }
  1798. }
  1799. }
  1800. }
  1801.  
  1802. # Infested World Cleansed (HIDDEN)
  1803. planet_event = {
  1804. id = crisis_playable.216
  1805. hide_window = yes
  1806.  
  1807. is_triggered_only = yes
  1808.  
  1809. immediate = {
  1810. every_country = {
  1811. limit = { has_event_chain = "prethoryn_scourge_chain_playable" }
  1812. add_event_chain_counter = {
  1813. event_chain = "prethoryn_scourge_chain_playable"
  1814. counter = "infested_worlds"
  1815. amount = -1
  1816. }
  1817. add_event_chain_counter = {
  1818. event_chain = "prethoryn_scourge_chain_playable"
  1819. counter = "infested_worlds_cleansed"
  1820. amount = 1
  1821. }
  1822. }
  1823. }
  1824. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement