Legion-Scripting-Setup
Legion Scripting Setup
Section titled “Legion Scripting Setup”This is a guide to get set up for easy scripting in legion scripting!
Install
Section titled “Install”Step 1
Section titled “Step 1”- Install VSCode from code.visualstudio.com
- This is a Microsoft product, it is not required to use this, you can use another code editor like Zed
Step 2 for -Python Scripting-
Section titled “Step 2 for -Python Scripting-”- Open TazUO and type
-updateapi
in-game. This will download a python file enabling some auto-complete features in VScode.
Step 2 for -LScripting-
Section titled “Step 2 for -LScripting-”- Download the Legion Scripting extension for VSCode from https://marketplace.visualstudio.com/items?itemName=TazmanianTad.legionscript
Step 3
Section titled “Step 3”- Get coding!
- Type
-updateapi
in game or: -
- For Python Scripting add
import API
to the top of your .py files for auto complete:
- For Python Scripting add
- You can click on the Edit Externally button on a script in game
- Make sure to set .py and .lscript files to open with VScode as default if your OS asks you too.
- All Python Scripting methods begin with
API.
Public Scripts
Section titled “Public Scripts”We have a public script library available for you to post your scripts, download other scripts or see examples of how to script stuff!