Difference between revisions of "Develop:LavishScript"
(Created page with "LavishScript is the scripting engine built into Inner Space, and is used for in-client features during gameplay. If you have any previous experience with programming, this...") |
(No difference)
|
Revision as of 02:41, 29 March 2018
LavishScript is the scripting engine built into Inner Space, and is used for in-client features during gameplay. If you have any previous experience with programming, this page should help you get started with the LavishScript required for ISBoxer 2 Module development.
LavishScript is primarily based on a command parser (i.e. those that might be entered into a command prompt), with in-place text replacement of "data sequences".
- In the following example, the Echo command is used to print "Hello World!" to a LavishScript console.
function main() { echo "Hello World!" }
LavishScript also includes object-oriented (OO) features. ISBoxer 2 Modules are created using LavishScript object definitions (objectdefs).
- In the following example, a LavishScript object is defined, with a constructor and destructor (Initialize and Shutdown methods).
/* Module: In-Game Password Entry Version: 0.1 This file controls and defines behaviors for the Module! For use in-client. */ objectdef isb2_IGPE_controller inherits isboxer2module_controller { method Initialize() { bind enterpassword alt+p relay all ISBoxer2:EnterPassword } method Shutdown() { bind -delete enterpassword } }
Note: At the current ISBoxer 2 Alpha stage, ISBoxer 2's LavishScript API is not fully featured. More features and information will be available soon!