mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
624d5cba56
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@589 0fc631ac-6414-0410-93d0-97cfa31319b6
20 lines
727 B
Plaintext
20 lines
727 B
Plaintext
Function: keyword_usage
|
|
|
|
--Usage--
|
|
> keyword_usage(card: some_card)
|
|
|
|
Returns a comma separated list of the keywords that appear on the card.
|
|
|
|
For example if a card contains the keywords "Flying" and "Haste" the function will return @"Flying, Haste"@.
|
|
|
|
If a keyword appears multiple times on the card it will also appear multiple times in the output, unless @unique@ is specified.
|
|
|
|
--Parameters--
|
|
! Parameter Type Description
|
|
| @card@ [[type:card]] Card to find keywords on.
|
|
| @unique@ [[type:boolean]] (optional) Return each keyword at most once.
|
|
|
|
--Examples--
|
|
> keyword_usage(card: some_card, unique: false) == "Flying, Flying, Haste"
|
|
> keyword_usage(card: some_card, unique: true) == "Flying, Haste"
|