... | ... | @@ -30,9 +30,12 @@ Prevent the custom action from showing up in any types other than the type reque |
|
|
|
|
|
Prevent the custom action from showing up in the type requested.
|
|
|
|
|
|
**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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Working with custom actions
|
|
|
===========================
|
... | ... | @@ -42,10 +45,8 @@ Letting the card designer control the action |
|
|
|
|
|
While many custom actions are pretty simple, letting card designers to just select it and go, some will want the designer to select options.
|
|
|
|
|
|
|
|
|
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**
|
|
|
|
|
|
References the selected cards if applicable.
|
... | ... | @@ -60,8 +61,7 @@ References the number of cards field. |
|
|
|
|
|
$**\_targetProperty**
|
|
|
|
|
|
References any property selected, works with cardProperty, playerProperty, or gameProperty.
|
|
|
|
|
|
References any property selected, works with `cardProperty`, `playerProperty`, or `gameProperty`.
|
|
|
|
|
|
$**\_targetValue**
|
|
|
|
... | ... | @@ -71,36 +71,29 @@ $**\_targetInstructions** |
|
|
|
|
|
References instructions given to players when selecting cards.
|
|
|
|
|
|
|
|
|
To give card designers the ability to make choices in the action column use the action parameters under rule card triggers to let card designers have the same access to option fields in your custom action as you would have in base actions.
|
|
|
|
|
|
These custom actions can be later referenced by the field name. Examples: `$_magnitude`, `$_player`, `$_location`.
|
|
|
|
|
|
These custom actions can be later referenced by the field name. Examples: $\_magnitude, $\_player, $\_location.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
_targetCount is set as 1 on the card itself.
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
This makes 1 the default for this action instead of undefined, allowing the card designer to not put anything in this field if they wish.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Custom Parameters
|
|
|
-----------------
|
... | ... | |