octgn
[[action_tags]]
Last edit on
May 29, 2010
8:56 PM
by Anonymous
Action Tags
Add and remove markers
TheIf the
Attributes:
-
id (The GUID of the marker to add. Optional, if this attribute is not specified a dialog box is displayed so that the user can choose which marker should be created.) -
name (If theid attribute is set and is a default marker (GUID 1 to 7), this attribute contains the name to give to the new marker. Otherwise this attribute is ignored.) -
qty (If theid attribute is set, this indicates how many markers to add to the card. Default value is 1 when not explicitely specified. If there is noid attribute,qty is ignored.)
The
This tag works the same way as
This tag may remove less markers than
Attributes:
-
id (The GUID of the marker to remove.) -
name (Ifid is a default marker (GUID 1 to 7), this attribute contains the name to give to the new marker. Otherwise this attribute is ignored.) -
qty (How many markers to remove from the card. Default value is 1 when not explicitely specified.) -
outVar (A variable (starts with a dollar $), which will be set to the number of markers actually removed.)
Count
TheYou have to specify either the
Attributes:
-
group (The identifier of the group to be counted.) -
var (The name of the variable to store the card count. Variable names start with a dollar $.)
Create new cards
TheIf it is inside a card action, a nested
Note: this tag only works on the table.
Attributes:
-
persist (When false, the created cards are destroyed if they leave the group they are created in, i.e. the table. Defaults to false if not specified.)
Decrement
TheAttributes:
-
var (The name of the variable to decrement. Variable names start with a dollar $.) -
amount (The amount to subtract from the variable. Can be another variable. Defaults to 1 if not specified.)
Get/Set counter value
TheAttributes:
-
counter (The counter name, as defined inside the game definition). -
var (The name of the variable into which the value is read. Variable names start with a dollar $.)
The
Attributes:
-
counter (The counter name, as defined inside the game definition). -
value (The new counter value. This may be either an integer constant or a variable. Variable names start with a dollar $.)
Highlight
TheAttributes:
-
color (A color name or 'none' to reset the border.)
If-then-else
TheExample:
<if>
<eq left="$n" right="1" />
<then>
<print text="{me} flips heads" />
</then>
<else>
<print text="{me} flips tails" />
</else>
</if>
Increment
TheAttributes:
-
var (The name of the variable to increment. Variable names starts with a dollar $.) -
amount (The amount to add to the variable. Can be another variable. Defaults to 1 if not specified.)
====Move
The
Attributes:
-
to (The identifier of the destination group.)
====Mute
The
Attributes:
-
muted (True to mute, false to unmute. Defaults to true if not specified.)
Attributes:
-
text (The text to be displayed.)
The text may contain placeholders. Known placeholders are:
-
{me} (The name of the player who executes the action.) -
{} (The value of a variable.) -
{this} (The name of the card or group the action is executed on.)
Question
Example:<question text="Draw how many cards?" default="7" var="$n" answer="positiveInt" />
Random
TheAttributes:
-
min (The minimum value that can be returned.) -
max (The maximum value that can be returned.) -
var (The name of the variable to store the number in. Variable names must start with a dollar $.)
Set Rotation
TheAttributes:
-
orientation (The orientation the card should be rotated to. Can be 0, 90, 180 or 270.)
The
Attributes:
-
orientation (The orientation the card should be rotated to. Can be 0 or 90.)
The
Attributes:
-
orientation (The orientation the card should be rotated to. Can be 0 or 180.)
Set variable value
TheAttributes:
-
var (The new or existing variable to define. Variable names start with a dollar $.) -
value (The integer value to set the variable to.)
Shuffle
TheAttributes:
-
group (The identifier of the group to shuffle.)
====Stop
The
Turn (face up / face down)
TheAttributes:
-
face (If "up" (resp. "down") cards are turned face up (resp. down). Otherwise the card face up/down state is toggled.)
Toggle Rotation
TheThe
While-do
TheExample:
<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>