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

Tepacana

Sergeant
16 Badges
Dec 30, 2016
84
5
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Stellaris: Synthetic Dawn
Here's an example of a condition I'm trying to use to make a weight modifier for a tech. The intention is to make it so that if the owner does not have the specified ethics and civics, a weight modifier of factor = 0 is applied.

The Stellaris wiki doesn't go into much detail on how the condition block should look relative to the rest of the system, so I'm going here to ask.

hypin thruster help.png
 

Courageous

Sergeant
43 Badges
Jan 1, 2011
66
0
  • Crusader Kings II
  • Europa Universalis IV
  • Rome: Vae Victis
  • Crusader Kings III: Royal Edition
  • Cities: Skylines
  • Pillars of Eternity
  • Cities: Skylines - After Dark
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Knights of Honor
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Sign Up
  • Age of Wonders: Planetfall - Revelations
  • Crusader Kings III
  • Supreme Ruler 2020
  • Victoria 2
  • Arsenal of Democracy
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Divine Wind
  • For The Glory
  • Stellaris: Apocalypse
  • Hearts of Iron III
  • Heir to the Throne
  • Stellaris: Synthetic Dawn
  • Lead and Gold
  • The Kings Crusade
  • Majesty 2
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Ship Simulator Extremes
  • Sword of the Stars
You should go into the common/technology/ directory and search for factor. You'll see how vanilla does it. They do not use "if," because it's implied. Just remove the "if = {" and it's matching "}" and then correct your three stanzas where you forgot to close the braces.

You'd likely also benefit from getting VSCode and the cwtools extension, which will tell you all of this (I think), before you run the game.