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

WML Workshop • Re: [scroll_to_unit] seeing side filter

$
0
0
Not sure if this helps since it sounds like you're doing this in Lua, but in WML, I think you could accomplish that filter like this (I haven't tested this).

Code:

[scroll_to_unit]#target unit filterhighlight=yes[for_side][has_unit]#target unit filter[/has_unit][or][has_enemy][has_unit]#target unit filtervisible=yes[/has_unit][/has_enemy][/or][or][has_ally][has_unit]#target unit filtervisible=yes[/has_unit][/has_ally][/or][/for_side][/scroll_to_unit]

Statistics: Posted by CookieLord — Yesterday, 4:51 pm



Viewing all articles
Browse latest Browse all 1804

Trending Articles