Variables & types
Variables are used to store data that can have different types, they can be numbers, text or arrays.
How do they work
Neurox variables & types are similar to LuaU's, but some of them are currently not readable. Variables are stored in a LuaU table called system_variables.
local neurox = {}
neurox.system_variables = {}
return neuroxIf you create a variable, it will be stored in that table :
DEFINE NEUROX
SET a = 0The table will be updated like this, storing the variable name, value and type :
neurox.system_variables = {
["a"] = {
["varData"] = 0,
["varType"] = "int"
}
}Usage & examples
Here are the 4 types included in Neurox :
String, for instance "hello world"
Integer, for instance 42
Float, for instance 1.5
Boolean, for instance True or False
Example :
Set a variable with the keyword SET, followed by an equal symbol and its value
You can also set a new variable with another's value
hello variable value will be the same as strValue, "hello world"
Forbidden variables names
Some variable names cannot be used because they are used by the system. They all have a specific usage. While being editable, their name can't be used for another variable.
Last updated