X-=SCAR Scripting guide by MistiKmaN=-XA wordTrust me, this is
WAY easier than you think! When I setout to learn this, I thought man this will take ages, but it took me about an hour to learn the basics! That's all! But I would say that you should read over my guide at least twice just to make sure you know and understand. Because sometimes, you may think that you've learnt it but it only goes into your temporary memory in your brain, not your permanent. So yes either read it a couple of tmies first OR a better, more effective way is to read it once a day for about three days or so.
What is SCAR?SCAR scripting language is a language used to simulate keystrokes, mouse clicks and mouse movements. the difference between SCAR and many other languages that simulate these, is that SCAR has other commands that can change what it does depending on what might be on the screen, what the time is or whatever you set it to. Now this is
MY understanding of SCAR so far. Well onto learning.
CommentsOne of the most basic things in SCAR, is comments. Comments are parts of the scripts where they do nothing, they're just added in for learners or reades of the script to know what a certain thing does, information about the script etc. There are two ways to define a script in SCAR the first is the double slash. "//", without the quotation marks of course. At the beginning of each line that you want to add a comment you must add the double slash. 'Tis quite annoying to remember sometimes. The second way to call for a comment are the weird parenthesis things. "{" and "}" The first weird parenthesis thing, "{" tells SCAR that you are commencing a comment. The second, "}" telling SCAR that the comment has ended. In my opinion the second is better.
The Program NameYou don't need a program name, but if you're planning on making somehting epic, I suggest you do make one. The program name should be one of the first things in your script theoretically. To add a program name simply write this in your script,
CODE
Program NameHere;
The semi-colon is needed. For those of you that don't know a semi-colon is ";". Spell the name of your script in one word, Letters and Numbers only. You cannot add commas or dots.
VariablesOk, don't give up now! It really is simple, trust me. A variable is like a storage unit, it can store numbers, values, figures, integers, characters or sentences for later use. To declare a variable this is the code;
CODE
{Welcome to MistiScript Version 1.0}
Program MistiScript;
Var //This tells SCAR that you want some variables to be remembered.
x,y: integer; //You wouyld like to use variables x and y as integers.
ShoutOut: String //You're now telling SCAR to use ShoutOut as a string.
As a general rule x and y will be set aside for the horizontal and vertical co-ordinates of the mouse. x being horizontal, y being vertical. Remember from my HTML programming guide? Horizontal is across, vertical is up and down.
ConstantsA constant is a variable that never changes. It stays
constant throughout the whole script. All you gotta do is set values for it, and this is how you do it.
CODE
{Welcome to MistiScript Version 1.0}
Program MistiScript;
Const //The declaration of a constant.
Times = 10; //And that's the value!
Var //This tells SCAR that you want some variables to be remembered.
x,y: integer; //You wouyld like to use variables x and y as integers.
ShoutOut: String //You're now telling SCAR to use ShoutOut as a string.
Make sure you learn how to use variables and ocnstants, they are crucial for making good scripts.
Basic ProceduresProcedures are what scripts are built up of. A procedure is a set of "instructions" that performs a specific task that can be called upon, that and makes your script neat and tidy. A procedure is a mixture of functions. To write a procedure. We start out with the procedure name. This is used just like "program name".
CODE
Procedure ProcedureNameHere;
Spell the procedure name with one word only letters and numbers, just as Program name.
Beginning and EndAfter the procedure name you
MUST tell SCAR where the procedure begins. To set the limits of the procedure you use "begin" and end;".
CODE
procedure MistiScript
begin
//The set of actions of the procedure are put here in the body.
end;
Well already you are fairly close to writing you very own script! I told you it wasn't hard. In the main part of the script there is a main begin and main end. that will be explained later, though.
OK I'M GONNA STOP HERE I'LL WRITE MORE THOUGH WITHIN THE NEXT TWO DAYS IF I HAVEN'T JUST PM ME DO NOT VOTE IN THE POLL UNTIL I HAVE FINISHED WRITING THE GUIDE!!!