Results 1 to 5 of 5

Thread: conversions.scar

  1. #1
    Join Date
    Oct 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default conversions.scar

    According to the manual misc/conversions.scar

    I don't seem to have it, I am using scar 3.12 with revision 5 from svn.

    How can I get this include?

  2. #2
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Manual is old and outdated.

    What are you looking for exactly, maybe i can help.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  3. #3
    Join Date
    Oct 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Specificallly

    function cBoxArray2(x1, y1, x2, y2: Array of Integer): TBoxArray;
    By: Freddy1990
    Description:
    Loads x1, y1, x2, y2 integer arrays into a TBoxArray.

    I'm not too good with arrays in Scar, my scripts parses a text file, then adds the coordinates to a TBoxArray

    Hoping to have something like this.

    Code:
    var
    Windows: Array of TBoxArray;
    
    begin
    
    //Obviously x1 y1 x2 y2 will be replaced with values
    Windows[Inventory] := cBoxArray2(x1, y1, x2, y2);
    Windows[Skills] := cBoxArray2(x1, y1, x2, y2);
    Am I declaring my array correctly? And how can I get these functions, or how do I manually add values to a TBoxArray.

    Thanks,

  4. #4
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    var
     Windows: Array [0..1] of TBoxArray;

    begin
      Windows[0] := IntToBox(MIX1, MIY1, MIX2, MIY2);
      Windows[1] := IntToBox(x1, y1, x2, y2);
    end.
    Interested in C# and Electrical Engineering? This might interest you.

  5. #5
    Join Date
    Oct 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks!

    Is there any way to change the index of the array from an Integer to a String instead?

    Windows['Inventory'] := IntToBox(x1, y1, x2, y2);
    instead of 0 .. 4

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Scar IDE] How to set jEDIT to edit scar files corectly!
    By LordGregGreg in forum Outdated Tutorials
    Replies: 16
    Last Post: 06-23-2007, 01:19 AM
  2. Replies: 28
    Last Post: 06-22-2006, 04:27 PM

Posting Permissions

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