Author Topic: Scripting Codes?  (Read 1835 times)

I NEED SCRIPTING CODES.

If anyone can tell me some scripting codes i will be so happy.

What i want to know is what {} are for, %s are for, -->s are for, and what  /// are for.



}else
{
   // If you do not have RTB you can change the preferences here
   $Pref::Duplicator::AdminOnly           = 0;   // Can only admins use the duplicator? (0 - No, 1 - Yes)
   $Pref::Duplicator::MaxBricks::Admin    = 5000;   // Max bricks selectable by an admin with the duplicator.
   $Pref::Duplicator::MaxBricks::NonAdmin = 500;   // Max bricks selectable by a non-admin with the duplicator.
   $Pref::Duplicator::TimeoutA::Admin     = 0;   // Amount of seconds before an admin can select some bricks again.
   $Pref::Duplicator::TimeoutA::NonAdmin  = 20;   // Amount of seconds before a non-admin can select some bricks again.
   $Pref::Duplicator::TimeoutB::Admin     = 0;   // Amount of seconds before an admin can duplicate again.
   $Pref::Duplicator::TimeoutB::NonAdmin  = 20;   // Amount of seconds before a non-admin can duplicate again.
   $Pref::Duplicator::TimeoutC::Admin     = 0;   // Amount of seconds before an admin can save a duplication again.
   $Pref::Duplicator::TimeoutC::NonAdmin  = 20;   // Amount of seconds before a non-admin can save a duplication again.
   $Pref::Duplicator::RotateSpecial       = 1;   // Rotate special properties relative to bricks? (0 - No, 1 - Yes)
   $Pref::Duplicator::SaveLoad            = 1;   // Enabling saving and loading of duplications? (0 - No, 1 - Yes)
   $Pref::Duplicator::Trust               = 2;   // Trust level requiired to duplicate bricks. (0 - None, 1 - Build, 2 - Full, 3 - You)
   $Pref::Duplicator::UndoMode            = 2;   // What happens when a duplication is undone, (CTRL-Z)? (0 - Nothing, 1 - Bricks deleted one by one, 2 - All bricks deleted)
   $Pref::Duplicator::TooFar              = 0;   // Obey the 'Too Far' limit? (0 - No, 1 - Yes)
   $Pref::Duplicator::Item                = 1;   // Create an item for the duplicator? (0 - No, 1 - Yes)
}


:cookieMonster: :cookieMonster: :cookieMonster:
« Last Edit: June 24, 2011, 04:46:41 PM by Call Me Carl »

I NEED SCRIPTING CODES.

If anyone can tell me some scripting codes i will be so happy.
 :cookieMonster: :cookieMonster: :cookieMonster:
Please be more specific.

Code: [Select]
exec("filenamehere");there

I NEED SCRIPTING CODES.

If anyone can tell me some scripting codes i will be so happy.

What i want to know is what {} are for, %s are for, -->s are for, and what  /// are for.

:cookieMonster: :cookieMonster: :cookieMonster:
; () $ \c#Hello

Torque doesn't use -->

What?

I think he pulled that from when people write events.

Seriously, if you're going to script, learn full english.

Let me give you a short lesson, every thing scripted in Blockland, starts with a Function
So...

Code: [Select]
Function iamnothappy(arguments)
The next part is the code starting(what ever it is) Open curly braces. So...

Code: [Select]
Function iamnothappy(arguments)
{

Then when you are finished with the script, close it with the closed brace.

Code: [Select]
Function iamnothappy(arguments)
{
insertcodehere
}

Function can't have a capitol F

Let me give you a short lesson, every thing scripted in Blockland, starts with a Function
what

no

functions start with function

there is a good guide in this thread here:
http://forum.blockland.us/index.php?topic=146136.0

go read it

what

no

functions start with function
Go be a troll somewhere else.

Go be a troll somewhere else.
You don't know what's being talked about.

Go be a troll somewhere else.
you sir do not know what trolling is

i was correcting what he said implying everything you do in Torquescript must start with "function"