The Scripting system used in Realmweaver is Javascript. To see the limitations of the Javascript Evaluator visit the Jurassic library on Github
Functions
string addObjectBuiltin(name)
Instantiates a built-in object by name. Then adds itself as a child of the object the behavior script is running from.
returns a JSON string of the game object containing its name, instance id and network id.
Note: some objects may return a blank network id as they are local only objects.
var obj = JSON.parse(addObjectBuiltin("Platform1"));
{
"name" : "Platform1",
"localid" : "####",
"netid" : "####"
}
string addUICanvas(name)
Instantiates a canvas object and gives it a name. Then adds it as a child of the object the behavior script is running from.
returns a JSON string of the canvas object containing its name, instance id and network id.
Note: some objects may return a blank network id as they are local only objects.
var obj = JSON.parse(addUICanvas("My Canvas"));
{
"name" : "My Canvas",
"localid" : "####",
"netid" : "####"
}