Custom race doesn't work
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Custom race doesn't work
Some units should have a custom race. They don't have, though.
That's the race code:
This is inside the data folder of my campaign. I used "race=AGK Insects" inside the unit file to apply the race.
That's the race code:
Code: Select all
[race]
id=AGK Insects
name=insects
num_traits=2
markov_chain_size=2
male_name= _ "race^Insect"
female_name= _ "race+female^Insect"
plural_name= _ "race^Insect"
description= _ ""
ignore_global_traits=yes
{TRAIT_STRONG}
{TRAIT_RESILIENT}
{TRAIT_QUICK}
{TRAIT_HEALTHY}
[/race]
My campaigns: Princess Nilwyn (available) & Home of the Undead (available)
Re: Custom race doesn't work
Judging by data/core/units.cfg,
[race]
should be enclosed by [+units]...[/units]
.Re: Custom race doesn't work
IIRC, WML has trouble dealing with empty strings. You might want to comment the
description= _ ""
line out or do something like description= _ "will follow soon"
.Developer of Project Haldric
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
Add-ons: Millennium Era, Vision of a Shaman, A New Home
Art: Bitron's Art Thread
Tools: WML Syntax Highlighter for VS Code
- Celtic_Minstrel
- Developer
- Posts: 2290
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Custom race doesn't work
I've never heard of issues with empty strings in WML. An empty translatable string is pointless mind you (but I think wmlxgettext will just ignore it), but
description=""
should not cause any problems.