Strings file formats

Here are posted guides on json editing, image creation, and all aspects of helping with the game
Post Reply
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Strings file formats

Post by Stratego (dev) »

In strings file you can name things in game here is the list of the special things

General
You need to escape the ' character: like this: \'

In "alternative" (eg. AOS/AOF) level strings:

Unit/tech name
exact unit type name

Code: Select all

<string name="UNIT_CORSAIR_SHIP">Corsair Ship</string>
<string name="TECH_ELEPHANT_RUN">Elephant Run</string>
Unit/tech descriptions
exact unit type name with extra _TXT_ in it after UNIT or TECH

Code: Select all

    <string name="UNIT_TXT_CORSAIR_SHIP">A specialist ship/crew for a hire. Mainly used to capture the ships, not destroy them. But when the damage would be too great or no other option to survive - it can also destroy using cannons. Unique in versality - they often had many contacts to buy or sell ships quickly, so could even appear somewhere else to fight. It\'s also often more safe to quickly get rid of war ships and just get easier transportable goods instead.</string>
 <string name="TECH_TXT_ELEPHANT_RUN">Enables all elephant units to sacrifice action for +2 movement this turn.</string>
Effect name:
exact effect type name

Code: Select all

<string name="EFFECT_GUN_SHOT_DAMAGE">Gun Damage</string>
Terrain name
TERR_<terrain type name>

Code: Select all

<string name="TERR_TERRAINS_PLAINSWALKABLE">plains</string>
Categories:
By their exact category name

Code: Select all

    <string name="U_LEADER">Leader</string>
    <string name="U_CONVINCER">Convincer</string>
    <string name="U_MERCENARY_LEADER">Mercenary Leader</string>
In "alternative" (eg. AOS/AOF) NoN TRANSLATABLE level strings:

Skin pack names:
<pack name>__S

Code: Select all

<string name="TEMPEST__S">Tempest</string>

In core strings file:

Specunitactions:
SPEC_<spec name>

Code: Select all

    <string name="SPEC_ATTACK_FIRST_STRIKE">First strike</string>
    <string name="SPEC_CAN_NOT_COUNTERATTACK">No counter attack</string>
Effect spec actions:
ESPEC_<name>

Code: Select all

    <string name="ESPEC_BYPASS_SPELL_RESISTANCE">Ignores Spell Resistance</string>
    <string name="ESPEC_RESISTED_BY_DODGE_MELEE">Resisted by Melee Dodge</string>
Post Reply

Return to “How-to's”