[[action_tags]] octgn

Route:

Action Tags
Add and remove markers
The <addmarker> tag pops up a dialog to select a new marker type, which will be added to cards. This tag contains a card selector child tag, which selects the cards to which the markers are added.
If the id attribute is specified, no dialog is displayed and information from attributes id, name and qty are used instead.
Attributes:

The <removemarker id='markerId' qty='1'> tag removes markers from cards. This tag contains a card selector child tag, which selects the cards from which markers are removed.
This tag works the same way as <addmarker>, except the id attribute is not optional.
Attributes:

Count
The <count> tag counts the cards inside a group and stored the value inside a variable.
Attributes:

Create new cards
The <newcard persist="false"> pops up a dialog to select a new card type, which will be created an added to the game. This tag contains a single <property> tag, which filters the cards type amongst which the user can choose.
Attirbutes:

Decrement
The <dec> tag decrements a variable by a given amount.
Attributes:

Get/Set counter value
The <getcounter> tag reads the value of a player's counter into a variable.
Attributes:

The <setcounter> tag changes the value of a player's counter.
Attributes:

Highlight
The <highlight> tag is used to create colored borders around cards. The border persists until it is changed again. It contains a card selector tag to specify the targets of the action.
Attributes:

If-then-else
The <if> tag provides the if-then-else control structure. It must contain one of the boolean tags and the <then> tag specifying the actions to execute if the boolean condition evaluates to true. It may additionally contain an <else> tag as well to specify the actions to execute if the boolean condition evaluates to false. The <then> and <else> tags may hold the same contents as the action tags. Nested if's are therefore possible.
Example:
<if> <eq left="$n" right="1" /> <then> <print text="{me} flips heads" /> </then> <else> <print text="{me} flips tails" /> </else> </if>

Increment
The <inc> tag increments a variable by a given amount.
Attributes:

Move
The <move> tag is used to move cards to another group. It contains a card selector tag to specify the targets of the action.
Attributes:

Mute
The <mute> tag is used to mute and un-mute something. But what?
Attributes:

Print
The <print> tag is used to echo a message in the chat.
Attributes:

The text may contain placeholders. Known placeholders are:

Question
Example:
<question text="Draw how many cards?" default="7" var="$n" answer="positiveInt" />

Random
The <rnd> tag creates a random number between an upper and lower bound (both inclusive) and assigns it to a variable.
Attributes:

Set Rotation
The <setrot> tag rotates a card to a specified angle.
Attributes:

The <setrot90> tag rotates a card to a specified angle.
Attributes:

The <setrot180> tag rotates a card to a specified angle.
Attributes:

Set variable value
The <set /> tag defines a new variable and sets it to a constant value.
Attributes:

Shuffle
The <shuffle> tag is used to shuffle the contents of a group.
Attributes:

Stop
The <stop> tag is probably used to prematurely end a execution of an action.

Turn (face up / face down)
The <turn face="up"> tag is used to toggle cards between face up and face down. It contains a card selector tag to specify the targets of the action.
Attributes:

Toggle Rotation
The <togglerot90> tag is used to automatically toggle between 0° and 90° rotation of a card.

The <togglerot180> tag is used to automatically toggle between 0° and 180° rotation of a card.

While-do
The <while> tag provides the while-do control structure. It must contain one of the boolean tags and the <do> tag specifying the actions to execute as long as the boolean condition results to true. The <do> tag may hold the same contents as the action tags. Nested while's are therefore possible.
Example:
<while> <and> <lt left="$n" right="6" /> <lt left="0" right="$m" /> </and> <do> <inc var="$n" /> <dec var="$m" /> <move to="me.hand"> <top pile="this" /> </move> </do> </while>

action_tags, Rev. 6, Last changed on 2010-03-14 19:43, 726 page hits
Share/Save/Bookmark
Wiki hosted for free at wikihost.org || RSS-Feed