turkeyidfool
2007-07-06 18:24:39
*~How To Make The Simple Script~*
Okay Ima try to make this as simple as possible.
In order to set randoms you need to know a little about Variables.
In order to create if…then you need to know a little about over all scripting.
if you a newb then GO TO A NEWBIE TUT UNTIL YOU KNOW THIS CRAP:duh:
So lets say you need to decide who will be the one who jumps in the river butt naked. So you and your buddies write your name down on sheets of paper and toss them into a baggie. You shake up the baggie and you draw a name. That is basicly what I am going to teach you to do all except you will learn how to tell your SCAR program to do it for you.
Okay now ima put in a simplified version of my script. [Ima post the whole thing in the other scripts section;) )
My MonkeyButt Script
And the script is not made by drunken wutever.. i don't rlly get why it duz that…
What this script does is determine who is the MonkeyButt(Duh). Lets take a look at it.
There is a variable called "monkeybutt" and it has been declared as an integer(number)
MonkeyButt is declared as a random. Being labeled as a "random(8)" means that scar will randomly make it worth any one of the numbers 0 through 7.
Then there is a ton of if then statement where it says that if monkeybutt equals a certain number then write whatever it says to beneath it.
And there's also a cleardebug command but that only clears the debug box so i doesn't get crowded. I hate it when the debug box gets crowded:duh:
So lets say you wanted to make a script that answered a yes or no question.
you would start off:
So that pretty much covered randoms and if thens that are rigged to randoms.
Rep me if i helped and search for my skript in the "other scripts" section!
And if you can't find any good beginner scar TUTs:google:
Okay Ima try to make this as simple as possible.
In order to set randoms you need to know a little about Variables.
In order to create if…then you need to know a little about over all scripting.
if you a newb then GO TO A NEWBIE TUT UNTIL YOU KNOW THIS CRAP:duh:
RANDOMS AND IF…THENS TOGETHER
So lets say you need to decide who will be the one who jumps in the river butt naked. So you and your buddies write your name down on sheets of paper and toss them into a baggie. You shake up the baggie and you draw a name. That is basicly what I am going to teach you to do all except you will learn how to tell your SCAR program to do it for you.
Okay now ima put in a simplified version of my script. [Ima post the whole thing in the other scripts section;) )
My MonkeyButt Script
And the script is not made by drunken wutever.. i don't rlly get why it duz that…
program MonkeyButt;
var
MonkeyButt: integer;
begin
MonkeyButt:= Random(8)
if(MonkeyButt = 0)then
WriteLN('Joe Is The Monkey Butt!')
else
WriteLN('Joe Is Not The Monkey Butt And');
if(MonkeyButt = 1)then
WriteLN('Billy Bob Is!');
if(MonkeyButt = 2)then
WriteLN('Bobby Ray Is!');
if(MonkeyButt = 3)then
WriteLN('Billey Jean Is!');
if(MonkeyButt = 4)then
WriteLN('Bo Jangles Is!');
if(MonkeyButt = 5)then
WriteLN('Eric Is!');
if(MonkeyButt = 6)then
WriteLN('Fez Is!')
if(MonkeyButt = 7)then
WriteLN('Everyone Else Is!!! Muahahahahahahahahahahaa!!!!')
end.
What this script does is determine who is the MonkeyButt(Duh). Lets take a look at it.
There is a variable called "monkeybutt" and it has been declared as an integer(number)
MonkeyButt is declared as a random. Being labeled as a "random(8)" means that scar will randomly make it worth any one of the numbers 0 through 7.
Then there is a ton of if then statement where it says that if monkeybutt equals a certain number then write whatever it says to beneath it.
And there's also a cleardebug command but that only clears the debug box so i doesn't get crowded. I hate it when the debug box gets crowded:duh:
So lets say you wanted to make a script that answered a yes or no question.
you would start off:
program New;
var YesOrNo: Integer;
begin;
YesOrNo:= Random(2)
If(YesOrNo = 0)then
WriteLN('Yes')
if(YesOrNo = 1)then
WriteLN('No')
end.
and if you like you can add "cleardebug" under begin, too. that way it loox better :D So that pretty much covered randoms and if thens that are rigged to randoms.
Rep me if i helped and search for my skript in the "other scripts" section!
And if you can't find any good beginner scar TUTs:google: