Religion Help Text

deanej

Deity
Joined
Apr 8, 2006
Messages
4,859
Location
New York State
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?
 
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.
 
Top Bottom