Advertisement
Guest User

Earth Origin slight Compatability

a guest
Jun 19th, 2018
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. # change species to have Earth homeworld
  2. # Scope: Country
  3. make_earth_this_species_home = {
  4. #find Earth
  5. random_system = {
  6. limit = { has_star_flag = sol }
  7. random_system_planet = {
  8. limit = {
  9. OR = {
  10. AND = {
  11. has_planet_flag = planet_earth
  12. is_colonizable = yes
  13. }
  14. AND = {
  15. has_planet_flag = planet_earth
  16. is_homeworld = yes
  17. }
  18. }
  19. }
  20. save_event_target_as = origins_earth_home
  21. if = { limit = { has_owner = yes }
  22. prevprev = { set_country_flag = earth_is_owned }
  23. owner = {
  24. set_country_flag = origins_earth_owner
  25. set_country_flag = colony_home_empire
  26. owner_species = { save_event_target_as = origins_earth_owner }
  27. }
  28. }
  29. }
  30. }
  31. random_owned_pop = {
  32. limit = { is_same_species = owner_species }
  33. species = {
  34. set_species_homeworld = event_target:origins_earth_home
  35. if = { limit = { prevprev = { has_country_flag = earth_is_owned } }
  36. prevprev = { remove_country_flag = earth_is_owned }
  37. set_species_identity = event_target:origins_earth_owner
  38. }
  39. save_event_target_as = earth_colony_species
  40. }
  41. }
  42. every_owned_pop = {
  43. limit = { is_same_species = owner_species }
  44. change_species = event_target:earth_colony_species
  45. }
  46. every_owned_leader = {
  47. limit = { is_same_species = owner_species }
  48. change_species = event_target:earth_colony_species
  49. }
  50. every_pool_leader = {
  51. limit = { is_same_species = owner_species }
  52. change_species = event_target:earth_colony_species
  53. }
  54. set_country_flag = country_homeworld_created
  55. change_dominant_species = { species = event_target:earth_colony_species }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement