Results 1 to 8 of 8

Thread: Some Words I Would To Be Explained

  1. #1
    Join Date
    Nov 2011
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Some Words I Would To Be Explained

    hey guys, im harry. For months ive been saying to my self im going to learn to script in Simba tomorrow but today i acctualy got started and i came across so words that seem to be vital and i know what most of them mean in normal context just not in computer science. I am only 14 so my vocabulary is not so good, i dont want any fags coming here and commenting saying and stuff because i have and i do get them a bit but i would just love it if someone could post what each word means and when it is used maybe even an example? if you cant be bothered then fair enough just maybe do one word and i'll be happy, thanks.

    here's the words:

    Parameter (Limit?)
    String
    Integer
    Extended
    Boolean (is this just simply True/False?)
    Procedure and Function (im not sure on the difference)
    Constants
    Variables (in chemistry and stuff this is something that can be changed?)
    Global/Local Variables (^)
    Parenthesis
    Constants (something that repeats??)
    String

  2. #2
    Join Date
    Nov 2011
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    *Some Words I Would Like To Be Explained

  3. #3
    Join Date
    Apr 2012
    Location
    Canada, Bc
    Posts
    1,593
    Mentioned
    6 Post(s)
    Quoted
    356 Post(s)

    Default

    http://villavu.com/forum/showthread.php?t=58935

    Here is a beginners guide by Coh3n.
    It explains a lot of what you are asking about.

    I too am learning :]

    EDIT:
    http://villavu.com/forum/forumdisplay.php?f=95

    Also ^ this section has more beginner guides that are very useful.

    I found this named "script down your first rs tree" here...
    http://villavu.com/forum/showthread.php?t=44942
    particullarily useful and informative.
    Last edited by Neznam; 05-05-2012 at 10:21 PM.

  4. #4
    Join Date
    Apr 2012
    Posts
    56
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    in most computer programming languages, a boolean may refer to or represents either true or false.

    took you 5mins to write that request!

    took me 1 sec to google it!!!!!!!!!!

  5. #5
    Join Date
    Dec 2011
    Location
    Ontario, Canada
    Posts
    1,735
    Mentioned
    5 Post(s)
    Quoted
    89 Post(s)

    Default

    Parameter (Limit?)-Yes
    String-A word or combination of characters or letter (i.e. COAL)
    Integer- A number
    Extended-(Not to sure about this one)
    Boolean (is this just simply True/False?)-Yes it is it returns as true or false(Yes/no type deal used in functions and to declare variables)
    Procedure and Function (im not sure on the difference)-Function returns something (string, boolean, integer), procedure does exactly what it is told
    Constants- Stays the same throughout the entire process (i.e ColourOfOre = # it will be # no matter what)
    Variables (in chemistry and stuff this is something that can be changed?)-Yes variables are things that change throughout the script so you must declare them to be an integer, boolean, string, etc.
    Global/Local Variables (^)-same thing I guess
    Parenthesis-Parenthesis are these guys right here ( )
    Constants (something that repeats??)-See above
    String- See above
    FEEL FREE TO PM ME ABOUT ANYTHING! Will help over Teamviewer...just ask!! "WITH A NEW QUESTION COMES A NEW CHALLENGE"
    Silentcore's AIO Service team !!! Pm me if you want questing done or service done or post on thread ofc

  6. #6
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    An Extended is just a decimal number.

  7. #7
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Parameters are what you enter in procedures and functions. For example, in the procedure Wait, the amount of time you enter is the parameter:
    Simba Code:
    program new;

    begin
      Wait(1000); // 1000 IS THE PARAMETER HERE
    end.

    Strings are variables which are bits of text:
    Simba Code:
    program new;
    var
      S : string;

    begin
      S:= 'Hey :D';
    end.

    Integers are also variables but are whole numbers:
    Simba Code:
    program new;
    var
      I : Integer;

    begin
      I:= 1;
    end.

    An Extended is similar to an Integer, but can cope with decimal points. And it's a variable:
    Simba Code:
    program new;
    var
      E : Extended;

    begin
      E:= 2.3562
    end.

    Booleans are, like you said, True or False. Again, a variable:
    Simba Code:
    program new;
    var
      B : Boolean;

    begin
      B:= True;
    end.

    Check out my guide on Procedures and Functions.

    Constants are what are we set before the script even starts:
    Simba Code:
    program new;
    const
      WaitTime = 1000;
    begin
      Wait(WaitTime);
    end.

    Variables, like in chemistry, can be changed throughout the script:
    Simba Code:
    program new;
    var
      WaitTime : Integer;
    begin
      WaitTime:= 1000;
      Wait(WaitTime);
      WaitTime:= 2000;
      Wait(WaitTime);
    end.
    You've probably guessed by now that all are declared like that, with the desired name, followed by a colon and then the type.

    A global variable is one which is declared outside of an procedures or functions, like the one above. A local variable is the opposite:
    Simba Code:
    program new;
    var
      WaitTime : Integer;
    begin
      WaitTime:= 1000;
      Wait(WaitTime);
      WaitTime:= 2000;
      Wait(WaitTime);
    end.
    Trying to use a local variable outside of that procedure will give an error, but you can use the same name in other procedures.

    Parenthesis are brackets.

    Last edited by Rich; 05-05-2012 at 10:33 PM.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  8. #8
    Join Date
    May 2008
    Location
    the world 0_o
    Posts
    150
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Rich just crushed this haha

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •