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

WML Workshop • A lone unit.

$
0
0
Hi, I need to double check something with you. I am just writing a Lurker Micro AI that takes around 70 lines and my brain starts tripping.

If I want to say "only approach this unit if it is alone, i.e., has no buddies in the radius of 5", would that be correct? Or would it catch the approached (lone) unit in question?

Code:

[filter_location]x=30y=26[filter_adjacent_location]adjacent=s[filter]side=1[filter_location][not][filter]side=1[/filter]radius=5[/not][/filter_location][/filter][/filter_adjacent_location][/filter_location]

Statistics: Posted by BajMic — Yesterday, 10:31 pm



Viewing all articles
Browse latest Browse all 1164

Trending Articles