Predefined variables

Predefined variables

When evaluating scripts several variables are predefined containing useful information. Aside from the built in functions the following variables are provided:

Variable Type When available? Description
game game always The current game, the same as set.game
set set always The current set.
stylesheet stylesheet not in the init script of the game The current stylesheet
card card not in init scripts or when exporting The current card.
card_style field map of styles where card is available Style properties for the current card, the same as stylesheet.card_style.
styling field map of values where card is available Styling options for the stylesheet/card.
value value when evaluating a field's script or default script Current value in the field.
options field map of values when exporting Options of the export template.

Variables are only available where they make sense.