So how exactly do I change ingame text

criZp

Deity
Joined
Jul 19, 2013
Messages
2,003
Location
Nidaros, Norway
I'm trying to make my first mod, it's supposed to make anti-cavalry units more worthwhile to build.

I've managed to remove the innate weakness to melee-units. I've also reduced the power of the thrust-promotion from +10 down to +7, for balance.

But I'm not able to change the related text for some reason, only the values. As can be seen in the two pictures below, I've tried the <Update> method and the <Replace> method, and neither worked. So what's the clue when changing text?

problem1.jpg

problem2.jpg
 
I'm not super acquainted with the <Update> command, but it looks like the <Replace> should do just fine. The problem with your code is that you're not tagging where you actually want the update to go (I see you tried there, but the format's a bit different). Try this:

Code:
<GameData>
    <BaseGameText>
        <replace Tag="LOC_PROMOTION_THRUST_DESCRIPTION" Language="en_US">
            <Text>+7 [ICON_Strength] Combat Strength vs. melee units." </Text>
        </replace>
    </BaseGameText>
</GameData>
 
try with "LocalizedText" instead of "BaseGameText" with the "Language" entry.
 
Thanks for the replies guys, both of these alternatives worked out:

<BaseGameText>
<Replace Tag="LOC_PROMOTION_THRUST_DESCRIPTION">
<Text>+7 [ICON_Strength] Combat Strength vs. melee units." </Text>
</Replace>
</BaseGameText>

<LocalizedText>
<Replace Tag="LOC_PROMOTION_THRUST_DESCRIPTION" Language="en_US">
<Text>+7 [ICON_Strength] Combat Strength vs. melee units." </Text>
</Replace>
</LocalizedText>

Anyway, just a little bonus question in anyone wants: in what cases is it ok to disable the "affects save games" checkbox?
 
Back
Top Bottom