Results 1 to 4 of 4

Thread: How do I MAKE an include?

  1. #1
    Join Date
    Apr 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How do I MAKE an include?

    Hi, I was wondering how to make you own includes.
    The game im scripting for ISNT runescape so I was thinking of making an include with the procedures which I used a lot.

    Is an include just a bunch of functions and procedures with no main loop or program name?
    If so, how do I set it up?

    Ive been looking through the PH.scar include but im still not quite sure about how to do it
    Reality is for those who can't handle dreams...

  2. #2
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    an include can be as simple as a single file with function/procedure or a whole collection like SRL. To make an include, just make a blank file with no program or main loop and just throw procedures & functions in there and save it in the Scar includes folder. To the include it, just add {.include filename.scar} at the top of your script where the SRL include would normally go and you're sorted.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  3. #3
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mixster View Post
    an include can be as simple as a single file with function/procedure or a whole collection like SRL. To make an include, just make a blank file with no program or main loop and just throw procedures & functions in there and save it in the Scar includes folder. To the include it, just add {.include filename.scar} at the top of your script where the SRL include would normally go and you're sorted.
    couldnt you do that with entire scripts?

  4. #4
    Join Date
    Apr 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh...
    thanks for that
    All I have to do then is delete the program and the main loop ^^
    Reality is for those who can't handle dreams...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. just need to know what include i need to add
    By westkevin12 in forum OSR Help
    Replies: 3
    Last Post: 01-14-2008, 04:22 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
  •