Guest User

Modding Reference

a guest
May 10th, 2016
1,082
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.08 KB | None | 0 0
  1. #############################################################################################
  2. # Modifiers
  3. #############################################################################################
  4. icon = "gfx/interface/icons/planet_modifiers/pm_dangerous_wildlife.dds"
  5. icon_frame = 2
  6.  
  7. ###############################
  8. # Country
  9. ###############################
  10. max_rivalries = 3
  11. max_embassies = 3
  12.  
  13. all_technology_research_speed = 0.10
  14. influence_gain_mult = -0.1
  15. influence_gain_add = 3
  16.  
  17. alliance_influence_cost = 1
  18. rivalry_influence_gain = 0.5
  19.  
  20. country_leader_cap = 1
  21. country_leader_pool_size = 1
  22. country_trade_attractiveness = 0.10
  23. country_core_sector_planet_cap = 2
  24. country_resettlement_cost_mult = -0.15
  25. country_ship_upgrade_cost_mult = -0.15
  26.  
  27. country_engineering_tech_research_speed = 0.3
  28. country_society_tech_research_speed = -0.10
  29. country_physics_tech_research_speed = -0.10
  30.  
  31. category_biology_research_speed_mult = 0.1
  32. category_statecraft_research_speed_mult = 0.1
  33. category_industry_research_speed_mult = 0.1
  34. category_materials_research_speed_mult = 0.1
  35. category_rocketry_research_speed_mult = 0.1
  36. category_voidcraft_research_speed_mult = 0.1
  37. category_field_manipulation_research_speed_mult = 0.1
  38. category_particles_research_speed_mult = 0.1
  39. category_computing_research_speed_mult = 0.1
  40. category_psionics_research_speed_mult = 0.1
  41. category_new_worlds_research_speed_mult = 0.1
  42. category_military_theory_research_speed_mult = 0.1
  43.  
  44.  
  45. science_ship_survey_speed = 0.20
  46. ship_anomaly_research_speed_mult = 0.20
  47. ship_anomaly_generation_chance_mult = 0.10
  48. ship_anomaly_fail_risk = -0.10
  49. ship_anomaly_research_speed_mult = 0.35
  50.  
  51. leader_age = 50
  52. leader_influence_cost = 0.20
  53. leader_skill_levels = 1
  54.  
  55. max_minerals = 1500
  56.  
  57. num_tech_alternatives_add = 1
  58.  
  59. edict_influence_cost = -0.25
  60. edict_length_mult = 0.25
  61.  
  62. species_leader_exp_gain = 0.25
  63.  
  64. ###############################
  65. # Construction
  66. ###############################
  67. shipsize_military_station_small_build_cost_mult = -0.15
  68. shipsize_military_station_medium_build_cost_mult = -0.15
  69. shipsize_military_station_large_build_cost_mult = -0.15
  70.  
  71. shipsize_military_station_small_upkeep_mult = -0.2
  72. shipsize_military_station_medium_upkeep_mult = -0.2
  73. shipsize_military_station_large_upkeep_mult = -0.2
  74.  
  75. shipsize_constructor_build_cost_mult = -0.15
  76. shipsize_mining_station_build_cost_mult = -0.15
  77. shipsize_colonizer_build_cost_mult = -0.35
  78. shipsize_terraform_station_build_cost_mult = -0.25
  79. shipsize_orbital_station_build_cost_mult = -0.2
  80. shipsize_outpost_station_build_cost_mult = -0.15
  81.  
  82. shipsize_corvette_build_cost_mult = -0.2
  83. shipsize_destroyer_build_cost_mult = -0.2
  84. shipsize_cruiser_build_cost_mult = -0.2
  85. shipsize_battleship_build_cost_mult = -0.2
  86.  
  87. building_mining_network_1_build_cost_mult = -0.15
  88.  
  89. ###############################
  90. # Spaceport
  91. ###############################
  92. spaceport_ship_build_cost_mult = -0.10
  93. spaceport_ship_build_time_mult = -0.25
  94.  
  95. spaceport_module_cost_mult = -0.1
  96.  
  97. ###############################
  98. # Planet
  99. ###############################
  100. planet_ship_build_speed_mult = 0.20
  101. planet_army_build_speed_mult = -0.33
  102. planet_army_build_cost_mult = -0.15
  103. planet_building_cost_mult = 0.15
  104. planet_sensor_range_mult = 0.25
  105. planet_migration_all_pull = 1
  106. planet_migration_xeno_pull = 1
  107. planet_border_mult = 1.0
  108. planet_clear_blocker_time_mult = -0.06
  109. planet_clear_blocker_cost_mult = -0.25
  110. planet_colony_development_speed_mult = 0.25
  111.  
  112. pc_nuked_habitability = 1
  113. terraforming_cost_mult = -0.25
  114.  
  115. pc_desert_habitability = 0.1
  116. pc_arid_habitability = 0.1
  117. pc_tropical_habitability = 0.1
  118. pc_continental_habitability = 0.1
  119. pc_tundra_habitability = 0.1
  120. pc_ocean_habitability = 0.1
  121. pc_arctic_habitability = 0.1
  122. pc_ai_habitability = 0.1
  123. pc_nuked_habitability = 0.1
  124. pc_gaia_habitability = 0.1
  125. pc_ringworld_habitable_habitability = 0.1
  126.  
  127. ###############################
  128. # Army
  129. ###############################
  130. army_health = 0.05
  131. army_damage_mult = 0.05
  132. army_upkeep_mult = -0.05
  133. army_morale = 0.20
  134.  
  135. army_rank_increase = 1
  136.  
  137. army_defense_morale_mult = 0.2
  138. army_defense_damage_mult = 0.2
  139.  
  140. army_attack_morale_mult = 0.2
  141. army_attack_damage_mult = 0.2
  142.  
  143.  
  144. ###############################
  145. # Fleet
  146. ###############################
  147. ship_upkeep_mult = -0.10
  148. ship_fire_rate_mult = 0.05
  149. ship_armor_add = 10
  150. ship_hitpoints_add = 1500
  151. ship_weapon_damage = 0.15
  152. ship_shield_hp_mult = -0.33
  153. ship_evasion_mult = 0.05
  154. ship_combat_speed_mult = 0.2
  155. ship_speed_mult = 0.15
  156. ship_emergency_ftl_mult = -0.25
  157. ship_reparation_speed_mult = 0.15
  158. ship_auto_repair_add = 0.02
  159. ship_sensor_range_mult = 0.25
  160. ship_hitpoints_mult = 0.2
  161.  
  162. navy_size_add = 0.1
  163. navy_size_mult = 1
  164.  
  165. damage_vs_country_type_amoeba_mult = 0.2
  166. damage_vs_country_type_crystal_mult = 0.2
  167. damage_vs_country_type_drone_mult = 0.1
  168. damage_vs_country_type_cloud_mult = 0.1
  169. damage_vs_country_type_swarm_mult = 0.2
  170.  
  171. ###############################
  172. # Pops
  173. ###############################
  174. pop_other_species_happiness = 0.01
  175. pop_environment_tolerance = -0.10
  176. pop_slavery_tolerance = -0.1
  177. pop_food_req_mult = -0.10
  178. pop_growth_req_mult = -0.25
  179. pop_ethic_shift = -0.20
  180. pop_happiness = -0.2
  181. pop_robot_production_output = 0.2
  182. pop_xenophobia = 0.2
  183. pop_alien_slavery_tolerance = 1.0
  184. pop_migration_time = -0.5
  185. pop_eff_wo_slaves = -0.1
  186. pop_fortification_defense = 0.5
  187.  
  188. slave_production_output = 0.2
  189. slave_food_output = 0.2
  190.  
  191. pop_war_happiness = 0.05
  192. pop_xenophobia = -0.2
  193.  
  194. garrison_health = 1.0
  195.  
  196. ###############################
  197. # Tile
  198. ###############################
  199. tile_resource_minerals_mult = 1
  200. tile_resource_food_mult = 0.20
  201. tile_resource_energy_mult = 1
  202.  
  203. tile_resource_physics_research_mult = 1
  204. tile_resource_society_research_mult = 1
  205. tile_resource_engineering_research_mult = 1
  206.  
  207. building_time_mult = -0.05
  208.  
  209. #############################################################################################
  210. # Effects
  211. #############################################################################################
  212. ###############################
  213. # Events
  214. ###############################
  215. is_advisor_event = yes
  216. is_triggered_only = yes
  217. hide_window = yes
  218. location = FROM
  219. diplomatic = yes # Sets the event to be a diplomatic event between player and another country
  220. option = { is_dialog_only = yes }
  221. auto_opens = yes
  222. fire_only_once = yes
  223.  
  224. ###############################
  225. # General
  226. ###############################
  227. Macros can be created for integers/floats so they're stored in one location
  228. @tier1materialreward = 6
  229.  
  230. save_event_target_as = DerelictShipLocation
  231. custom_tooltip = example_tooltip
  232.  
  233. set_global_flag = example_flag
  234.  
  235. set_variable = {
  236. which = var
  237. value = 1
  238. }
  239. change_variable = {
  240. which = var
  241. value = 1
  242. }
  243.  
  244. spawn_system = { initializer = "special_init_03" }
  245. spawn_system = {
  246. min_distance = 20
  247. max_distance = 50
  248. system = "sol_system"
  249. }
  250.  
  251. add_modifier = {
  252. modifier = "example_modifier"
  253. days = -1
  254. }
  255. remove_modifier = example_modifier
  256.  
  257. ###############################
  258. # Anomaly
  259. ###############################
  260. prevent_anomaly = no
  261. add_anomaly = TUTORIAL_CAT
  262.  
  263. ###############################
  264. # Country
  265. ###############################
  266. country_event = { id = example_event.1 days = 30 }
  267.  
  268. begin_event_chain = {
  269. event_chain = "star_power_chain"
  270. target = root
  271. }
  272. end_event_chain = "subterranean_civilization_chain"
  273.  
  274. add_event_chain_counter = {
  275. event_chain = "star_power_chain"
  276. counter = "systems_visited_poi"
  277. amount = 1
  278. }
  279. set_country_flag = example_flag
  280. set_timed_country_flag = {
  281. flag = day_0
  282. days = 7
  283. }
  284. remove_country_flag = example_flag
  285.  
  286. set_relation_flag = {
  287. who = root
  288. flag = example_flag
  289. }
  290. remove_relation_flag = example_flag
  291.  
  292. set_tutorial_level = full
  293. set_advisor_active = yes
  294.  
  295. set_faction_hostility = { set_hostile = yes }
  296. establish_communications_no_message = root.owner
  297. establish_communications = event_target:contact_empire
  298. give_technology = tech_terrestrial_sculpting
  299. country_add_ethic = "ethic_xenophobe"
  300. unlock_next_tech = social_engineering_tech_tree
  301.  
  302. add_minerals = 500
  303. add_energy = -75
  304. add_influence = -100
  305. add_research_option = tech_fission_power
  306.  
  307. add_tech_progress = {
  308. tech = tech_fission_power
  309. progress = 0.80
  310. }
  311.  
  312. add_monthly_resource_mult = {
  313. resource = physics_research / engineering_research / society_research
  314. value = 60
  315. min = 2
  316. max = 5
  317. }
  318.  
  319. add_war_demand = {
  320. type = cede_planet
  321. parameter:planet = prev
  322. target = prev.owner
  323. warscore_cost = 50
  324. }
  325.  
  326. set_timed_relation_flag = {
  327. flag = no_coms who = event_target:MyCountry
  328. days = 90
  329. }
  330.  
  331. add_opinion_modifier = {
  332. who = event_target:MyCountry
  333. modifier = opinion_crew_saved
  334. }
  335.  
  336. set_policy = {
  337. policy = slavery
  338. option = slavery_allowed_all
  339. cooldown = no
  340. }
  341.  
  342. set_subject_of = {
  343. who = root
  344. subject_type = vassal / protectorate
  345. }
  346.  
  347. add_threat = {
  348. who = root
  349. amount = 4 # scales to pops
  350. }
  351.  
  352. create_fleet = { name = "Head-in-Sand" }
  353.  
  354. create_military_fleet = {
  355. owner = this
  356. scaled_size = {
  357. base = 3
  358. }
  359. }
  360.  
  361. create_point_of_interest = {
  362. id = anomaly.4035.poi.1
  363. name = "anomaly.4035.poi_1"
  364. desc = "anomaly.4035.poi.desc"
  365. event_chain = star_power_chain
  366. location = event_target:some_system_1
  367. }
  368. remove_point_of_interest = anomaly.4035.poi.1
  369.  
  370. create_ambient_object = {
  371. type = "derelict_ship_object"
  372. location = solar_system
  373. }
  374.  
  375. ###############################
  376. # Observation Outpost
  377. ###############################
  378. dismantle = yes
  379. add_mission_progress = -0.2
  380.  
  381. ###############################
  382. # System
  383. ###############################
  384. clear_uncharted_space = {
  385. from = prevprev
  386. radius = 5
  387. }
  388.  
  389. ###############################
  390. # Planet
  391. ###############################
  392. planet_event = { id = colony.54 days = 35 random = 40 }
  393.  
  394. set_star_flag = example_flag
  395. set_planet_flag = example_flag
  396. remove_planet_flag = example_flag
  397. remove_star_flag = example_flag
  398.  
  399. change_pc = pc_continental
  400. change_planet_size > 1
  401. purge = no
  402. destroy_colony = yes
  403. set_primitive_age = industrial_age
  404.  
  405. create_army = {
  406. name = "Invading Horde"
  407. owner = event_target:subterranean_nation
  408. species = event_target:subterranean_species
  409. type = "industrial_army"
  410. leader = last_created_leader
  411. }
  412.  
  413. create_species = {
  414. name = "AI" / random
  415. class = AI / ART / etc
  416. portrait = random
  417. traits = random
  418. homeworld = event_target:WarriorHomePlanet # optional
  419. }
  420.  
  421. modify_species = {
  422. species = ROOT
  423. add_trait = trait_rapid_breeders
  424. remove_trait = trait_weak
  425. }
  426.  
  427. surveyed = {
  428. set_surveyed = yes
  429. surveyor = event_target:ship_owner
  430. }
  431.  
  432. enable_special_project = {
  433. name = "DERELICT_SHIP_PROJECT"
  434. owner = root
  435. location = this
  436. }
  437.  
  438. create_mining_station = {
  439. owner = ROOT
  440. }
  441.  
  442. create_ambient_object = {
  443. type = "derelict_ship_object"
  444. location = from
  445. }
  446. destroy_ambient_object = this
  447.  
  448. create_country = { # Each part is optional aside from type
  449. name = "Refugees" / random
  450. type = faction
  451. name_list = "PRT2"
  452. government = random
  453. auto_delete = yes
  454. ethos = {
  455. ethic = "ethic_xenophile"
  456. ethic = "ethic_militarist"
  457. }
  458. day_zero_contact = no
  459. flag = random
  460. flag = {
  461. icon = {
  462. category = "pirate"
  463. file = "flag_pirate_7.dds"
  464. }
  465. background = {
  466. category = "backgrounds"
  467. file = "00_solid.dds"
  468. }
  469. colors = {
  470. "red"
  471. "red"
  472. "null"
  473. "null"
  474. }
  475. }
  476. }
  477. destroy_country = yes
  478.  
  479. create_pop_faction = {
  480. type = slave
  481. pop = root
  482. }
  483.  
  484. ###############################
  485. # Pops
  486. ###############################
  487. enslave_pop = yes
  488. kill_pop = yes
  489. pop_add_ethic = ethic_fanatic_pacifist
  490. pop_remove_ethic = ethic_fanatic_militarist
  491. force_faction_evaluation = this
  492. kill_pop_faction = yes
  493. set_pop_flag = "SUPER_DUPER_FLAG"
  494. pop_event = { id = henrik.138 }
  495.  
  496. ###############################
  497. # Army
  498. ###############################
  499. remove_army = yes
  500.  
  501. ###############################
  502. # Fleet
  503. ###############################
  504. ship_event = { id = example_event.1 }
  505.  
  506. assign_leader = last_created_leader
  507.  
  508. destroy_fleet = this / spaceport
  509. set_fleet_flag = example_flag
  510. remove_fleet_flag = example_flag
  511.  
  512. set_fleet_stance = aggressive
  513. set_aggro_range_measure_from = self
  514. set_aggro_range = 500
  515. set_disabled = no
  516. set_owner = prev
  517.  
  518. create_ship = {
  519. graphical_culture = "pirate_01"
  520. name = "Life Tree Protector"
  521. design = "Large Space Organism"
  522. }
  523. create_ship_design = {
  524. design = "Reaver"
  525. ftl = event_target:owner_country
  526. }
  527. set_location = {
  528. target = PREVPREV
  529. distance = 35
  530. angle = random
  531. }
  532.  
  533. queue_actions = {
  534. wait = {
  535. duration = 10
  536. random = 3
  537. }
  538.  
  539. orbit_planet = ROOT
  540.  
  541. move_to = FROM
  542.  
  543. effect = {
  544. id = "blah"
  545. }
  546.  
  547. repeat = {
  548. max_iterations = 10 #limits how many times stuff can be repeated
  549. while = { #AND-trigger. If this trigger fails the repetition will be stopped
  550. id = "something_unique" #this trigger needs a unique ID for save/load to work
  551. }
  552.  
  553. move_to = PREV #actions to repeat
  554. }
  555.  
  556. find_closest_planet = { #finds the closest planet in the system which fulfills the trigger
  557. trigger = {
  558. id = "something_unique"
  559. }
  560. found_planet = { #sets current scope to a planet scope with the found planet
  561. <fleet actions for when a planet was found>
  562. }
  563. failed = { #no scope changes
  564. <fleet action for when no planet was found>
  565. }
  566.  
  567. find_random_system = {
  568. trigger = {
  569. }
  570. found_system = {
  571. move_to = this
  572. }
  573. }
  574. }
  575. clear_fleet_actions = this/prev/root
  576.  
  577. ###############################
  578. # Leader
  579. ###############################
  580. Types are: admiral / general / scientist / governor
  581. Fleet scope allows leader effects on the leader of the scoped fleet
  582.  
  583. set_leader_flag = example_flag
  584. remove_leader_flag = example_flag
  585.  
  586. add_trait = leader_trait_maniacal
  587. set_age = 1
  588. add_experience = 100
  589.  
  590. create_leader = {
  591. type = admiral
  592. species = last_created
  593. name = "0101010111"
  594. skill = 400
  595. traits = {
  596. trait = leader_trait_aggressive
  597. trait = leader_trait_fleet_logistician
  598. }
  599. }
  600.  
  601. kill_leader = {
  602. type = scientist
  603. show_notification = no
  604. }
  605.  
  606. ###############################
  607. # Tile
  608. ###############################
  609. set_blocker = tb_noxious_swamp
  610. remove_blocker = yes
  611. add_deposit = d_vast_society_deposit
  612. clear_deposits = yes
  613. set_building = "building_capital_1"
  614. set_ruined = yes
  615.  
  616. create_pop = {
  617. species = event_target:RefugeeAliens / last_created
  618. ethos = {
  619. ethic = "ethic_xenophile"
  620. ethic = "ethic_fanatic_individualist"
  621. }
  622. ethos = owner
  623. }
  624.  
  625. #############################################################################################
  626. # Triggers
  627. #############################################################################################
  628.  
  629. # Note: > and < can be used instead of = for inclusive checks.
  630.  
  631. # Generic
  632. always = yes
  633. is_ai = no
  634. has_global_flag = example_flag
  635.  
  636. check_variable = {
  637. which = "angry_subterraneans"
  638. value < 1
  639. }
  640.  
  641. exists = ROOT
  642.  
  643. ###############################
  644. # Country
  645. ###############################
  646. has_event_chain = example_chain
  647. has_policy_flag = interference_passive
  648. has_country_flag = example_flag
  649.  
  650. has_edict = crystal_sonar
  651. has_ethic = ethic_militarist
  652. has_technology = tech_mine_satramene
  653. has_government = indirect_democracy
  654. has_anomaly = yes
  655. has_tech_option = tech_fission_power
  656. has_communications = PREV
  657. has_ai_personality = honorbound_warriors
  658. has_country_edict = information_quarantine
  659.  
  660. is_country_type = primitive
  661. is_advisor_active = no
  662. is_same_value = event_target:MyCountry
  663. is_country = ROOT
  664. is_hostile = from
  665.  
  666. ideal_planet_class = pc_arid
  667.  
  668. num_fleets < 2
  669. num_ships < 3
  670. num_communications > 0
  671. num_moons < 2
  672. num_minerals > 0
  673. num_owned_planets = 1
  674. num_modifiers > 0
  675.  
  676. last_changed_policy = slavery
  677.  
  678. influence > 50
  679. minerals > 50
  680. energy > 49
  681. running_balance < -1
  682.  
  683. has_relation_flag = {
  684. who = root
  685. flag = AbandonedRefugees
  686. }
  687.  
  688. has_completed_event_chain_counter = {
  689. event_chain = star_power_chain
  690. counter = systems_visited_poi
  691. }
  692.  
  693. has_established_contact = {
  694. who = event_target:MyCountry
  695. }
  696.  
  697. intel_level = { level > low system = this }
  698.  
  699. their_opinion = {
  700. who = event_target:book_writer
  701. value < 11
  702. }
  703.  
  704. ###############################
  705. # System
  706. ###############################
  707. has_star_flag = precursor_1
  708. is_star_class = sc_pirate_system
  709.  
  710. has_owner = no
  711.  
  712. distance = {
  713. source = ROOT
  714. max_distance = 30
  715. min_distance = 0
  716. }
  717. min_steps = 10
  718. max_steps = 15
  719.  
  720. is_same_value = event_target:green_trigger_1
  721.  
  722. ###############################
  723. # Planet
  724. ###############################
  725.  
  726. # Primitive ages
  727. # bronze_age / iron_age / late_medieval_age / renaissance_age / steam_age / industrial_age / machine_age / atomic_age
  728.  
  729. is_planet_class = pc_arctic
  730. is_capital = no
  731. is_moon = yes
  732. is_asteroid = yes
  733. is_ringworld = no
  734. is_star = no
  735. is_homeworld = no
  736. is_sentient = no
  737.  
  738. has_owner = yes
  739. has_planet_flag = tutorial_anomaly_planet
  740. has_planet_modifier = "example"
  741. has_ground_combat = no
  742. has_any_strategic_resource = no
  743. has_army = yes
  744. has_planet_edict = biochemical_suppression
  745.  
  746. has_observation_outpost = yes
  747. has_mining_station = no
  748. has_research_station = no
  749.  
  750. original_owner = yes
  751.  
  752. orbital_bombardment = limited / full / soft
  753. fortification_health > 1
  754. num_pops > 0
  755. colony_age > 240
  756. free_pop_tiles < 1
  757.  
  758. is_surveyed = {
  759. who = event_target:ship_owner
  760. status = no
  761. }
  762.  
  763. habitability = {
  764. who = prev
  765. value > 0.5
  766. }
  767.  
  768. has_resource = {
  769. type = energy
  770. amount > 0
  771. }
  772.  
  773. ###############################
  774. # Observation Outpost
  775. ###############################
  776. has_mission = technological_enlightenment_1
  777. mission_progress > 0.2
  778.  
  779. ###############################
  780. # Fleet
  781. ###############################
  782. has_fleet_flag = example_flag
  783.  
  784. ###############################
  785. # Ship
  786. ###############################
  787. is_ship_class = shipclass_military
  788. is_ship_size = mining_station
  789.  
  790. count_owned_ships = {
  791. limit = { is_ship_class = shipclass_military }
  792. count > 11
  793. }
  794.  
  795. ###############################
  796. # Leader
  797. ###############################
  798. Types are: admiral / general / scientist / governor
  799.  
  800. has_level = 3
  801. has_leader_flag = example_flag
  802. has_trait = leader_trait_carefree
  803.  
  804. is_researching_area = engineering / physics / society
  805.  
  806. leader_class = admiral
  807. gender = female
  808. num_traits < 3
  809.  
  810. ###############################
  811. # Tile
  812. ###############################
  813. has_blocker = no
  814. has_grown_pop = no
  815. has_growing_pop = no
  816. has_building = no
  817. is_orbital_tile = no
  818. has_building_construction = no
  819. is_ruined = no
  820. has_growing_pop = no
  821.  
  822. ###############################
  823. # Pop
  824. ###############################
  825. is_enslaved = no
  826. is_being_purged = no
  827. is_robot_pop = no
  828.  
  829. has_ethic = "ethic_pacifist"
  830.  
  831. is_species = "ROBOT_POP_SPECIES_1"
  832. is_pop_faction_type = slave
  833. is_same_species = owner_main_species
  834.  
  835. count_pop_factions = {
  836. limit = { is_pop_faction_type = slave }
  837. count < 1
  838. }
  839.  
  840.  
  841. ###############################
  842. # Ambient Object
  843. ###############################
  844. has_ambient_object_flag = manufactory
  845.  
  846. ###############################
  847. # Switch
  848. ###############################
  849. Used in the desc = { } of events
  850.  
  851. Can use any trigger for the current scope as a RHA
  852.  
  853. The modifier itself is the key (as a scope), with it's contents being effect
  854. switch = {
  855. trigger = has_modifier
  856. hazardous_weather = { text = anomaly.6660.desc.weather }
  857. weak_magnetic_field = { text = anomaly.6660.desc.magnetic }
  858. }
  859.  
  860. ##############################################################
  861. # Scopes
  862. ##############################################################
  863.  
  864. # Core
  865. ROOT
  866. me
  867. from
  868. fromfrom
  869. fromfromfrom
  870. prev
  871. prevprev
  872. prev
  873. this
  874. event_target:NameHere
  875.  
  876. Core scopes can be extended with some specific scopes, like so: owner.capital_scope = { }
  877.  
  878. hidden: can be appended to scopes to hide them
  879.  
  880. hidden_effect = { }
  881.  
  882. NOT = { }
  883. AND = { }
  884. OR = { }
  885.  
  886. if = { limit = { }
  887. else = { }
  888.  
  889. break = yes
  890. }
  891.  
  892. random_list = {
  893. 50 = {
  894. modifier = {
  895. factor = 1
  896.  
  897. }
  898. }
  899. 50 = { }
  900. }
  901.  
  902. ###############################
  903. # Country
  904. ###############################
  905. capital_scope = { }
  906. any_country = { }
  907.  
  908. owner = { }
  909. owner_species = { }
  910.  
  911. every_owned_ship = { }
  912. any_owned_ship = { }
  913.  
  914. any_neighbor_country = { }
  915. random_neighbor_country = { limit = { } }
  916.  
  917. solar_system = { }
  918. random_system = { }
  919. random_system = { limit = {} }
  920. random_owned_planet = { limit = {} }
  921. random_rim_system = { limit = { } }
  922.  
  923. every_country = { limit = { } }
  924. random_country = { limit = { } }
  925.  
  926. # Use these to catch a newly-created object in the code to execute stuff to
  927. last_created_ambient_object = { }
  928. last_created_leader = { }
  929. last_created_species = { }
  930. last_created_fleet = { }
  931. last_created_country = { }
  932. last_created_pop = { }
  933.  
  934. ###############################
  935. # System
  936. ###############################
  937.  
  938. any_system = { }
  939. any_moon = { }
  940. any_neighbor_system = { }
  941. any_controlled_planet = { }
  942. any_ship_in_system = { }
  943. any_planet = { }
  944.  
  945. space_owner = { }
  946.  
  947. closest_system = { limit = {} }
  948.  
  949. random_planet = { limit = {} }
  950. random_system_ambient_object limit = {} }
  951. random_system_planet = { limit = {} }
  952. random_research_station = { }
  953.  
  954. every_system_planet = { }
  955.  
  956.  
  957.  
  958. ###############################
  959. # Planet
  960. ###############################
  961. orbital_deposit_tile = { }
  962. every_tile = { }
  963. every_tile = { limit = {} }
  964. random_tile = { limit = {} }
  965. orbit = { }
  966.  
  967. observation_outpost = { }
  968. observation_outpost_owner = { }
  969.  
  970. any_tile = { }
  971.  
  972. any_research_station = { }
  973.  
  974. any_pop = { }
  975. random_owned_pop = { }
  976. every_owned_pop = { }
  977. random_pop = { }
  978. best_tile_for_pop = { limit = { } }
  979.  
  980. random_army = { }
  981.  
  982. ###############################
  983. # Fleet
  984. ###############################
  985. random_owned_ship = { limit = {} }
  986. fleet = { }
  987.  
  988. ###############################
  989. # Leader
  990. ###############################
  991. leader = { }
  992.  
  993. ###############################
  994. # Tile
  995. ###############################
  996. random_neighboring_tile = { limit = {} }
  997. any_neighboring_tile = { }
Advertisement
Add Comment
Please, Sign In to add comment