Adding specialist buffs to leaf techs

omniclast

Prince
Joined
Aug 27, 2014
Messages
478
New modder, working on a mod to make specialists more useful and dynamic.

I'd like to have certain techs increase specific specialist yields, the same way some techs buff improvement yields. Turns out there is no built-in table to do this, so I'm looking to learn how to create one if that's possible.

Improvement buffs use a table called Improvement_TechYieldChanges. I'd like to create the same table, but have it select SpecialistType instead of ImprovementType. How would I go about doing this? (Really hoping the answer is not, "you need DLL")

If there isn't a way to do this, the only (much less elegant) workaround I can think of is to create national wonders that buff specialists, because there is a Building_SpecialistYieldChanges table. I'd appreciate any other suggestions.
 
In civ5 there was an event that fired when a player acquired a tech. Assuming it still exists in BE I could write some lua that would detect when a player acquired a specific tech and would provide the player a building when they got the technology.

Once I finish that the rest could be done with just XML. It would involve creating an unbuildable building that provided +1 specialistYieldChange and adding a row in a new XML table I would provide that linked the tech to that building.
 
Back
Top Bottom