Updating Trait text

Joined
Mar 23, 2006
Messages
800
Location
Adelaide, Australia
So I have created a mod that changes Haralds ability to all melee units use only one movement point to pillage and all sea raider units use all remaining movement points to pillage. I can't figure out how to change the text in the start up screen, the loading screen and the civilpedia though. So yeah, help ?
 
You need to do the following:
  • Create a sql or xml text file that contains the changed text. Change the text there.
  • In the .modinfo, you need to add the text file to the Files list. Then you need to load it in with <LocalizedText> tags. Because you need to affect the main game and the configuration screen, you'll need to do this part twice, once for Components and once for Settings.

As for the code you actually need to update Harald's ability, the SQL version would be something like this. You need to make sure the Tag matches whatever the tag for Harald's ability is.

UPDATE LocalizedText SET Text= 'This is where you type text changes' WHERE Tag='LOC_TRAIT_LEADER_THUNDERBOLT_DESCRIPTION' ;



This is all probably easiest to do if you just grab someone else's mod and look at how they structure it.
 
Top Bottom