odd movement attribute deprecated
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.
odd movement attribute deprecated
Yet another common feature of WML appears to be deprecated
The only place I have movement as an attribute is when I create units on the fly in [unit] then modify existing unit type e.g.
The odd thing is this seems to still be part of [effect]
Just wondering if anyone knows what is going on here? I do have movement= in some original spawning units but the above does say it's an attribute so I assume this is to do with my on the fly unit menus and [effect]....
Code: Select all
warning unit: Unknown attribute 'movement' discarded.
Code: Select all
[effect]
apply_to=movement
set=5
[/effect]
https://wiki.wesnoth.org/Effectwmlmovement: modifies the unit's movement points.
increase: maximum movement is increased by this amount. It can be positive, negative, or specified as a percentage.
set: maximum movement is set to a specific value.
Just wondering if anyone knows what is going on here? I do have movement= in some original spawning units but the above does say it's an attribute so I assume this is to do with my on the fly unit menus and [effect]....
Maintainer of Conquest (Original Gameplay), Conquest+, Conquest+ Space/Ranged, Chaoz Battle of the Wizards, Lazersquad (squad game), WesCraft (building MP game)
Re: odd movement attribute deprecated
This is not attribute. Attribute would be movement=something.
Re: odd movement attribute deprecated
I hashed # out all 'movement=' instances but still got the same report in the log...
Maintainer of Conquest (Original Gameplay), Conquest+, Conquest+ Space/Ranged, Chaoz Battle of the Wizards, Lazersquad (squad game), WesCraft (building MP game)
Re: odd movement attribute deprecated
Then you try to assign something to that attribute in some other way. This warning is based on https://github.com/wesnoth/wesnoth/blob ... it.cpp#L95 list.