Proto_Noob
Chieftain
- Joined
- Jan 11, 2016
- Messages
- 42
TL;DR: How do I add promotions to ONLY civilian or specific unit types THROUGH a civ's trait ability? I don't think I am running into any kind of bug, I just don't know the proper methodology. The solution should only be xml or sql based. If this is not possible, let me know.
________________________________________________________________________________
Hey, all. Been modding Civ 5 a while now and have a fair bit of confidence in my ability to mod through sql and xml files (still a noob on lua and dll modding). A problem I have run into is that I am unable to give civilian units free promotions through a civilization's trait.
So, in vox populi I notice that Denmark gives all its land units the Viking promotion. I have looked at the code, and it is simple enough. I have successfully given custom promotions to every kind of combat unit through a civilization's trait by inserting new lines into the <Trait_FreePromotionUnitCombats> table. Additionally, I have given the promotion in question to combat units through this method and it works perfectly (so I know the problem isn't the promotion or it's code). However, when I try giving it to ALL units (much less just civilians) through adding entries to the <Trait_FreePromotions> table, nothing happens. No promotions on civilians OR military units. Does that table even function? I went through the all the xml and sql files for both BNW and Vox Populi and found no instance of any file using it. Has it just been written off?
Anyway, maybe I am barking up the wrong tree. Let me know if this can be done and how. I could do a work around that utilizes unique units, but that would use up one of my two uniques, so I would really like to avoid that. Also, I am using the full vox populi mod so if there is a problem resulting from that or a work around opportunity created by that mod, take that into consideration.
________________________________________________________________________________
Hey, all. Been modding Civ 5 a while now and have a fair bit of confidence in my ability to mod through sql and xml files (still a noob on lua and dll modding). A problem I have run into is that I am unable to give civilian units free promotions through a civilization's trait.
So, in vox populi I notice that Denmark gives all its land units the Viking promotion. I have looked at the code, and it is simple enough. I have successfully given custom promotions to every kind of combat unit through a civilization's trait by inserting new lines into the <Trait_FreePromotionUnitCombats> table. Additionally, I have given the promotion in question to combat units through this method and it works perfectly (so I know the problem isn't the promotion or it's code). However, when I try giving it to ALL units (much less just civilians) through adding entries to the <Trait_FreePromotions> table, nothing happens. No promotions on civilians OR military units. Does that table even function? I went through the all the xml and sql files for both BNW and Vox Populi and found no instance of any file using it. Has it just been written off?
Anyway, maybe I am barking up the wrong tree. Let me know if this can be done and how. I could do a work around that utilizes unique units, but that would use up one of my two uniques, so I would really like to avoid that. Also, I am using the full vox populi mod so if there is a problem resulting from that or a work around opportunity created by that mod, take that into consideration.