Game Guides > Game FAQ >  

What are some scripts for script builder

What are some scripts for script builder
I have no idea what language you mean in anyway. But Ill answer it in TorqueScript. Since it's just my favorite
First you need to make something that will read the premade script

function makeScript(%script)
{
%file = new fileObject();
%file.openForWrite($WhereEver);
%file.writeLine(%script);
%file.close();
%file.delete();
}

Thennn all you do is at the bottom do things like this:

$Script[1] = "function serverCmdDoStuff() {}";
makeScript($Script[1]);
etc.

for a delete script

function deleteScript(%script)
{
filedelete(%script);
}

And that's it.