Guilliman

Untitled

May 6th, 2017
798
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. In your custom solar system give the planet you want the modifier(s) on a flag so it can be recognized.
  2.  
  3.  
  4. moon = {
  5. name = "Sadaies"
  6. class = "pc_subarctic"
  7. size = 12
  8. orbit_distance = 8
  9. orbit_angle = 40
  10. has_ring = no
  11.  
  12. init_effect = {
  13. set_planet_flag = is_sadaies_flag # this is the flag
  14. add_modifier = { modifier = kaiju_depths days=-1 }
  15. }
  16. }
  17.  
  18.  
  19.  
  20.  
  21.  
  22. Then we create an on_action script (lets call it " sadaies.1 "
  23.  
  24. In the on_action folder/file look for on_game_start and add the above on action
  25.  
  26.  
  27. on_game_start = {
  28. events = {
  29. game_start.1
  30. game_start.2
  31. game_start.3
  32. game_start.4
  33. game_start.5
  34. sadaies.1 # right here
  35. }
  36. }
  37.  
  38.  
  39.  
  40.  
  41.  
  42. Then we create the actual event script that will run when the game starts. It will go trough every planet on the solar system and see if it finds a planet with the " is_sadaies_flag "
  43.  
  44.  
  45. stellaris/events
  46. Make a zz_on_game_start_event.txt or name it whatever you want
  47.  
  48.  
  49.  
  50.  
  51. namespace = sadaies #make sure this is in the filt at the top !!
  52.  
  53. ### On game start, look for any planet that has the planet flag "is_sadaies_flag"
  54. event = {
  55. id = sadaies.1
  56. hide_window = yes
  57. is_triggered_only = yes
  58.  
  59. immediate = {
  60. every_planet = {
  61. limit = {
  62. has_planet_flag = is_sadaies_flag
  63. }
  64. add_modifier = { modifier = kaiju_depths days = -1 }
  65. }
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment