Guest User

Pode_exp_drive_events.txt

a guest
Nov 25th, 2020
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. ##########################################################################
  2. # Event to quickly modify FTL speeds high, then drop them back down
  3. # Intended to "fix" the bug where super-slow FTL speeds will cause ships to get stuck.
  4. # Part of the "Slower than Light" mod by Andon
  5. # adjusted by Pode
  6. ##########################################################################
  7.  
  8. namespace = exp
  9.  
  10. #Called monthly
  11.  
  12. event = {
  13. id = exp.1
  14. hide_window = yes
  15. is_triggered_only = yes
  16.  
  17. immediate = {
  18. every_country = {
  19. limit = { is_ai = no }
  20. every_owned_ship = {
  21. limit = {
  22. is_disabled = no
  23. is_being_repaired = no
  24. is_in_combat = no
  25. # is_upgrading = no #Doesn't seem to work, dunno why, no errors
  26. has_component = "EXPERIMENTAL_DRIVE"
  27. fleet = { is_fleet_idle = no }
  28. }
  29. add_modifier = {
  30. modifier = stl_arrival
  31. days = 1
  32. }
  33. every_playable_country = {
  34. limit = { not = { has_technology = "tech_hyper_drive_15" } }
  35. add_physics_research = 1
  36. }
  37. }
  38. }
  39. }
  40. }
  41.  
  42. ship_event = {
  43. id = exp.2
  44. hide_window = yes
  45. is_triggered_only = yes
  46.  
  47. immediate = {
  48. every_country = {
  49. limit = { is_ai = no }
  50. every_owned_ship = {
  51. limit = {
  52. has_component = "EXPERIMENTAL_DRIVE"
  53. }
  54. random_list = {
  55. 10 = { reduce_hp = 75 }
  56. 5 = { reduce_hp = 150 }
  57. 1 = { reduce_hp = 1000 }
  58. 84 = { reduce_hp = 0 }
  59. }
  60. }
  61. }
  62. }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment