Filter all reachable locations for a unit?
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.
Filter all reachable locations for a unit?
Is there a simple way to filter all locations that a unit can reach?
If the unit is a flying unit that has 1 movement cost over everything I can just use radius = MP remaining, but most units aren't like that. Mounted units are especially annoying because there can be holes (mountains, deep water, etc.) in the large area they can reach.
If the unit is a flying unit that has 1 movement cost over everything I can just use radius = MP remaining, but most units aren't like that. Mounted units are especially annoying because there can be holes (mountains, deep water, etc.) in the large area they can reach.
Re: Filter all reachable locations for a unit?
If this is in a context where you can run
[store_reachable_locations]
first, then you could use StandardLocationFilter's find_in=
attribute.