Hello everyone. I am trying to create a mod where asteroids (ice, crystal etc) can be used for asteroid bases (with 4 or 5 slots) to be able to exploit resources on a tiered basis using asteroid specific building. I don't just want a mod that makes all asteroids colonizable because then each system gets crammed with colonization icons and looks busy or messy.
I want to create an event or modifier added to all asteroid candidates of a type similar to the "terraforming candidate" modifier so that an icon appears on the candidate (like the terraforming candidate icon) rather than filling the system full of colonization icons.
I would like the event to be triggered by gaining a technology such as "asteroid colony" tech or something like that. Then the localization would apply to all candidate asteroids existing and uncovered by future survey etc.
And it is breaking my brain - I'm sure it can be done and I found this tech code which may help me but I don't understand the necessity or importance for the code lines such as "prereqfor_desc" or "diplo_action" etc.
it is entirely possible my brain isn't built to get my head around how to do this so please treat me with baby gloves.
I was going to add the event as a global modifier triggered by the technology - can it be done????
code:
#Climate Transformation
tech_asteroid_colony = {
cost = @tier1cost1
area = society
tier = 1
category = { new_worlds }
prerequisites = { "tech_colonization_1" }
weight = @tier1weight1
# unlocks additional terraforming-options
prereqfor_desc = {
diplo_action = {
title = "TECH_UNLOCK_TERRAFORMING_NUKED_CHANGE_TITLE"
desc = "TECH_UNLOCK_TERRAFORMING_NUKED_CHANGE_DESC"
}
}
weight_modifier = {
modifier = {
factor = 1.25
has_tradition = tr_expansion_adopt
}
modifier = {
factor = value:tech_weight_likelihood
research_leader = {
area = society
has_trait = "leader_trait_expertise_new_worlds"
}
}
}
ai_weight = {
factor = @terraforming_tech_ai_factor
modifier = {
factor = 1.25
research_leader = {
area = society
has_trait = "leader_trait_expertise_new_worlds"
}
}
modifier = {
factor = 5
has_origin = origin_life_seeded
}
modifier = {
factor = 5
any_system_within_border = {
any_system_planet = {
is_planet_class = pc_nuked
}
}
}
}
}
I want to create an event or modifier added to all asteroid candidates of a type similar to the "terraforming candidate" modifier so that an icon appears on the candidate (like the terraforming candidate icon) rather than filling the system full of colonization icons.
I would like the event to be triggered by gaining a technology such as "asteroid colony" tech or something like that. Then the localization would apply to all candidate asteroids existing and uncovered by future survey etc.
And it is breaking my brain - I'm sure it can be done and I found this tech code which may help me but I don't understand the necessity or importance for the code lines such as "prereqfor_desc" or "diplo_action" etc.
it is entirely possible my brain isn't built to get my head around how to do this so please treat me with baby gloves.
I was going to add the event as a global modifier triggered by the technology - can it be done????
code:
#Climate Transformation
tech_asteroid_colony = {
cost = @tier1cost1
area = society
tier = 1
category = { new_worlds }
prerequisites = { "tech_colonization_1" }
weight = @tier1weight1
# unlocks additional terraforming-options
prereqfor_desc = {
diplo_action = {
title = "TECH_UNLOCK_TERRAFORMING_NUKED_CHANGE_TITLE"
desc = "TECH_UNLOCK_TERRAFORMING_NUKED_CHANGE_DESC"
}
}
weight_modifier = {
modifier = {
factor = 1.25
has_tradition = tr_expansion_adopt
}
modifier = {
factor = value:tech_weight_likelihood
research_leader = {
area = society
has_trait = "leader_trait_expertise_new_worlds"
}
}
}
ai_weight = {
factor = @terraforming_tech_ai_factor
modifier = {
factor = 1.25
research_leader = {
area = society
has_trait = "leader_trait_expertise_new_worlds"
}
}
modifier = {
factor = 5
has_origin = origin_life_seeded
}
modifier = {
factor = 5
any_system_within_border = {
any_system_planet = {
is_planet_class = pc_nuked
}
}
}
}
}