[Resource]-Torquescript Learners Guide-[WIP]

Author Topic: [Resource]-Torquescript Learners Guide-[WIP]  (Read 8384 times)

Make sure to include:
packaging
default functions (just a list)
objects/classes
datablocks
I have a lot of .txt files written of different topics already, I'm just getting around to proofreading them and flowing them together correctly.

These will definitely be included

Great guide, excited to see more!

You should just put it on a website.

You should just put it on a website.
Because everyone has one

Because everyone has one
You can easily get a free sub domain.

You should just put it on a website.
Already ahead of you, I decided instead of updating it here I would go ahead and host a website with different areas and such.

You can easily get a free sub domain.
But a subdomain is boring!


woah when did you get so good?
Purple got his basic understanding from help here via the forums and I assume he went upon himself to use the knowledge he gained to learn more.

I'm quite proud of him

Also that status of the website idea is almost done
« Last Edit: January 10, 2013, 05:46:55 PM by ¥ola »

Quick question with this code
Quote
function Test_This(%input, %check)
{
   if(%input $= %check)
   {
      return "true";
   }
   else if(%input > %check)
   {
      return "greater than";
   }
   else if(%input < %check)
   {
      return "less than";
   }
   else
   {
      return "false";
   }
}

To make %input and %check equal something would I just put  %input $= 6; after the first bracket?
And how could I actually use this on my server? Sorry if its a stupid question I just pretty tired right now.

Quick question with this code
To make %input and %check equal something would I just put  %input $= 6; after the first bracket?
And how could I actually use this on my server? Sorry if its a stupid question I just pretty tired right now.

When calling the function you would just enter the arguments.

Eg:
Test_This(4, 3);

That would make '%input = 4;' and '%check = 3'
To manually set a variable inside a function you always use '='

Eg:
%input = 4;

When calling the function you would just enter the arguments.

Eg:
Test_This(4, 3);

That would make '%input = 4;' and '%check = 3'
To manually set a variable inside a function you always use '='

Eg:
%input = 4;
Ok
What would I named the .zip and the script?

Ok
What would I named the .zip and the script?
You would package the script inside a .zip file named anything you want.

The text file that includes the code must be a .cs file and you must have a description.txt file in order for it to execute

namecheck.txt is not needed

What are some simple ideas for scripts for a beginner like me?

reverse a str- wait that's not simple enough
uhhh, make a function that echos the argument you put into the function