Results 1 to 3 of 3

Thread: Barbarian Course help with: Case of

  1. #1
    Join Date
    Nov 2011
    Location
    The Netherlands
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Barbarian Course help with: Case of

    I'm creating a simple Barbarian Course Agility script, and I'm almost fisished.

    Just one thing, I'm using Case of and it won't go to the next number, it will loop inside RopeSwing.

    Simba Code:
    procedure CaseProceduce;
    begin
        case Course of
        0 : RopeSwing;
        1 : LogBallance;
        2 : ObstacleNet;
        3 : BallancingLedge;
        4 : Ladder;
        5 : Wall1;
        6 : Wall2;
      end;
    end;

    Simba Code:
    for i := 0 to 6 do
         begin
           CaseProceduce;
         end;
    Last edited by Ricky; 02-12-2012 at 08:08 PM.

  2. #2
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    It should be case i of, not case course of.
    Simba Code:
    procedure CaseProceduce;
    begin
        case i of
        0 : RopeSwing;
        1 : LogBallance;
        2 : ObstacleNet;
        3 : BallancingLedge;
        4 : Ladder;
        5 : Wall1;
        6 : Wall2;
      end;
    end;

  3. #3
    Join Date
    Nov 2011
    Location
    The Netherlands
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Thanks, that fixed the problem.

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
  •