octgn
[[card_selectors]]
Last edit on
Mar 14, 2010
8:39 PM
by Anonymous
Card Selectors
Current Card
When executing a card action (as opposed to a group action), the tagAll in group
TheAttributes:
-
group (The identifier of the group.)
Top N cards of a pile
TheAttributes:
-
pile (The identifier of the pile.) -
count (The number of cards to select. Defaults to 1 if not specified.)
Bottom N cards of a pile
TheAttributes:
-
pile (The identifier of the pile.) -
count (The number of cards to select. Defaults to 1 if not specified.)
Nth Card of group
TheAttributes:
-
group (The identifier of the group.) -
position (The position of the card, starting with 1 = top.)
Random cards in a group
TheAttributes:
-
group (The identifier of the group.) -
count (The number of cards to select. Defaults to 1 if not specified.)
Controlled by
TheAttributes:
-
by (The player. Currently there is no known way to reference a specific opponent so the only known value is 'me'.)
Example:
<controlled by="me"> <all group="table" /> </controlled>
Owned by
TheAttributes:
-
by (The player. Currently there is no known way to reference a specific opponent so the only known value is 'me'.)
Example:
<owned by="me"> <all group="table" /> </owned>
Property
TheAttributes:
-
name (The name of the card property to compare.) -
value (The value to compare the card property with.) -
negate (If set to true the cards *not matching* the above condition will be selected. If set to false (which is default if not specified) the cards that *do match* the condition will be selected.)
Example:
<property name="Type" value="Creature"> <all group="table" /> </property>
Orientation
TheAttributes:
-
rot (The orientation to be tested. May be 0, 90, 180 or 270.) -
exact (When true the card has to be exactly at the given orientation. When false, the 180 and 90 components are tested separately, so a card oriented 270 (= 180 + 90) would match a rot="90" test. False is the default if not specified. Note that using rot="0" with exact="false" never matches.) -
negate (Optional, defaults to false. When true, the filter works the opposite way: only cards, which don't match the orientation are kept.)
Face up or down
TheExample:
<facedown> <all group="table" /> </facedown>
Highlighted cards
TheAttributes:
-
color (The specific highlight color to test. Defaults toany , which matches all highlighted cards, regardless of color. The special valuenone is recognized as well, it matches all cards, which are not highlighted.)