mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add get_card_styling function for export scripts
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
Function: get_card_styling
|
||||
|
||||
--Usage--
|
||||
> get_card_styling(card, set: set)
|
||||
|
||||
Get the styling data of a [[type:card]].
|
||||
|
||||
This is for use in exporter scripts. In card scripts, use the "styling" predefined variable instead.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
| @input@ [[type:card]] The card you want to retrieve the styling data from.
|
||||
| @set@ [[type:set]] The set the card belongs to. In an exporter script, this can be ommited since "set" is a predefined variable.
|
||||
|
||||
--Examples--
|
||||
> # Retrieve the value "is foil" from the card's styling options
|
||||
> card_is_foil := get_card_styling(card)["is_foil"] or else false
|
||||
@@ -97,6 +97,7 @@ These functions are built into the program, other [[type:function]]s can be defi
|
||||
|
||||
! Cards <<<
|
||||
| [[fun:new_card]] Construct a new [[type:card]] object.
|
||||
| [[fun:get_card_styling]] Get the styling data of a [[type:card]].
|
||||
|
||||
! HTML export <<<
|
||||
| [[fun:to_html]] Convert [[type:tagged text]] to html.
|
||||
|
||||
Reference in New Issue
Block a user