Results 1 to 5 of 5

Thread: Need finger pointing

  1. #1
    Join Date
    Jul 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need finger pointing

    Hello people,

    I am in need of some finger pointing. I am in the middle of writing improvements for a script I have written for a non-RS game. I am using DTM's to find my 'objects' but because I am a developer by trade I want to make the code as dynamic as possible (Inversion of Control and stuff, you know). If possible I would like to create a separate file in which I can store all the DTM's and call into them from my main script like the current use of some constant variables (i.e. MSX1). If there is a guide on here somewhere that has this information a finger point to the location would be awesome.

    Also I want this script to be as good as possible so if DTM's are not the way to go for finding buttons etc please "point" me in the right direction.

    Thanks,

    JT
    Last edited by JTcm; 08-24-2012 at 09:07 PM. Reason: Just realized this should probably be in the scripting help sub-forum

  2. #2
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    You can create your own include and set the DTMs as string constants. Something like:

    Simba Code:
    const
      DTM_1 = 'acbcbef13728319diwudgiwf02y82r3';
      DTM_2 = 'iuoc3f3gwfiwuf782g3fugeuaigcf83gf2';
      //etc...

    Which you can then call in your script as long as you've got it included at the top:

    Simba Code:
    program new;
    {$I SRL/SRL/Misc/DTMInclude.Simba}
    // ^ Wherever it's located

    procedure Whatever;
    var
      DTM: Integer;
    begin
      DTM := DTMFromString(DTM_1);
      FreeDTM(DTM);
    end;

    There might be a tutorial on creating your own include; I'll edit this if I find one

    EDIT: Found two!
    Creating Your VERY Own Includes! by Daniel
    Making your OWN includes! by Rich
    Last edited by Runaway; 08-24-2012 at 09:37 PM.

  3. #3
    Join Date
    Jul 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @Runaway

    Thanks,

    That is exactly what I was looking for. I am still really new to this community/language and so the terminology is lacking. Makes it hard to search for things when you don't know what to call them

    I really appreciate the help!

  4. #4
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by JTcm View Post
    @Runaway

    Thanks,

    That is exactly what I was looking for. I am still really new to this community/language and so the terminology is lacking. Makes it hard to search for things when you don't know what to call them

    I really appreciate the help!
    No problem, glad to be of service! The search function here is hard to use even if you know what to look for

  5. #5
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    If you want to give it a professional look you could add the dtms to a .ini file. There might be a few tutorials about that on this forum.
    Working on: Tithe Farmer

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
  •