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

Frenetic_Calm

Corporal
43 Badges
Oct 1, 2015
26
0
  • Crusader Kings II: Charlemagne
  • Stellaris: Synthetic Dawn
  • Knights of Honor
  • Stellaris: Apocalypse
  • Crusader Kings II
  • Sengoku
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Stellaris: Necroids
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Cities: Skylines Industries
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • BATTLETECH
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Age of Wonders III
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
I'm just getting into modding events.

I'm trying to make an event that will fire on a particular building construction then modify the species. this is where I'm at.

on_actions

#A building construction has been completed.
# This = Planet
# From = Tile
on_building_complete = {
events = {
custom.1
}
}


events

planet_event = {
id = custom.1
title = "custom.1.name"
desc = "custom.1.desc"
picture = GFX_evt_cybernetics


mean_time_to_happen = {
months = 1
}

immediate = {
planet = {
random_pop = {
limit = {
NOT = {
is_pop = ROOT
has_trait = trait_faithful
}
is_same_species = owner
is_enslaved = no
is_being_purged = no
is_robot_pop = no
}
save_event_target_as = non_modified_pop_1
}
}
planet = {
planet_event = { id = custom.2 }
}
}

}


planet_event = {
id = custom.2
title = "custom.2.name"
desc = "custom.2.desc"
picture = GFX_evt_cybernetics

is_triggered_only = yes

option = {
name = WORRYING
custom_tooltip = custom.2.tooltip
hidden_effect = {
modify_species = {
species = FROM
add_trait = trait_custom
}
}
}
}





I can't even get the event to fire. Like I said, I just go into modding events so it's probably lack of knowledge.
I searched up and down the forums but have yet to see anyone make an event fire on building construction.

Thanks