Lacky
2007-10-08 18:22:23
Yes! That's right! Here is where I shall teach you to create your own includes in a step-by-step guide.
Well, firstly, you must have Scar. That is all that is required (depending on what you have in your include).
Now, you know how when you first load scar how it says this:
It should look something like this then:
Well, basically, you do exactly the same.
Example:
Now, you want to save your Include, save it to your Scar Includes Folder, which is generally "C:\Program Files\Scar 3.12\includes".
Now, open up scar again.
Now you once again see that it says:
Just put in {.include Test Include.scar} for the includes.
Now, remember how to call upon your include? Like SRL? SetupSRL; Remember? Do exactly the same thing for your include. But one thing to remember, no matter what your include it, whether it has spaces in it or not, leave it as 1 word, like "TestInclude;" OK? Got that? This is what your end result should look like:
Congratulations! You have just created and successfully ran your first own include!
Note: James, remember that script idea where we compile all scripts into one huge script? We could put it as a procedure/include then call upon it in another script. It would reduce the compiling time heaps! - Just a thought.
Thanks!
Comments/Advice/Criticism/Bugs? - Please post!
Cheers
~Lacky
Well, firstly, you must have Scar. That is all that is required (depending on what you have in your include).
Now, you know how when you first load scar how it says this:
program new;Change that "program" to "procedure" and the "." on the end of "end" to a semi-colon ( ; ).
begin
end.
It should look something like this then:
procedure new;Now, you know how to script yes? (I am assuming you do if you want to create your own include(s) ).
begin
end;
Well, basically, you do exactly the same.
Example:
procedure Include;Now, that is your include (except you change the writeln to the script or whatever function you want to do).
begin
writeln ('I am Testing an Include.')
end;
Now, you want to save your Include, save it to your Scar Includes Folder, which is generally "C:\Program Files\Scar 3.12\includes".
Now, open up scar again.
Now you once again see that it says:
program new;Now remember that include you just made? Do you remember the name? Say you saved it as "Test Include", now remember how you include includes such as SRL? Just give the program name anything for now if you wish, or you can leave it blank/as new.
begin
end.
Just put in {.include Test Include.scar} for the includes.
Now, remember how to call upon your include? Like SRL? SetupSRL; Remember? Do exactly the same thing for your include. But one thing to remember, no matter what your include it, whether it has spaces in it or not, leave it as 1 word, like "TestInclude;" OK? Got that? This is what your end result should look like:
program TestInclude;Now whatever you made it do in the include will do it now here.
{.include Test Include.scar}
begin
TestInclude;
end.
Congratulations! You have just created and successfully ran your first own include!
Note: James, remember that script idea where we compile all scripts into one huge script? We could put it as a procedure/include then call upon it in another script. It would reduce the compiling time heaps! - Just a thought.
Thanks!
Comments/Advice/Criticism/Bugs? - Please post!
Cheers
~Lacky