Is there a way to prevent advancing to the next era unless all Techs from a previous era are researched first? Basically, what I'm trying to do is each Era will have a "mini-tech" tree associated with it, and in order to advance to the next era, all the Techs from that era must be researched before advancing.
I found a way to do it without any help from LUA: Basically, I would make all the "beginning" techs for a certain era PrereqTech all the "ending" techs of the era before it. So for example: if the TechTree for the Ancient Era ended with Writing, The Wheel, and Bronze Working, then all the beginning techs for Classical Era would each require all three of these techs.
The problem with this is, once you do an entire game's worth of TechTrees this way, the game takes EXTREMELY long to load, and I'm sure you can imagine why.
So what I need to know is, is there an easier way to accomplish this? Would there be some kind of code that can be written in LUA that would prohibit you from entering the next era until all of the current era's techs are researched first?
I found a way to do it without any help from LUA: Basically, I would make all the "beginning" techs for a certain era PrereqTech all the "ending" techs of the era before it. So for example: if the TechTree for the Ancient Era ended with Writing, The Wheel, and Bronze Working, then all the beginning techs for Classical Era would each require all three of these techs.
The problem with this is, once you do an entire game's worth of TechTrees this way, the game takes EXTREMELY long to load, and I'm sure you can imagine why.
So what I need to know is, is there an easier way to accomplish this? Would there be some kind of code that can be written in LUA that would prohibit you from entering the next era until all of the current era's techs are researched first?