View Full Version : Religion Help Text

Dec 26, 2009, 02:54 PM
I've used python to cause civs that have a certain state religion to get 2 XP when a unit is created in a city with that religion. I tried adding help text so that players would be aware of this fact and got an XML error. I looked at the schema file only to discover to my horror that religions can't get help text! How can I link this in so the text is displayed?

Dec 26, 2009, 06:10 PM
Well, you could clone the <Help> tag from some other XML file to CvReligionInfo in the SDK, and add a function to access it.

I imagine you'd then need to make the religion text functions in CvGameTextMgr read this so that it's added to the pedia and in-game display.

Dec 27, 2009, 02:28 PM
Thankfully the Help tag is a global tag so I only needed to add a couple if statements to CvGameTextMgr.cpp.