mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add get_front_face() get_back_face() get_cards_from_link()
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Function: get_back_face
|
||||
|
||||
--Usage--
|
||||
> get_back_face(input: card)
|
||||
|
||||
Inspects a given [[type:card]]'s links to find one of type "Back Face", and returns the linked card.
|
||||
Returns nil if no link of type "Back Face", or no card was found.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
| @input@ [[type:card]] The card whose links we'll inspect.
|
||||
| @set@ [[type:set]] The set in which to look. This can be omited since 'set' is a predefined variable.
|
||||
@@ -1,10 +1,10 @@
|
||||
Function: get_card_from_link
|
||||
Function: get_cards_from_link
|
||||
|
||||
--Usage--
|
||||
> get_card_from_link(card: card, "link type")
|
||||
> get_cards_from_link(card: card, input: "link type")
|
||||
|
||||
Inspects a given [[type:card]]'s links to find one of the given type, and returns the linked card.
|
||||
Returns nil if no card was found.
|
||||
Inspects a given [[type:card]]'s links to find those of the given type, and returns an array containing the linked cards.
|
||||
Returns an empty array if no link of the given type, or no card was found.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
@@ -0,0 +1,12 @@
|
||||
Function: get_front_face
|
||||
|
||||
--Usage--
|
||||
> get_front_face(input: card)
|
||||
|
||||
Inspects a given [[type:card]]'s links to find one of type "Front Face", and returns the linked card.
|
||||
Returns nil if no link of type "Front Face", or no card was found.
|
||||
|
||||
--Parameters--
|
||||
! Parameter Type Description
|
||||
| @input@ [[type:card]] The card whose links we'll inspect.
|
||||
| @set@ [[type:set]] The set in which to look. This can be omited since 'set' is a predefined variable.
|
||||
@@ -109,8 +109,10 @@ These functions are built into the program, other [[type:function]]s can be defi
|
||||
| [[fun:get_card_styling]] Get the styling data of a [[type:card]].
|
||||
| [[fun:get_card_stylesheet]] Get the stylesheet of a [[type:card]].
|
||||
| [[fun:get_card_from_uid]] Find the [[type:card]] with the given uid.
|
||||
| [[fun:get_card_from_link]] Find a [[type:card]] that has the given link type to the given [[type:card]].
|
||||
| [[fun:has_link]] Determine if the given the given [[type:card]] has a link of the given type.
|
||||
| [[fun:get_cards_from_link]] Find all [[type:card]]s that have the given link type to the given [[type:card]].
|
||||
| [[fun:get_front_face]] Find a [[type:card]] that has the link type "Front Face" to the given [[type:card]].
|
||||
| [[fun:get_back_face]] Find a [[type:card]] that has the link type "Back Face" to the given [[type:card]].
|
||||
| [[fun:has_link]] Determine if the given [[type:card]] has a link of the given type.
|
||||
|
||||
! HTML export <<<
|
||||
| [[fun:to_html]] Convert [[type:tagged text]] to html.
|
||||
|
||||
Reference in New Issue
Block a user