IndonesianGentleman

ring_world_fully_habitable_50.txt

Sep 2nd, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.26 KB | None | 0 0
  1. # see README.txt for example
  2. #construction_blocks_others = no
  3.  
  4. ring_world_fully_habitable_50 = {
  5. entity = "construction_platform_entity"
  6. construction_entity = "construction_platform_entity"
  7. portrait = "GFX_megastructure_construction_background"
  8. place_entity_on_planet_plane = no
  9. entity_offset = { x = -7 y = -7 }
  10. build_time = 1800
  11. resources = {
  12. category = megastructures
  13. cost = {
  14. alloys = 5000
  15. influence = 300
  16. }
  17.  
  18. upkeep = {
  19. energy = 5
  20. }
  21. }
  22.  
  23. prerequisites = { "tech_ring_world" }
  24.  
  25. possible = {
  26. exists = starbase
  27. custom_tooltip = {
  28. fail_text = "requires_inside_border"
  29. is_inside_border = from
  30. }
  31. custom_tooltip = {
  32. fail_text = "requires_surveyed_system"
  33. NOT = {
  34. any_system_planet = {
  35. is_surveyed = {
  36. who = prev.from
  37. status = no
  38. }
  39. }
  40. }
  41. }
  42. custom_tooltip = {
  43. fail_text = "requires_no_habitable_planets"
  44. NOT = {
  45. any_system_planet = {
  46. colonizeable_planet = yes
  47. }
  48. }
  49. }
  50. custom_tooltip = {
  51. fail_text = "requires_no_black_hole"
  52. NOT = { is_star_class = sc_black_hole }
  53. }
  54. custom_tooltip = {
  55. fail_text = "requires_no_binary_trinary"
  56. NOR = {
  57. is_star_class = sc_binary_1
  58. is_star_class = sc_binary_2
  59. is_star_class = sc_binary_3
  60. is_star_class = sc_binary_4
  61. is_star_class = sc_binary_5
  62. is_star_class = sc_binary_6
  63. is_star_class = sc_binary_7
  64. is_star_class = sc_binary_8
  65. is_star_class = sc_binary_9
  66. is_star_class = sc_binary_10
  67. is_star_class = sc_trinary_1
  68. is_star_class = sc_trinary_2
  69. is_star_class = sc_trinary_3
  70. is_star_class = sc_trinary_4
  71. }
  72. }
  73.  
  74. custom_tooltip = {
  75. fail_text = "requires_no_existing_megastructure"
  76. #NOT = { has_any_megastructure = yes }
  77. has_no_non_gate_megastructure = yes
  78. }
  79. }
  80.  
  81. placement_rules = {
  82. planet_possible = {
  83. custom_tooltip = {
  84. fail_text = "must_build_around_star"
  85. is_star = yes
  86. }
  87. custom_tooltip = {
  88. fail_text = "requires_no_anomaly"
  89. NOT = { has_anomaly = yes }
  90. }
  91. custom_tooltip = {
  92. fail_text = "requires_planets_for_material"
  93. hidden:solar_system = { any_planet = { NOT = { is_star = yes } } }
  94. }
  95. }
  96. }
  97.  
  98. ai_weight = {
  99. factor = 10
  100.  
  101. modifier = {
  102. factor = 0.1
  103. starbase = { NOT = { has_starbase_size >= starbase_starfortress } }
  104. }
  105.  
  106. modifier = {
  107. factor = 0.1
  108. any_neighbor_system = {
  109. exists = owner
  110. NOT = {
  111. owner = { is_same_value = from }
  112. }
  113. }
  114. }
  115. }
  116.  
  117. on_build_start = {}
  118. on_build_cancel = {}
  119. on_build_complete = {
  120. set_star_flag = ring_world_built
  121. }
  122. }
  123.  
  124. # Temporarily used for creating specific habitable or structural sections.
  125. ring_world_2_fully_habitable_50_intermediate = {
  126.  
  127. entity = ""
  128. construction_entity = "ringworld_seam_entity_01_full_entity"
  129. portrait = "GFX_megastructure_construction_background"
  130.  
  131. build_time = 4800
  132. resources = {
  133. category = megastructures
  134. cost = {
  135. alloys = 10000
  136. }
  137. }
  138.  
  139. upgrade_from = {
  140. ring_world_fully_habitable_50
  141. }
  142.  
  143. prerequisites = { "tech_ring_world" }
  144.  
  145. on_build_start = {}
  146. on_build_cancel = {}
  147. on_build_complete = {
  148. every_system_planet = {
  149. limit = { is_star = no }
  150. remove_planet = yes
  151. }
  152. set_asteroid_belt = {
  153. radius = 0
  154. }
  155.  
  156. remove_megastructure = fromfrom
  157. spawn_megastructure = {
  158. name = "NAME_Ring_Section_A"
  159. type = "ring_world_fully_habitable_2_50"
  160. orbit_angle = 0
  161. orbit_distance = 45
  162. owner = from
  163. graphical_culture = fromfrom
  164. location = star
  165. }
  166. spawn_megastructure = {
  167. name = "NAME_Ring_Section_B"
  168. type = "ring_world_fully_habitable_2_50"
  169. orbit_angle = 90
  170. orbit_distance = 45
  171. owner = from
  172. graphical_culture = fromfrom
  173. location = star
  174. }
  175. spawn_megastructure = {
  176. name = "NAME_Ring_Section_C"
  177. type = "ring_world_fully_habitable_2_50"
  178. orbit_angle = 180
  179. orbit_distance = 45
  180. owner = from
  181. graphical_culture = fromfrom
  182. location = star
  183. }
  184. spawn_megastructure = {
  185. name = "NAME_Ring_Section_D"
  186. type = "ring_world_fully_habitable_2_50"
  187. orbit_angle = 270
  188. orbit_distance = 45
  189. owner = from
  190. graphical_culture = fromfrom
  191. location = star
  192. }
  193. }
  194. }
  195.  
  196. ring_world_fully_habitable_2_50 = {
  197. entity = "ringworld_3x_seams_entity"
  198. portrait = "GFX_megastructure_construction_background"
  199.  
  200. # used from script only
  201. upgrade_desc = hide
  202. potential = { always = no }
  203.  
  204. upgrade_from = {
  205. ring_world_2_fully_habitable_50_intermediate
  206. }
  207. }
  208.  
  209. ring_world_3_fully_habitable_50_intermediate = {
  210. entity = ""
  211. construction_entity = "ringworld_phase_3_construction_entity"
  212. portrait = "GFX_megastructure_construction_background"
  213.  
  214. build_time = 3600
  215. resources = {
  216. category = megastructures
  217. cost = {
  218. alloys = 10000
  219. }
  220. }
  221.  
  222. upgrade_from = {
  223. ring_world_fully_habitable_2_50
  224. }
  225.  
  226. prerequisites = { "tech_ring_world" }
  227. show_prereqs = yes
  228. prereq_name = "RING_WORLD_SHOW_NAME"
  229.  
  230. on_build_complete = {
  231. from = {
  232. set_country_flag = has_built_or_repaired_megastructure
  233. }
  234. spawn_planet = {
  235. class = "pc_fully_ringworld_habitable_50"
  236. location = fromfrom
  237. orbit_angle_offset = 30
  238. init_effect = {
  239. set_name = "NAME_Habitation_Sector_A"
  240. set_planet_entity = {
  241. entity = "ringworld_habitable_entity_01_entity"
  242. graphical_culture = fromfrom
  243. }
  244. surveyed = {
  245. set_surveyed = yes
  246. surveyor = FROM
  247. }
  248. set_all_comms_surveyed = yes
  249. clear_blockers = yes
  250. save_event_target_as = ring_section1
  251. trigger_megastructure_icon = yes
  252. set_planet_flag = megastructure
  253. }
  254. }
  255. spawn_planet = {
  256. class = "pc_fully_ringworld_habitable_50"
  257. location = fromfrom
  258. orbit_angle_offset = 0
  259. init_effect = {
  260. set_name = "NAME_Habitation_Sector_A"
  261. set_planet_entity = {
  262. entity = "ringworld_habitable_entity_01_entity"
  263. graphical_culture = fromfrom
  264. }
  265. surveyed = {
  266. set_surveyed = yes
  267. surveyor = FROM
  268. }
  269. set_all_comms_surveyed = yes
  270. clear_blockers = yes
  271. save_event_target_as = ring_section2
  272. trigger_megastructure_icon = yes
  273. set_planet_flag = megastructure
  274. }
  275. }
  276. spawn_planet = {
  277. class = "pc_fully_ringworld_habitable_50"
  278. location = fromfrom
  279. orbit_angle_offset = -30
  280. init_effect = {
  281. set_name = "NAME_Habitation_Sector_A"
  282. set_planet_entity = {
  283. entity = "ringworld_habitable_entity_01_entity"
  284. graphical_culture = fromfrom
  285. }
  286. surveyed = {
  287. set_surveyed = yes
  288. surveyor = FROM
  289. }
  290. set_all_comms_surveyed = yes
  291. clear_blockers = yes
  292. save_event_target_as = ring_section3
  293. trigger_megastructure_icon = yes
  294. set_planet_flag = megastructure
  295. }
  296. }
  297. fromfrom.planet = {
  298. set_planet_flag = has_megastructure
  299. }
  300. remove_megastructure = fromfrom
  301. if = {
  302. limit = {
  303. NOT = { has_star_flag = ring_section_1 }
  304. }
  305. set_star_flag = ring_section_1
  306. event_target:ring_section1 = { set_name = "Habitation Sector A-1" }
  307. event_target:ring_section2 = { set_name = "Habitation Sector A-2" }
  308. event_target:ring_section3 = { set_name = "Habitation Sector A-3" }
  309. break = yes
  310. }
  311. if = {
  312. limit = {
  313. has_star_flag = ring_section_1
  314. NOT = { has_star_flag = ring_section_2 }
  315. }
  316. set_star_flag = ring_section_2
  317. event_target:ring_section1 = { set_name = "Habitation Sector B-1" }
  318. event_target:ring_section2 = { set_name = "Habitation Sector B-2" }
  319. event_target:ring_section3 = { set_name = "Habitation Sector B-3" }
  320. break = yes
  321. }
  322. if = {
  323. limit = {
  324. has_star_flag = ring_section_2
  325. NOT = { has_star_flag = ring_section_3 }
  326. }
  327. set_star_flag = ring_section_3
  328. event_target:ring_section1 = { set_name = "Habitation Sector C-1" }
  329. event_target:ring_section2 = { set_name = "Habitation Sector C-2" }
  330. event_target:ring_section3 = { set_name = "Habitation Sector C-3" }
  331. break = yes
  332. }
  333. if = {
  334. limit = { has_star_flag = ring_section_3 }
  335. remove_star_flag = ring_section_1
  336. remove_star_flag = ring_section_2
  337. remove_star_flag = ring_section_3
  338. event_target:ring_section1 = { set_name = "Habitation Sector D-1" }
  339. event_target:ring_section2 = { set_name = "Habitation Sector D-2" }
  340. event_target:ring_section3 = { set_name = "Habitation Sector D-3" }
  341. break = yes
  342. }
  343. }
  344. }
Advertisement
Add Comment
Please, Sign In to add comment