Traits and names along side races.
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.
-
- Posts: 153
- Joined: September 5th, 2018, 5:21 pm
- Location: Albania
Traits and names along side races.
So i made a unit part of the monster race, it showed up in game without a name or trait (like intelligent or strong). So how do you makes the links within these. Also how do you make a brand new race?
Competitive Wesnoth. For the fans by the fans.
Re: Traits and names along side races.
TheVilebeggar wrote: ↑April 1st, 2019, 1:02 pm So i made a unit part of the monster race, it showed up in game without a name or trait (like intelligent or strong). So how do you makes the links within these.
monster
race has num_traits=0
, meaning monsters don't get random traits by default. If you want them to get traits you'll need to assign them explicitly.https://github.com/wesnoth/wesnoth/blob ... #L293-L300
With the [race] tag: https://wiki.wesnoth.org/UnitsWML#.5Brace.5D
Re: Traits and names along side races.
You can override
If you want to avoid one of the standard traits like quickm, set also
num_traits=1
in the [unit_type]
as well.If you want to avoid one of the standard traits like quickm, set also
ignore_race_traits=yes
, and add a trait inside the unit_type, e.g. with the {TRAIT_FEARLESS} macro.Try out the dark board theme.
-
- Posts: 153
- Joined: September 5th, 2018, 5:21 pm
- Location: Albania
Re: Traits and names along side races.
Is there any good example in the base game about this subject i could look at?
Competitive Wesnoth. For the fans by the fans.