New Race

The place to post your WML questions and answers.

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.
Post Reply
Kal_Ultor
Posts: 17
Joined: April 28th, 2023, 12:01 pm
Location: Central Europe

New Race

Post by Kal_Ultor »

How do I implement the code snippet for a custom race in a campaign?

Code: Select all

[race]
    id=snail
    male_name= _ "race^Snail"
    female_name= _ "race+female^Snail"
    plural_name= _ "race^Snail"
    num_traits=2
    description= _ "..."
    markov_chain_size=2
    {HUMAN_NAMES}
[/race]
User avatar
Ravana
Forum Moderator
Posts: 3018
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: New Race

Post by Ravana »

If your issue is that {HUMAN_NAMES} is not defined, then you can remove that line.
Kal_Ultor
Posts: 17
Joined: April 28th, 2023, 12:01 pm
Location: Central Europe

Re: New Race

Post by Kal_Ultor »

I don’t know, where to put that code and if I have to reference to it in main.cfg. Sorry, for being that unspecific.
User avatar
Ravana
Forum Moderator
Posts: 3018
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: New Race

Post by Ravana »

Hard to tell without knowing more about your addon. Wesnoth expects [race] in [units], but you probably use preprocessor to have it in different file than _main.cfg.
Post Reply