
Prototype: GemRB.SetVar(VariableName, Value)

Description: Set a Variable of the Global Dictionary. This is an independent dictionary from the gamescript. It contains configuration variables, and provides a flexible interface between guiscript and the engine core. There are some preserved names that are referenced from the core, these are described in different places.
variable   described in
PlayMode  - LoadGame
*Window   - HideGUI
*Position - HideGUI
Progress  - data_exchange

Parameters: VariableName - the name of the variable must be shorter than 32 bytes
            Value        - numeric, the new value

Return value: N/A

Examples:
        GemRB.SetVar("ActionsWindow", ActionsWindow)
        GemRB.SetVar("OptionsWindow", OptionsWindow)
        GemRB.SetVar("MessageWindow", MessageWindow)
        GemRB.SetVar("ActionsPosition", 4) #BottomAdded
        GemRB.SetVar("OptionsPosition", 0) #Left
        GemRB.SetVar("MessagePosition", 4) #BottomAdded
The above lines set up some windows of the main game screen.

See also: SetVarAssoc, SetToken, LoadGame, HideGUI, data_exchange


MD5: f85bcb143ff3359936e78780da210367
