Results 1 to 4 of 4

Thread: Question Regarding DTMs

  1. #1
    Join Date
    Jan 2007
    Location
    Canada
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Question Regarding DTMs

    Hello,

    Well I am currently working on my 'first' script, and find its quite simple when compared to other languages such as Blitz3D, Java, C++, etc...maybe thats because it seems people have already done everything for you almost...anyway that isn't the point of this post. I have a question regarding DTMs.

    I can make and find them quite fine and easily, however, I am assuming they are only meant for finding objects at an exactly location on your script? If it possible to create a DTM in one place, say slot 1 in the inventory, how do you find that DTM in say, slot 28?

    The reason I'm asking this is because I made a dtm of the gem, and it works fine and is able to detect all of the gems...so long as there in slot number 1...it refuses to find it in any other location than the location it was created in.

    Now I'm wondering, is that the purpose of DTMs or is there something I'm doing wrong? If thats the purpose, thats cool and I'll just use DTM's for stationary stuff and bitmaps for things in the inventory, etc. If I'm doing something wrong, could you(the reader of this post) shed some light on this for me?

    Thanks for your time.
    Azzon

  2. #2
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    http://villu-reborn.com/srl_manual/i...inding_Bitmaps.

    That talks about BitMaps.

    http://villu-reborn.com/srl_manual/i...inding_DTM%27s.

    That talks about DTMS.

    Go wild .

    Edit:

    Here's the link to the Wiki if you can't find it, i know i had trouble the first few times :O.

    http://villu-reborn.com/srl_manual/i...itle=Main_Page

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

    Default

    In functions like, FindDTM, there is vars called, X1, Y1 and X2, Y2. These are the top left corner coordinates, and the bottom RIGHT coordinates of the area you wish to look for the DTM.

    If you want to search the whole inventory, use these: MIX1, MIY1, MIX2, MIY2

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Also look in inventory.scar

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with DTMs
    By Richard in forum OSR Help
    Replies: 2
    Last Post: 01-27-2008, 02:46 PM
  2. Need Help with DTMS!!!!
    By diamondhero6 in forum OSR Help
    Replies: 5
    Last Post: 03-17-2007, 02:42 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
  •