Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 1984

WML Workshop • Re: A lone unit.

$
0
0

Code:

[filter_location]x=30y=26[filter_adjacent_location]adjacent=s
This seems excessively complicated. Can't you just do this:

Code:

[filter_location]x=30y=27
---------

Code:

[filter]side=1[filter_location][not][filter]side=1[/filter]radius=5[/not][/filter_location][/filter]
This code in a location filter means "there must be a side 1 unit on this space, and the space the unit is on must not be within 5 spaces of a side 1 unit". So it sounds like it probably does what you want, though I suspect you could move the content of the inner filter_location into an and at the same level as the filter.

Statistics: Posted by Celtic_Minstrel — 7 minutes ago



Viewing all articles
Browse latest Browse all 1984

Trending Articles