Difference between revisions of "StandardSideFilter"
From The Battle for Wesnoth Wiki
m |
(document [filter_side] priority over inline side=) |
||
| Line 10: | Line 10: | ||
Interaction of SSF and side= in tags like [disallow_recruit] : | Interaction of SSF and side= in tags like [disallow_recruit] : | ||
| + | In case that inline side= and [filter_side] are given, inline side= is ignored and [filter_side]side= gets priority: | ||
| − | selects side | + | selects side 4 and 5: |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
[disallow_recruit] | [disallow_recruit] | ||
| + | side=2 | ||
[filter_side] | [filter_side] | ||
side=4,5 | side=4,5 | ||
[/filter_side] | [/filter_side] | ||
[/disallow_recruit] | [/disallow_recruit] | ||
Revision as of 23:27, 8 May 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.
- [has_unit]: filter matches only if side controls a unit matched by this StandardUnitFilter note: Does not check for recall list units.
Also, [and], [or], and [not] subfilters are supported.
Interaction of SSF and side= in tags like [disallow_recruit] :
In case that inline side= and [filter_side] are given, inline side= is ignored and [filter_side]side= gets priority:
selects side 4 and 5:
[disallow_recruit]
side=2
[filter_side]
side=4,5
[/filter_side]
[/disallow_recruit]