Tech Tree Availability Constants
Posted: Sat Aug 07, 2021 8:25 am
I created code for The General with defconsts to specify which units, techs, and buildings were available for each civ, and I figured this code could be helpful for others as well. I believe the info is correct across all game versions. I'll try to keep this file updated as new DE updates are released.
With an AI that loads this file, you can use up-compare-const to check if the object or tech is available in the player's civ tech tree without having to use #load-ifs or (civ-selected):
(defrule
(up-compare-const PALADIN-AVAILABLE == YES)
=>
(chat-to-all "Paladin is available in my civ's tech tree!")
)
The Civ Tech Tree Constants.per file lists which techs a civ has available. The Civ Unique Constants.per redefines my-unique-unit-upgrade, my-unique-research, and my-second-unique-research for each civ, as well as adding constants that specify the unique unit's attack and armor upgrade types at the blacksmith.
With an AI that loads this file, you can use up-compare-const to check if the object or tech is available in the player's civ tech tree without having to use #load-ifs or (civ-selected):
(defrule
(up-compare-const PALADIN-AVAILABLE == YES)
=>
(chat-to-all "Paladin is available in my civ's tech tree!")
)
The Civ Tech Tree Constants.per file lists which techs a civ has available. The Civ Unique Constants.per redefines my-unique-unit-upgrade, my-unique-research, and my-second-unique-research for each civ, as well as adding constants that specify the unique unit's attack and armor upgrade types at the blacksmith.