Results 1 to 4 of 4

Thread: Include Help

  1. #1
    Join Date
    Mar 2006
    Posts
    163
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Include Help

    i need some include help

    ex. how would you set up the include so scar knows you put it in there would you go

    {.include SRL/SRL.scar}

    then in a procedure would you go

    procedure setup;
    begin
    SetupSrl;
    end;

    and in the main loop you would go

    begin
    SetupSrl;
    repeat
    somefunction;
    another one;
    until(false);
    end.

    but then how do you include the functions from that include into your script so scar does it and would you have to make another one for that skill include

    ex. {.include Srl/Srl/Core/Woodcutting.scar}

    that might sound a little confusing but help would be greatly appreciated

  2. #2
    Join Date
    Feb 2006
    Location
    Aussie
    Posts
    937
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yep that is it, but in the first exapmle, take out the procedure...

  3. #3
    Join Date
    Feb 2006
    Location
    Las Vegas, NV
    Posts
    939
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    you only need this for the setup of the stuff.. you only need {.include SRL\SRL.scar} if you are using stuff from the core folder, because this will include all the core stuff.. but anything skill or misc stuff you must have the seperate include for it
    Code:
    {.include SRL\SRL.scar} //regular thing..
    {.include SRL\SRL\misc\amount.scar} //for a different include
    
    procedure Setup;
    begin
      SetupSRL; //only need it one time
    end;
    
    begin
      Setup; //once again.. setupsrl only needs to occur once which is here
      repeat
        somefunction;
        another one;
      until(false);
    end.
    Busy with real life. I'll still be around occasionally.
    Current Mood:


  4. #4
    Join Date
    Mar 2006
    Posts
    163
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    ok thanks helped alot

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with my include
    By fert in forum OSR Help
    Replies: 9
    Last Post: 10-27-2008, 11:12 AM
  2. Include Help, Please?
    By File in forum OSR Help
    Replies: 22
    Last Post: 03-20-2008, 10:55 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
  •