Hello everyone, I'm trying to create humans via an event. In order to establish earth as the human homeworld I create additional human factions via events so they are created later and earth remains the human homeworld.
So far, so good... until I create the Custodians or AI on earth then subsequent human factions do not have earth as their homeworld.
The full code is here:
https://github.com/Joseph-Anthony-King/forward_earth/blob/master/events/fe_game_start.txt
Here is the example event:
Hello everyone, I'm trying to create humans via an event. In order to establish earth as the human homeworld I create additional human factions via events so they are created later and earth remains the human homeworld.
So far, so good... until I create the Custodians or AI on earth then subsequent human factions do not have earth as their homeworld.
The full code is here:
https://github.com/Joseph-Anthony-King/forward_earth/blob/master/events/fe_game_start.txt
Here is the example event:
This isn't working... how can I ensure earth is the human homeworld?
Thanks!
Joe
This isn't working... how can I ensure earth is the human homeworld?
Thanks!
Joe
So far, so good... until I create the Custodians or AI on earth then subsequent human factions do not have earth as their homeworld.
The full code is here:
https://github.com/Joseph-Anthony-King/forward_earth/blob/master/events/fe_game_start.txt
Here is the example event:
Hello everyone, I'm trying to create humans via an event. In order to establish earth as the human homeworld I create additional human factions via events so they are created later and earth remains the human homeworld.
So far, so good... until I create the Custodians or AI on earth then subsequent human factions do not have earth as their homeworld.
The full code is here:
https://github.com/Joseph-Anthony-King/forward_earth/blob/master/events/fe_game_start.txt
Here is the example event:
Code:
### fe.5 - Instantiate League of Human Colonies
event = {
id = fe.5
hide_window = yes
is_triggered_only = yes
immediate = {
random_planet = {
limit = {
AND = {
OR = {
any_country = { has_country_flag = custondian_faction }
any_country = { has_country_flag = icarus_faction }
}
has_planet_flag = epsilon_a_two
}
}
random_planet = {
limit = {
has_planet_flag = planet_earth
}
effect = {
save_event_target_as = planet_earth_target
}
}
create_species = {
name = Human
plural = Humans
class = "HUM"
portrait = "human"
homeworld = event_target:planet_earth_target
traits = {
trait = "trait_adaptive"
trait = "trait_nomadic"
trait = "trait_wasteful"
trait = "trait_pc_continental_preference"
}
effect = {
save_event_target_as = human_species
}
}
create_country = {
name = "NAME_League_of_Human_Colonies"
name_list = "HUMAN1"
ship_prefix = "LHCS"
room = "personality_honorbound_warriors_room"
authority = "auth_oligarchic"
government = gov_war_council
set_graphical_culture = mammalian_01
origin = "origin_lost_colony"
species = event_target:human_species
ethos = {
ethic = "ethic_authoritarian"
ethic = "ethic_fanatic_militarist"
}
civics = {
civic = civic_cutthroat_politics
civic = civic_warrior_culture
}
flag = {
icon = {
category="spherical"
file="flag_spherical_8.dds"
}
background = {
category="backgrounds"
file="vertical.dds"
}
colors = {
"dark_green"
"yellow"
"null"
"null"
}
}
type = default
flags = { human_3 }
}
set_owner = last_created_country
create_primitive_blockers = yes
while = {
count = 4
create_pop = {
species = event_target:human_species
}
}
set_owner = last_created_country
set_capital = yes
add_district = district_farming
add_district = district_farming
add_district = district_mining
add_district = district_generator
add_building = building_capital
last_created_country = {
capital_scope = { set_name = "Eridani A II" }
set_graphical_culture = mammalian_01
}
}
}
}
This isn't working... how can I ensure earth is the human homeworld?
Thanks!
Joe
This isn't working... how can I ensure earth is the human homeworld?
Thanks!
Joe