Results 1 to 3 of 3

Thread: Random debug talker help

  1. #1
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Random debug talker help

    just trying to get the feel of scar, this (well should) just typs random stuff into the debug box

    not RS use really but oh well, its helping learn scar to do RS stuff


    SCAR Code:
    Program RandomDebugTalker;


    procedure Example;
    begin
    I := random(7);
    case I of
    0 : Writeln('hi');
    1 : Writeln('bored');
    2 : Writeln('random');
    3 : Writeln('gotcha');
    4 : Writeln('pizza');
    5 : Writeln('wassup');
    6 : Writeln('wazzup');
    end;


    begin
    repeat
    Example;
    wait(1000);
    End.

    have i made a really noobish mistake i.e begins/ends

  2. #2
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    sorry about Double Posting and is it now



    SCAR Code:
    Program RandomDebugTalker;

    var
    I: Integer;


    procedure Example;

    begin
    I := random(7);
    case I of
    0 : Writeln('hi');
    1 : Writeln('bored');
    2 : Writeln('random');
    3 : Writeln('gotcha');
    4 : Writeln('pizza');
    5 : Writeln('wassup');
    6 : Writeln('wazzup');
    end;


    begin Example;
    repeat
    Example;
    wait(1000);
    End.

  3. #3
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    first of all, this should not be in the RS scripts section then. second, do NOT double post, that is against the rules. all you need to do is declare the variable. var I: Integer; if you have any questions, post here or add me on MSN: runescapemacro@hotmail.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. debug talker
    By HarryJames in forum First Scripts
    Replies: 2
    Last Post: 12-05-2007, 06:30 AM
  2. first script Random Facts Talker
    By sweetleaf in forum First Scripts
    Replies: 2
    Last Post: 06-23-2007, 09:06 AM
  3. Random debug talker help
    By HarryJames in forum OSR Help
    Replies: 2
    Last Post: 02-28-2007, 12:08 AM

Posting Permissions

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