Creating new text

washy

Chieftain
Joined
Feb 9, 2015
Messages
61
There is something i´m missing for creating new text?

<Root>
<Entry>
<zType>TEXT_EFFECTUNIT_FOCUS4</zType>
<English>Focus IV</English>
</Entry>
</Root>

i put that in a file called text-effectUnit-add in the Infos

I also tried with en-us but i never get to see the text
 
What do you attach the text to?

The XML is correct, though it should use en-US preferably, like this:

<Entry>
<zType>TEXT_EFFECTUNIT_FOCUS4</zType>
<en-US>Focus IV</en-US>
</Entry>

But that just adds a text entry. You need an EffectUnit that refers to it in your mod, and you need a way to obtain that EffectUnit, such as a promotion.
 
yes, i have the effect and the promotion working, but in the encyclopedia say TEXT_TYPE_NONE
also you can choose the promotion for the units


Code:
<Entry>
        <zType>EFFECTUNIT_FOCUS4</zType>
        <Name>TEXT_EFFECTUNIT_FOCUS4</Name>
        <zIconName>EFFECTUNIT_FOCUS3</zIconName>
        <Class>EFFECTUNITCLASS_FOCUS</Class>
        <iClassNum>4</iClassNum>
        <iCriticalChance>25</iCriticalChance>
</Entry>

<Entry>
        <zType>PROMOTION_FOCUS4</zType>
        <Name>TEXT_PROMOTION_FOCUS4</Name>
        <PromotionPrereq>PROMOTION_FOCUS3</PromotionPrereq>
        <EffectUnit>EFFECTUNIT_FOCUS4</EffectUnit>
        <bPriority>1</bPriority>
        <bUpgrade>1</bUpgrade>
</Entry>
 
Did you also add a TEXT_PROMOTION_FOCUS4?

When troubleshooting mods otherwise, it's helpful to post your Infos and first to check the output.txt log as it often suggests where a problem may be.
 
thank you¡

Sorry , i feel stupid now it was in front of my nose
 
Back
Top Bottom