[[card_selectors]] octgn

Route:[[card_selectors]]

Card Selectors
Current Card
When executing a card action (as opposed to a group action), the tag <this /> refers to the card, whose action is being executed.

All in group
The <all group="group" /> tag selects all cards in the specified group.
Attributes:

Top N cards of a pile
The <top pile="pile" count="1" /> tag selects the top n cards in the specified pile.
Attributes:

Bottom N cards of a pile
The <bottom pile="pile" count="1" /> tag selects the bottom n cards in the specified pile.
Attributes:

Nth Card of group
The <at group="group" position="position" /> tag selects the Nth card of a group (1 = top of piles).
Attributes:

Random cards in a group
The <random group="group" count="1" /> tag selects cards randomly in a group.
Attributes:

Controlled by
The <controlled by="player"> tag selects all cards from a collection of cards that are controlled by the specified player. This tag must contain one card selector child.
Attributes:

Example:
<controlled by="me"> <all group="table" /> </controlled>

Owned by
The <owned by="player"> tag selects all cards from a collection of cards that are owned by the specified player. This tag must contain one card selector child.
Attributes:

Example:
<owned by="me"> <all group="table" /> </owned>

Property
The <property name="propertyname" value="propertyvalue" negate="false"> tag selects all card from a collection of cards where the specified property matches the specified value. This tag must contain one card selector child.
Attributes:

Example:
<property name="Type" value="Creature"> <all group="table" /> </property>

Orientation
The <orientation rot="90" exact="false"> tag selects only cards with a specific orientation from a collection of cards. This tag must contain one card selector child tag.
Attributes:

Face up or down
The <faceup> and <facedown> tags selects only the face up (resp. down) cards from a collection of card. This tag must contain one card selector child tag.

Example:
<facedown> <all group="table" /> </facedown>

Highlighted cards
The <highlighted color="any" /> tag selects only cards which are highlighted (or not!). This tag must contain one card selector child tag.
Attributes:

card_selectors, Rev. 6, Last changed on 2009-08-26 10:37, 406 page hits
Share/Save/Bookmark
Wiki hosted for free at wikihost.org || RSS-Feed