Editor Scripting is a feature that can be accessed in command line by entering EditorScript keyword.

*Practical and potential uses to be determined

Getting Started

Editor script uses JS (JavaScript), also not to be confused with Java which is a object oriented programming, JS is a lightweight programming language, this should mean that it's pretty easy to learn. Anyways, were here to learn about the basic concepts about JS and compare it to fancade scripting for better understanding. Lets start with variables.

Variables

Unlike most programming languages JS uses a versatile variable declaration this means you can set a variable to any type value casually. JS uses 3 variable declaration key:

var - commonly used variable, is global and can be called anywhere after declaration

const - is a variable that represents a constant value, usually declared before everything

let - is a variable that represents a local variable, its value only persist inside the codeblock {}` where it is located