Torque Console Commands

Author Topic: Torque Console Commands  (Read 74357 times)

Badspot

  • Administrator
Here's a reference of all TGE console commands.  Some things may be slightly different in Blockland but it's a good reference.  

http://blockland.us/files/TGE-Console-Cmds.rtf
« Last Edit: October 14, 2017, 08:31:39 AM by Badspot »

What sorta file is .rtf, never seen it before.

Rich Text Format, I do believe.

Every word processor in the world that does not suck can read this.

Including, but not limited to:
WORDPAD
MICROSOFT WORD
PIECEOFice cream
ORLY WORD
« Last Edit: September 09, 2007, 05:05:25 PM by IbanX »

Thanks for the reference.

Dares ya to type deleteDataBlocks(); into the console.

Dares ya to type deleteDataBlocks(); into the console.
You'll break my Blockland.

I was bored and looking through the functions and I found this,
Code: [Select]
isKoreanBuild()
-Silly Korean registry key checker
-Returns a string

if(isKoreanBuild())
echo(“Silly Korean Build!”);

LULZ

Here's a reference of all TGE console commands.  Some things may be slightly different in Blockland but it's a good reference. 
Ummm...Badspot im new at this i want to make a command for my servers, could you like...try to post an example script, thanks, and hi :cookie: :cookie: :cookie:




Ummm...Badspot im new at this i want to make a command for my servers, could you like...try to post an example script, thanks, and hi :cookie: :cookie: :cookie:

function myTestCommand(%x)
{
echo("You just typed:" SPC %x);
}
Type this in console after:
myTestCommand("HAI");

The console should say
"You just typed: HAI"

If not, to bad.


Ummm...Badspot im new at this i want to make a command for my servers, could you like...try to post an example script, thanks, and hi :cookie: :cookie: :cookie:

Sorry for the double post, Didn't feel like editing.
Heres an example thats a bit... Better then the other one.
Code: [Select]
function ServerCmdHelloWorld(%c)
{
if(%c.isAdmin)
{
MessageAll(' ',"HELLO WORLD!");
}
else
{
MessageAll(' ',"Hello World!");
}
echo(%c.name SPC "says Hello World!");
}
And, I feel generous so i will explain.
MessageAll is a command to send everyone on the server a message. MessageAll's default color is red, But you can change it with Torque ML or \c#s (example \c6 is white)
if(%c.isAdmin) checks to see if there admin, and if they are, it says HELLO WORLD in capitals
the Else checks to see if there not admin, Then it says it in lower case letters.
Brackets ({,}) are like folders, Containing the information for that bit.
Echo is a function that sends a message into your console, As said in the previous example.
Hope this helps someone!

Edit: ServerCmd just means that in chat you can say /HelloWorld, Instead of a console function like the other one.

Personally, I hate any scripting language that uses $ or % for some variable.

Which means I hate PHP & Torque yet I have to deal with it.
I think it makes things very ugly.