Difference between revisions of "StandardSideFilter"
From The Battle for Wesnoth Wiki
m |
m |
||
Line 7: | Line 7: | ||
Also, [and], [or], and [not] subfilters are supported. | Also, [and], [or], and [not] subfilters are supported. | ||
+ | |||
+ | |||
+ | Interaction of SSF and side= in tags like [allow_recruit] : | ||
+ | |||
+ | selects side 4 only : | ||
+ | |||
+ | [allow_recruit] | ||
+ | side=1,4 | ||
+ | [filter_side] | ||
+ | side=4,5 | ||
+ | [/filter_side] | ||
+ | [/allow_recruit] | ||
+ | |||
+ | selects sides 1 and 4 | ||
+ | [allow_recruit] | ||
+ | side=1,4 | ||
+ | [/allow_recruit] | ||
+ | |||
+ | select sides 4 and 5 | ||
+ | [allow_recruit] | ||
+ | [filter_side] | ||
+ | side=4,5 | ||
+ | [/filter_side] | ||
+ | [/allow_recruit] |
Revision as of 19:03, 14 April 2011
From FilterWML, this is the standard way of filtering on sides. The following attributes and sub-tags are permitted:
- side: filter matches only if side number is contained in a comma-separated list. 'all' matches all sides.
- [has_unit]: filter matches only if side controls a unit matched by this StandardUnitFilter
Also, [and], [or], and [not] subfilters are supported.
Interaction of SSF and side= in tags like [allow_recruit] :
selects side 4 only :
[allow_recruit] side=1,4 [filter_side] side=4,5 [/filter_side] [/allow_recruit]
selects sides 1 and 4
[allow_recruit] side=1,4 [/allow_recruit]
select sides 4 and 5
[allow_recruit] [filter_side] side=4,5 [/filter_side] [/allow_recruit]