Finished documenting scripting system.

This means the documentation is DONE (yay!)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@606 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-08-07 18:19:14 +00:00
parent ca18e192fc
commit 57da4261a8
16 changed files with 477 additions and 10 deletions
+16
View File
@@ -0,0 +1,16 @@
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@.
| @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.