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

Foxycfreezy

Recruit
97 Badges
Nov 11, 2009
8
0
  • Victoria 2: A House Divided
  • Hearts of Iron III
  • Semper Fi
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Apocalypse
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - Parklife
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Fury
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Shadowrun: Dragonfall
  • Stellaris: Necroids
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines - Campus
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Europa Universalis IV
  • Shadowrun Returns
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Magicka 2
  • Europa Universalis III Complete
  • BATTLETECH
  • Europa Universalis III Complete
  • Europa Universalis IV: Golden Century
  • Teleglitch: Die More Edition
  • Victoria 2
  • 500k Club
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Parklife Pre-Order
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.