Hello,
I am trying to add Date Requirements to certain techs To help control when tech start to appear. Does anyone know what the code would look like to make it so that For Example:
The Battleship Tech does not appear until 2325?
This is the Current Battle Ship Tech-
tech_battleships = {
cost = @tier4cost1
area = engineering
tier = 4
category = { voidcraft }
prerequisites = { "tech_cruisers" }
weight = @tier4weight1
## unlock battleships
prereqfor_desc = {
ship = {
title = "TECH_UNLOCK_BATTLESHIP_CONSTRUCTION_TITLE"
desc = "TECH_UNLOCK_BATTLESHIP_CONSTRUCTION_DESC"
}
}
modifier = {
country_command_limit_add = 10
}
weight_modifier = {
modifier = {
factor = 0.1
NOT = { years_passed > 50 }
}
modifier = {
factor = 10
any_neighbor_country = {
has_technology = tech_battleships
}
}
modifier = {
factor = 2
years_passed > 60
}
modifier = {
factor = 3
years_passed > 65
}
modifier = {
factor = 4
years_passed > 70
}
modifier = {
factor = 1.25
has_tradition = tr_supremacy_adopt
}
modifier = {
factor = 1.25
research_leader = {
area = engineering
has_trait = "leader_trait_expertise_voidcraft"
}
}
}
ai_weight = {
factor = 100 #higher factor due to battleship hull
modifier = {
factor = 1.25
research_leader = {
area = engineering
has_trait = "leader_trait_expertise_voidcraft"
}
}
}
}
Would it be as simple as changing this part of the code to add more time to it?
weight_modifier = {
modifier = {
factor = 0.1
NOT = { years_passed > 50 }
}
Or, Does this still give it a possibility for it to show up before that time, As the way I am reading that is that just reduces the chances not just blocking it correct?
Thank you for anyhelp that is provided.
I am trying to add Date Requirements to certain techs To help control when tech start to appear. Does anyone know what the code would look like to make it so that For Example:
The Battleship Tech does not appear until 2325?
This is the Current Battle Ship Tech-
tech_battleships = {
cost = @tier4cost1
area = engineering
tier = 4
category = { voidcraft }
prerequisites = { "tech_cruisers" }
weight = @tier4weight1
## unlock battleships
prereqfor_desc = {
ship = {
title = "TECH_UNLOCK_BATTLESHIP_CONSTRUCTION_TITLE"
desc = "TECH_UNLOCK_BATTLESHIP_CONSTRUCTION_DESC"
}
}
modifier = {
country_command_limit_add = 10
}
weight_modifier = {
modifier = {
factor = 0.1
NOT = { years_passed > 50 }
}
modifier = {
factor = 10
any_neighbor_country = {
has_technology = tech_battleships
}
}
modifier = {
factor = 2
years_passed > 60
}
modifier = {
factor = 3
years_passed > 65
}
modifier = {
factor = 4
years_passed > 70
}
modifier = {
factor = 1.25
has_tradition = tr_supremacy_adopt
}
modifier = {
factor = 1.25
research_leader = {
area = engineering
has_trait = "leader_trait_expertise_voidcraft"
}
}
}
ai_weight = {
factor = 100 #higher factor due to battleship hull
modifier = {
factor = 1.25
research_leader = {
area = engineering
has_trait = "leader_trait_expertise_voidcraft"
}
}
}
}
Would it be as simple as changing this part of the code to add more time to it?
weight_modifier = {
modifier = {
factor = 0.1
NOT = { years_passed > 50 }
}
Or, Does this still give it a possibility for it to show up before that time, As the way I am reading that is that just reduces the chances not just blocking it correct?
Thank you for anyhelp that is provided.