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

Haas Tahoe

Recruit
11 Badges
May 17, 2016
2
0
  • Europa Universalis IV
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
hey all, anyone know if there's a way to set up a new tech with 2 prerequisites? Say I wanted to create a new energy weapon that's based on lances and plasma weapons or disruptors and arc throwers (or whatever), is there an AND function I can use to require to prereqs? Is it as simple as the word AND, or do I just list both techs one after the other? Anyone know...? Thanks in advance.

tech_cool_new_hybrid_weapon_1 = {
area = physics
cost = @tier3cost1
tier = 3
category = { particles }
ai_update_type = military
prerequisites = { "tech_lasers_4 ...???... tech_plasma_3" }
weight = @tier3weight1
 
Judging by how the scripting works elsewhere, I would assume you just list them both in the { }'s. Probably on different lines for clarity's sake, aka

prerequisites = {
prereq_1
prereq_2​
}

That's the format a lot of the code uses, and it's what I'd do, just cause it's easier to read. Try it, see if it works.
 
It's possible. Here is an actual example from the original code:

Code:
prerequisites = { "tech_physics_lab_1" "tech_colonial_centralization"}