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