Author Topic: What would be the best way to start learning to script?  (Read 1323 times)

so yeah
in my other thread people told me i should try learning to make add-ons, no modeling programs work on my computer, so i'd have to just start out by scripting
but what's the best way to start to learn how to script? like, what should i try to make first? and how?
i know, "if you don't know how to script you'll never learn how to lololololol" or whatever, but it's impossible to know how to make an add-on the second you start playing blockland

at first, try to make a simple function, if a variable equals something, echo something. otherwise, echo something else.

That's about as basic as it gets.

I highly recommend looking at other add-ons for reference.

That's pretty much how I learned.

I highly recommend looking at other add-ons for reference.

That's pretty much how I learned.
I was given a huge package of client-sided scripts. It had basically everything there in terms of scripting that you would need to know for torque, except script objects.

I highly recommend looking at other add-ons for reference.

That's pretty much how I learned.
the problem is i don't know what anything means ;-;

i just started learning a week or two ago and i started off with functions server cmds and i think i'm getting somewhere with packages and other things.

i just looked at two PDFs and looked at other codes, also use jookia's scripting guide, he teaches the basics.
« Last Edit: August 19, 2012, 05:31:05 PM by wound »

the problem is i don't know what anything means ;-;
As far as knowing what stuff means, it's pretty much in plain english with the exception of some syntax.

if(isObject(findClientByName("shy").player))
=
if there is an object that is the client named shy's player
=
if shy's player exists

Reading code should be much easier than writing it


i just looked at two PDFs and looked at other codes, also use jookia's scripting guide, he teaches the basics.

that video is ugh. I need to make a new one soon

I highly recommend looking at other add-ons for reference.

That's pretty much how I learned.
Yeah I learned by looking at other add-ons and editing them, then test them, watch a couple videos, and try to make my own.

jookia's scripting guide
Off topic but, is there a reason you guys add nameCheck.txt to your add-ons? As far as I know, only RTB even uses that and it automatically adds it when you upload your add-on.

Off topic but, is there a reason you guys add nameCheck.txt to your add-ons? As far as I know, only RTB even uses that and it automatically adds it when you upload your add-on.
no reason that I know of

no reason that I know of
I think it was a miscommunication between generations of scripters. New scripters would probably read code from RTB add-ons, see the nameCheck.txt file, and add it to theirs assuming it is necessary. Isn't there a how2package tutorial somewhere? If not, someone should write one, even though it is easy.

nameCheck.txt prevents stupids from changing the name of an addon and doing something stupid like claiming it's their own.

Basically, if the name of the zip doesn't match the name inside the nameCheck file, it isn't executed.