-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加一个太阳系预设,当开启危机联合但没有危机联合国家时,创建一个坍塌地球的太阳系
- Loading branch information
Showing
4 changed files
with
361 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#an_anomaly_category = { # Anomaly category ID key | ||
# | ||
# should_ai_use = yes/no # Allows AI empires to generate the category. Default: no | ||
# should_ai_and_humans_use = yes/no # If yes, both AI and human empires can use this anomaly (overrides should_ai_use) | ||
# | ||
# desc = "key" # Optional, if no desc is given "<category key>_desc" is assumed | ||
# | ||
# desc = { # Can also use triggered descs. First valid entry will be used. | ||
# trigger = { ... } # Scope: planet, from = ship | ||
# text = "key" # Localization key for description | ||
# } | ||
# picture = GFX_picture # Picture displayed in category window | ||
# level = int # Anomaly level, 1 to 10 | ||
# | ||
# null_spawn_chance = 0.5 # Default 0. 0.0 - 1.0 (0 to 100%) chance category will NOT spawn | ||
# # even if it is picked by the anomaly die roll. Used to make | ||
# # categories for unusual objects (e.g. black holes) actually rare. | ||
# | ||
# max_once = yes/no # default NO, if true will spawn category only once per empire | ||
# max_once_global = yes/no # default NO, if true will spawn category only once per game | ||
# | ||
# spawn_chance = { # Chance for this anomaly category to spawn, | ||
# base = <num> # relative to other valid categories. Default: base = 0 | ||
# modifier = { # Spawn chance modifier | ||
# add/factor = <num> | ||
# <triggers> # Scope: planet, from = ship | ||
# } | ||
# } | ||
# | ||
# on_spawn = { <effects> } # Executes immediately when anomaly category is spawned. | ||
# # Scopes are this/root: planet, from: ship | ||
# # NOTE: on_spawn effects will not run if category is spawned through console | ||
# | ||
# on_success = { # Picks anomaly event to fire; similar to random_list | ||
# 1 = { # Base chance | ||
# max_once = yes # Individual outcomes default to max_once = yes, | ||
# max_once_global = no # and max_once_global = no | ||
# modifier = { # Optional modifiers | ||
# add/factor = <num> | ||
# <triggers> # Scope: ship, from: planet | ||
# } | ||
# anomaly_event = <id> # New effect anomaly_event fires specified event ID. Scope: ship, from: planet | ||
# } # Can also use ship_event, though it gets different scopes: | ||
# # ship, from: ship, fromfrom: planet | ||
# | ||
# 1 = <event id> # shorthand for 1 = { anomaly_event = <event id> } | ||
# } | ||
# | ||
# on_success = <event id> # Shorthand for on_success = { 1 = { anomaly_event = <event id> } } | ||
#} # Only use if there is only one outcome in the category | ||
|
||
@distar_weight = 1 | ||
|
||
GFEXT_collapsed_sol_category = { | ||
desc = { | ||
text = GFEXT_collapsed_sol_category_human_desc | ||
trigger = { | ||
from.owner = { is_human_species = yes } | ||
} | ||
} | ||
desc = GFEXT_collapsed_sol_category_desc | ||
|
||
picture = GFX_evt_GF_black_zone | ||
level = 10 | ||
|
||
#Spawn set via initialisers | ||
|
||
on_success = GFEXT_anomaly.100 | ||
} |
253 changes: 253 additions & 0 deletions
253
common/solar_system_initializers/GFEXT_collapsed_sol.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,253 @@ | ||
# Sol System (Nuclear Wasteland) | ||
special_init_04 = { | ||
name = "NAME_Sol" | ||
class = "sc_g" | ||
asteroid_belt = { | ||
type = rocky_asteroid_belt | ||
radius = 145 | ||
} | ||
asteroid_belt = { | ||
type = icy_asteroid_belt | ||
radius = 290 | ||
} | ||
|
||
usage = misc_system_init | ||
|
||
usage_odds = { | ||
base = 0 | ||
modifier = { | ||
# has_global_flag = GF_Stellairs_Crisis_Coalition_Installed | ||
NOR = { | ||
has_star_flag = empire_cluster | ||
any_country = { | ||
OR = { | ||
has_country_flag = human_1 | ||
has_authority = GF_auth_commonwealth | ||
} | ||
} | ||
any_system = { has_star_flag = sol } | ||
} | ||
add = 999999 | ||
} | ||
} | ||
|
||
max_instances = 1 | ||
|
||
flags = { collapsed_sol sol } | ||
|
||
planet = { | ||
name = "NAME_Sol" | ||
class = "pc_g_star" | ||
orbit_distance = 0 | ||
orbit_angle = 1 | ||
size = 30 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_molten" | ||
orbit_distance = 40 | ||
orbit_angle = 15 | ||
size = 10 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_toxic" | ||
orbit_distance = 25 | ||
orbit_angle = 125 | ||
size = 20 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_GF_collapsed" | ||
orbit_distance = 25 | ||
orbit_angle = 120 | ||
size = 18 | ||
has_ring = no | ||
anomaly = "GFEXT_collapsed_sol_category" | ||
flags = { collapsed_earth } | ||
|
||
init_effect = { | ||
save_global_event_target_as = sol_system_earth | ||
|
||
if = { | ||
limit = { any_country = { is_human_species = yes } } | ||
set_name = "NAME_Earth" | ||
} | ||
} | ||
|
||
moon = { | ||
class = "pc_barren_cold" | ||
size = 5 | ||
orbit_distance = 12 | ||
orbit_angle = 40 | ||
has_ring = no | ||
entity = "cold_barren_planet_luna_entity" | ||
} | ||
} | ||
|
||
planet = { | ||
class = "pc_barren" | ||
orbit_distance = 25 | ||
orbit_angle = 60 | ||
size = 13 | ||
has_ring = no | ||
entity = "barren_planet_mars_entity" | ||
init_effect = { | ||
add_modifier = { | ||
modifier = "terraforming_candidate" | ||
days = -1 | ||
} | ||
} | ||
} | ||
|
||
planet = { | ||
class = "pc_asteroid" | ||
orbit_distance = 30 | ||
orbit_angle = -210 | ||
size = 5 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_asteroid" | ||
orbit_distance = 0 | ||
orbit_angle = -95 | ||
size = 5 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_asteroid" | ||
orbit_distance = 0 | ||
orbit_angle = 285 | ||
size = 5 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_asteroid" | ||
orbit_distance = 0 | ||
orbit_angle = -80 | ||
size = 5 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_gas_giant" | ||
orbit_distance = 40 | ||
orbit_angle = -160 | ||
size = 35 | ||
has_ring = no | ||
entity = "gas_giant_jupiter_entity" | ||
change_orbit = 6 | ||
|
||
moon = { | ||
class = "pc_molten" | ||
size = 6 | ||
orbit_distance = 10 | ||
orbit_angle = 110 | ||
has_ring = no | ||
} | ||
moon = { | ||
class = "pc_frozen" | ||
size = 6 | ||
orbit_distance = 2.5 | ||
orbit_angle = 10 | ||
has_ring = no | ||
} | ||
moon = { | ||
class = "pc_frozen" | ||
size = 9 | ||
orbit_distance = 2.5 | ||
orbit_angle = 80 | ||
has_ring = no | ||
} | ||
moon = { | ||
class = "pc_frozen" | ||
size = 7 | ||
orbit_distance = 2.5 | ||
orbit_angle = -155 | ||
has_ring = no | ||
} | ||
} | ||
|
||
planet = { | ||
class = "pc_gas_giant" | ||
orbit_distance = 25 | ||
orbit_angle = 170 | ||
size = 30 | ||
has_ring = yes | ||
entity = "gas_giant_05_entity" | ||
change_orbit = 7 | ||
|
||
moon = { | ||
class = "pc_frozen" | ||
size = 8 | ||
orbit_distance = 12 | ||
orbit_angle = 320 | ||
has_ring = no | ||
} | ||
} | ||
|
||
planet = { | ||
class = "pc_gas_giant" | ||
orbit_distance = 25 | ||
orbit_angle = 125 | ||
size = 20 | ||
has_ring = no | ||
entity = "gas_giant_03_entity" | ||
} | ||
|
||
planet = { | ||
class = "pc_gas_giant" | ||
orbit_distance = 25 | ||
orbit_angle = -195 | ||
size = 20 | ||
has_ring = no | ||
entity = "gas_giant_02_entity" | ||
change_orbit = 4 | ||
|
||
moon = { | ||
class = "pc_frozen" | ||
size = 6 | ||
orbit_distance = 7 | ||
orbit_angle = 115 | ||
has_ring = no | ||
} | ||
} | ||
|
||
planet = { | ||
class = "pc_asteroid" | ||
orbit_distance = 30 | ||
orbit_angle = -210 | ||
size = 5 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_ice_asteroid" | ||
orbit_distance = 0 | ||
orbit_angle = -95 | ||
size = 5 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_ice_asteroid" | ||
orbit_distance = 0 | ||
orbit_angle = 285 | ||
size = 5 | ||
has_ring = no | ||
} | ||
|
||
planet = { | ||
class = "pc_ice_asteroid" | ||
orbit_distance = 0 | ||
orbit_angle = -80 | ||
size = 5 | ||
has_ring = no | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace = GFEXT_anomaly | ||
|
||
# Nuclear Wasteland | ||
ship_event = { | ||
id = GFEXT_anomaly.100 | ||
title = GFEXT_anomaly.100.name | ||
desc = GFEXT_anomaly.100.desc | ||
picture = GFX_evt_GF_black_zone | ||
location = FROM | ||
|
||
is_triggered_only = yes | ||
|
||
option = { | ||
name = GFEXT_anomaly.100.a | ||
from = { add_deposit = d_society_10 } | ||
owner = { | ||
add_monthly_resource_mult = { | ||
resource = physics_research | ||
value = @tier5researchreward | ||
min = @tier5researchmin | ||
max = @tier5researchmax | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters