... | @@ -9,7 +9,7 @@ Actions are on the second column of the effect builder. |
... | @@ -9,7 +9,7 @@ Actions are on the second column of the effect builder. |
|
|
|
|
|
If you think of an effect as a sentence, actions are the verb of the sentence.
|
|
If you think of an effect as a sentence, actions are the verb of the sentence.
|
|
|
|
|
|
> There are 2 types of actions, built-in dulst [[actions]] and Custom Actions. Built in dulst [[actions]] are at the bottom of the list and do basic things. Custom actions are built from basic actions and usually combine multiple basic actions into one more powerful custom action. All dulst templates, including [[Animal Kingdom]], come with a bunch of custom actions already created.
|
|
There are 2 types of actions, built-in dulst [[actions]] and Custom Actions. Built in dulst [[actions]] are at the bottom of the list and do basic things. Custom actions are built from basic actions and usually combine multiple basic actions into one more powerful custom action. All dulst templates, including [[Animal Kingdom]], come with a bunch of custom actions already created.
|
|
|
|
|
|
|
|
|
|
|
|
|
... | @@ -32,7 +32,9 @@ Prevent the custom action from showing up in the type requested. |
... | @@ -32,7 +32,9 @@ Prevent the custom action from showing up in the type requested. |
|
|
|
|
|
**hiddenFields**
|
|
**hiddenFields**
|
|
|
|
|
|
Enter a comma separated list of target fields to hide from the designer when they're using this action. These fields would be fields that generally do not work with that action. Hiding them here can make the UI more intuitive.
|
|
Enter a comma separated list of target fields to hide from the card designer when they're using this action. These fields would be fields that do not work with that action. Hiding them here can make the UI more intuitive.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
... | @@ -47,27 +49,27 @@ While many custom actions are pretty simple, letting card designers to just sele |
... | @@ -47,27 +49,27 @@ While many custom actions are pretty simple, letting card designers to just sele |
|
|
|
|
|
The targeting column selections the card designer makes when using the custom action is known by the custom action. You can access the selections with variables.
|
|
The targeting column selections the card designer makes when using the custom action is known by the custom action. You can access the selections with variables.
|
|
|
|
|
|
$**\_targetCards**
|
|
$**_targetCards**
|
|
|
|
|
|
References the selected cards if applicable.
|
|
References the selected cards if applicable.
|
|
|
|
|
|
$**\_target**
|
|
$**_target**
|
|
|
|
|
|
References the overall target. This can be a player such as "player1" or "player2". This can be "game". This can be selected cards, same as **\_targetCards**.
|
|
References the overall target. This can be a player such as "player1" or "player2". This can be "game". This can be selected cards, same as **_targetCards**.
|
|
|
|
|
|
$**\_targetCount**
|
|
$**_targetCount**
|
|
|
|
|
|
References the number of cards field.
|
|
References the number of cards field.
|
|
|
|
|
|
$**\_targetProperty**
|
|
$**_targetProperty**
|
|
|
|
|
|
References any property selected, works with `cardProperty`, `playerProperty`, or `gameProperty`.
|
|
References any property selected, works with `cardProperty`, `playerProperty`, or `gameProperty`.
|
|
|
|
|
|
$**\_targetValue**
|
|
$**_targetValue**
|
|
|
|
|
|
References the value selected.
|
|
References the value selected.
|
|
|
|
|
|
$**\_targetInstructions**
|
|
$**_targetInstructions**
|
|
|
|
|
|
References instructions given to players when selecting cards.
|
|
References instructions given to players when selecting cards.
|
|
|
|
|
... | @@ -82,7 +84,7 @@ Setting defaults |
... | @@ -82,7 +84,7 @@ Setting defaults |
|
|
|
|
|
Defaults can be set in the custom card properties. When a card uses a custom action, it will overwrite the default if there is an argument passed on a card. If there is not, then the default will be used.
|
|
Defaults can be set in the custom card properties. When a card uses a custom action, it will overwrite the default if there is an argument passed on a card. If there is not, then the default will be used.
|
|
|
|
|
|
In this example, which is the ["add card to hand" custom action Rule card from Animal Kingdom](https://dulst.com/neoanimalkingdom/cards/6087264/add-card-to-hand), the number of cards is set by the variable $\_targetCount.
|
|
In this example, which is the ["add card to hand" custom action Rule card from Animal Kingdom](https://dulst.com/animalkingdom/cards/6087264/add-card-to-hand), the number of cards is set by the variable $_targetCount.
|
|
|
|
|
|

|
|

|
|
|
|
|
... | @@ -100,10 +102,11 @@ Custom Parameters |
... | @@ -100,10 +102,11 @@ Custom Parameters |
|
|
|
|
|
Custom parameters can be defined on the custom card properties section of the card editor. They require these settings:
|
|
Custom parameters can be defined on the custom card properties section of the card editor. They require these settings:
|
|
|
|
|
|
param_id param_[paramID]_label
|
|
param_id
|
|
|
|
param_[paramID]_label
|
|
param_[paramID]_tooltip
|
|
param_[paramID]_tooltip
|
|
|
|
|
|
If no options are set, then this will produce a regular text field. You can access the param with $\[\_paramId\]
|
|
If no options are set, then this will produce a regular text field. You can access the param with $\[_paramId\]
|
|
|
|
|
|
param_[paramID]_radio
|
|
param_[paramID]_radio
|
|
|
|
|
... | @@ -115,3 +118,11 @@ You may also choose to to show some options: |
... | @@ -115,3 +118,11 @@ You may also choose to to show some options: |
|
param_[paramID]_option_[optionId]_label
|
|
param_[paramID]_option_[optionId]_label
|
|
param_[paramID]_option_[optionId]_tooltip
|
|
param_[paramID]_option_[optionId]_tooltip
|
|
|
|
|
|
|
|
|
|
|
|
Relabeling Existing Parameters
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Your custom action might need to relabel default parameters that have non matching tooltips or labels due to your different specific uses for them. Relabel by setting these label and tooltip properties, but without the initial `param_id` (very important).
|
|
|
|
|
|
|
|
param_[paramID]_label
|
|
|
|
param_[paramID]_tooltip |