• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Chepetico

Private
78 Badges
May 22, 2017
20
3
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Conclave
  • Crusader Kings III: Royal Edition
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings III
  • Cities: Skylines - Campus
  • Crusader Kings II: Holy Fury
  • Stellaris: Federations
  • Stellaris: Ancient Relics
  • Europa Universalis IV
  • Europa Universalis IV: Common Sense
  • Imperator: Rome Sign Up
  • Imperator: Rome Deluxe Edition
  • Victoria 2
  • Stellaris: Lithoids
  • Europa Universalis IV: Dharma
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Europa Universalis IV: Cossacks
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:

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