This includes: database nodes, drag object instances, token instances, and widgets.įantasy Grounds uses the Lua scripting language. If the script is defined as part of an object definition, then the script operates within the context of that FG object, and any APIs associated with that FG object can be called directly.Īdditionally, there are a number of objects that can be requested through the FG API that can be interacted with outside of window instances and window controls. Also, the FG client provides a number of built-in global scripts to allow interaction with the client (Common, DB, Debug. Every window control will get a unique instance of the Lua script attached to a window control definition.
Every window instance will get a unique instance of the Lua script attached to a window class. Global scripts must be named, and are available to be used within any other script by that name. Lua scripts can either be global, attached to a window class or attached to a window control. Scripts can be used to extend the capabilities of any window class or window control, in addition to supporting global packages for shared logic. Scripting is the mechanism that allows advanced interface logic and game system automation to be performed within a ruleset.