[BNW] The Help Text isn't showing up

crashburn274

Chieftain
Joined
Nov 13, 2011
Messages
10
First, a question. Is the Help text such as the one defined by "TXT_KEY_BUILDING_MILITARY_BASE_HELP" the text which appears when you hover the cursor over an icon? This question is so basic that I haven't actually found anyone else asking it and perhaps I've been assuming something incorrect.

I'm trying to create a very simple mod which causes the Military Base to grant 15 XP to new units in addition to its other effects. The units get the XP just like I wanted, but for some reason the in-game text doesn't show the changes I've made.
 
The in-game text of the tooltips is not dynamic. You have to alter the Text for the Tag called TXT_KEY_BUILDING_MILITARY_BASE_HELP to reflect any changes you make to the actual effects of a building, unit, etc.
 
I apologize if it's bad form to paste a bunch of code into the forum, but the entire mod is pretty short. Can you tell me why the text is unaltered in the game? Tthere must be something wrong with my update command. Thank you!

<GameData>
<Language_en_US>

<Update>
<Where Tag="TXT_KEY_BUILDING_MILITARY_BASE_HELP"/>
<Set Text="City must have an Arsenal. [NEWLINE][NEWLINE] New Units gain 15 XP"/>
</Update>

<Update>
<Where Tag="TXT_KEY_BUILDING_MILITARY_BASE_STRATEGY"/>
<Set Text="The Military Base is a mid-game building which increases the city's Defensive Strength by 12, Hit Points by 25, and the XP of new units by 15. The city must possess an Arsenal before a Military Base may be constructed."/>
</Update>

</Language_en_US>

<!-- Actually does something -->
<Building_DomainFreeExperiences>

<Row>
<BuildingType>BUILDING_MILITARY_BASE</BuildingType>
<DomainType>DOMAIN_LAND</DomainType>
<Experience>15</Experience>
</Row>


<Row>
<BuildingType>BUILDING_MILITARY_BASE</BuildingType>
<DomainType>DOMAIN_SEA</DomainType>
<Experience>15</Experience>
</Row>


<Row>
<BuildingType>BUILDING_MILITARY_BASE</BuildingType>
<DomainType>DOMAIN_AIR</DomainType>
<Experience>15</Experience>
</Row>

</Building_DomainFreeExperiences>





</GameData>
 
Posting code is not bad form, but it is easier to read if you use code blocks, like this except without the period characters. (if I eliminate the period characters the forum will put it in a code block but you won't be able to see the needed format commands.)

[.code]something something code-ish[./code]

The reason the actual mod is preferred is because then it can be executed by someone else in order to determine better what is going awry.
 
Back
Top Bottom