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

WML Workshop • Re: StandardUnitFilter, adjacent to tile

$
0
0
I think I would suggest using [filter_adjacent_location] instead of [filter_adjacent]. As you suspected, [filter_adjacent] requires a unit to be present (it is, after all, part of StandardUnitFilter).

Something like this (untested):

Code:

[harm_unit][filter_location][filter_adjacent_location]x,y=$hit_locs[$i].x,$hit_locs[$i].y[/filter_adjacent_location][/filter_location][/harm_unit]

Statistics: Posted by Celtic_Minstrel — Yesterday, 11:46 pm



Viewing all articles
Browse latest Browse all 1444

Trending Articles