[resistances] directly inside [unit_type]? (undocumented)

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
lea
Posts: 300
Joined: October 1st, 2016, 7:25 pm

[resistances] directly inside [unit_type]? (undocumented)

Post by lea »

looks like it is allowed to have [resistances] tag outside of [move_type] tag, like this:

Code: Select all

[unit_type]
    cost=18
    usage=scout

    id=elf-archer
    race=elf
    hitpoints=68
    [resistance]
        blade=80
        pierce=80
    [/resistance]
    movement_type=name-of-some-move-type
  [/unit_type]
    ...
but I could not find it mentioned on wesnoth's WML reference

is this feature officially supported?
should I expect it being present in future versions of Wesnoth?
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
User avatar
Ravana
Forum Moderator
Posts: 2950
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: [resistances] directly inside [unit_type]? (undocumented)

Post by Ravana »

> movement_type: See movetype. Note that the tags [movement_costs], [vision_costs], [defense], and [resistance] can be used to modify this movetype.
Post Reply