Author Topic: So, I want to learn to script.  (Read 1314 times)

I've been in Blockland for a whopping 5 years. (old key got banned, and gave it to my friend)
I haven't had ANY knowledge of scripting whatsoever over the course of these years.
I want to learn the ways of formatting, and how variables work, and so on.
This is all about I know how to do...

Code: [Select]
package testderp;
{
something("something = dep");
}

I don't even know if that's correct. ._.

So, to sum it all up, I need an easy tutorial on basic scripting.

Really depends on what way you learn best.

Coding Help is a great place to start though.

You'd probably want to check out some stickied topics.

This older topic is also pretty useful:
http://forum.blockland.us/index.php?topic=176135.0

1. Have you done any sort of programming ever?

If not, I'd recommend taking some sort of programming course as it will probably make it much easier to understand what you're doing.

If not, I'd recommend taking some sort of programming course as it will probably make it much easier to understand what you're doing.
Possibly.

There are some advantages, however, to starting coding in general with TorqueScript. Definitely some disadvantages, too, don't get me wrong.

you kinda learn how to make your code optimized after awhile with TS, for instance lol

1. Have you done any sort of programming ever?

If not, I'd recommend taking some sort of programming course as it will probably make it much easier to understand what you're doing.

I have done a bit of java programming and some LUA I think.

The best way to learn is to do. Start making content whether it's relevant to blockland or not.

One great way to learn is to find a handful of very simple add-ons already made, and read through them. See what similarities the scripts have and what makes the add-on do what it is supposed to do.
And make some simple scripts of your own, based off of what you've seen.

Starting there gets you familiar with the syntax and how to write basic functions and gets you in touch with other core concepts.

One great way to learn is to find a handful of very simple add-ons already made, and read through them. See what similarities the scripts have and what makes the add-on do what it is supposed to do.
I support this statement.

This website I am about to link you will teach you everything you will need to know to get started:

http://www.freewebs.com/torquescript/index.htm

The easiest thing to do is finding some well annotated code and trying to make some changes to it based on what you think stuff does.  If something doesn't work, try to figure it out and learn from the experience.  If something still doesn't make sense, this forum can be a great resource.

The easiest thing to do is finding some well annotated code and trying to make some changes to it based on what you think stuff does.  If something doesn't work, try to figure it out and learn from the experience.  If something still doesn't make sense, this forum can be a great resource.
Many of the default add-ons are fairly well commented and can be used as a learning resource.

Many of the default add-ons are fairly well commented and can be used as a learning resource.
What he said is VERY true. The way i learned was i just started editing default script and studied other peoples codes. It's a great tool to know script, i suggest looking at other's scripts.