mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
19 lines
1.4 KiB
Plaintext
19 lines
1.4 KiB
Plaintext
Predefined variables
|
|
|
|
When evaluating scripts several variables are predefined containing useful information.
|
|
Aside from the [[fun:index|built in functions]] the following variables are provided:
|
|
! Variable Type When available? Description
|
|
| @game@ [[type:game]] always The current game, the same as @set.game@
|
|
| @set@ [[type:set]] always The current set.
|
|
| @stylesheet@ [[type:stylesheet]] not in the @init script@ of the game
|
|
The current stylesheet
|
|
| @card@ [[type:card]] not in @init script@s or when exporting
|
|
The current card.
|
|
| @card_style@ [[type:indexmap]] of [[type:style]]s where @card@ is available Style properties for the current card, the same as @stylesheet.card_style@.
|
|
| @extra_card@ [[type:indexmap]] of [[type:value]]s field values for the current card as defined by the stylesheet.
|
|
| @extra_card_style@ [[type:indexmap]] of [[type:style]] where @card@ is available Style properties for the current card as added by the stylesheet.
|
|
| @styling@ [[type:indexmap]] of [[type:value]]s where @card@ is available Styling options for the stylesheet/card.
|
|
| @value@ [[type:value]] when evaluating a [[type:field]]'s @script@ or @default@ script Current value in the field.
|
|
| @options@ [[type:indexmap]] of [[type:value]]s when exporting Options of the [[type:export template]].
|
|
Variables are only available where they make sense.
|