To write and edit scripts, you can use the built-in script editor of Vanda Engine or other IDEs. In this section, we will describe the script editor of Vanda engine.
To access the script editor, use the Tools > Script Editor menu. In this section, we explain the script editor menu.
File Menu
New
creates a new lua script.
Open
Opens a standard File dialog that lets you select an existing Lua file.
Save
Saves the current script. For the first time, it opens a dialog that lets you select the file path.
Save As
Opens a File dialog that lets you save the script under a new name.
Exit
Exits the script editor.
Edit Menu
Undo
Lets you undo recent changes.
Redo
Lets you redo recent changes.
Copy
Use this command to copy the current selection to the clipboard as text.
Paste
This command allows you to insert at the cursor position text contained on the clipboard.
Debug Menu
Debug Script
Using this menu, you can check the syntax errors of your code. If no errors are found, the message No Errors Found is displayed in the Errors section of the editor.
Tools Menu
Script Utility
Opens a new dialog that allows you to view the projects, project resources, GUIs, game levels and their objects and copy their names if necessary. These names are used in scripting APIs and can be used as their input parameters.
Add Event
Opens a new dialog that allows you to add scripting events to your script.
Add Function
Opens a new dialog that allows you to add scripting APIs to your script.
Help Menu
Opens Scripting Reference Manual.
Script Editor