Guest User

common/scripted_effects/72_tass_scripted_effects.txt

a guest
Oct 11th, 2024
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. # From common\scripted_effects\00_scripted_effects.txt#3883
  2.  
  3. # root/this = planet
  4. total_assimilation_effect = {
  5.  
  6. if = {
  7. limit = {
  8. owner = {
  9. any_owned_species = {
  10. has_trait = trait_total_assimilation_target
  11. }
  12. }
  13. }
  14. owner = {
  15. random_owned_species = {
  16. limit = {
  17. has_trait = trait_total_assimilation_target
  18. }
  19. save_event_target_as = convert_to_species
  20. }
  21. }
  22. } else = {
  23. root.owner = {save_event_target_as = convert_to_species} # Saving species for post-assimilation effects
  24. }
  25.  
  26. random_owned_pop = {
  27. limit = {
  28. has_citizenship_type = {
  29. type = citizenship_total_assimilation
  30. country = root.owner
  31. }
  32. }
  33. # Changed: Remove restrictions; all assimilation is by replacement
  34. kill_pop = yes
  35. root = {
  36. create_pop = {
  37. species = event_target:convert_to_species
  38. ethos = event_target:convert_to_species
  39. }
  40. owner = {
  41. if = {
  42. limit = { has_ascension_perk = ap_become_the_crisis }
  43. complete_crisis_objective = crisobj_purge_pops
  44. }
  45. }
  46. apply_post_assimilation_effects = yes
  47. }
  48. }
  49. }
  50.  
Advertisement
Add Comment
Please, Sign In to add comment