• 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.

zArngrime

Sergeant
71 Badges
Feb 10, 2006
59
0
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Pillars of Eternity
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Stellaris: Necroids
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Crusader Kings II
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
Hello, i have created a custom ringworld system, but i cannot get this event to fire at all.

it should fire once when the game starts the country that controlls it. the system spawns correctly with the flag.

Code:
namespace = special_ringworld_e
country_event = {
    id = special_ringworld_e.1
    title = OK
    desc = OK   
    hide_window = yes
   
    mean_time_to_happen = {
        months = 1
    }
   
    trigger = {
        not = { has_country_flag = special-ringworld-tech-ships }
        }   
        capital_scope = {
            solar_system = {
                has_star_flag = special_ringworld_system
            }
        }
    }
   
    immediate = {
        set_country_flag = special-ringworld-tech-ships
        
        capital_scope = {
            create_fleet = { }
            last_created_fleet = {
                set_owner = ROOT
                create_ship = {    name = random design = "Avatar" graphical_culture = "fallen_empire_01" }
                create_ship = { name = random design = "Eclipse" graphical_culture = "fallen_empire_01" }
                create_ship = { name = random design = "Eclipse" graphical_culture = "fallen_empire_01" }               
                set_location = { target = PREV distance = 45 angle = random }
            }
        }
    }
}