Log in

View Full Version : SRL Members, question for you



[Nathan]
12-28-2011, 11:41 PM
So in a script where it would withdraw an item from the inventory, what do you prefer to see in a script, a pre-defined position, or finding the item with DTMs? My internal debate currently is that that first option would be faster and use less computer resources because it doesn't have to use a DTM, but the second option shows a greater level of coding skill. As I am preparing to release a few scripts I have been working on and applying for SRL membership, which route would you prefer to see in an application?

jakeyboy29
12-28-2011, 11:42 PM
A dtm i suppose. More complex, but better for when an item could run out from the bank?

euphemism
12-28-2011, 11:49 PM
We would, of course, prefer to see the use of DTMs, TPAs, or some other item-identifying method to dynamically locate an item, and decide what needs to be done. Hard-coded coordinates, or inventory slots, are never preferred.

E: As DTMs are vector representations of an image, they aren't terribly resource-intensive, especially in as small an area as the inventory. I think you will find no noticeable time spent when using DTMs to interpret the current state of the inventory.

[Nathan]
12-28-2011, 11:51 PM
I figured that would be the answer, but it confuses me why the alternative being more efficient is never preferred? (If I do decide to do the DTM route, I will publically release that but still privately use hard coded coords because it is more efficient)

If I was looking for an item that would be dynamic, of course DTM is better, but for an item that sits still in a bank slot, what is the point?

jakeyboy29
12-28-2011, 11:53 PM
we like the challenge

euphemism
12-29-2011, 12:52 AM
;875117']I figured that would be the answer, but it confuses me why the alternative being more efficient is never preferred? (If I do decide to do the DTM route, I will publically release that but still privately use hard coded coords because it is more efficient)

If I was looking for an item that would be dynamic, of course DTM is better, but for an item that sits still in a bank slot, what is the point?

Because I think you will find that if you define an integer, call MarkTime(integer), find your DTM in the inventory, and then WriteLn(TimeFromMark(integer)) the number of milliseconds passed will be very small, or may even return 0. Therefore, if you have the ability to have more flexibility and control over something, and there is no negative hit to speed, why not?

Sabzi
12-29-2011, 12:57 AM
In an application do what shows more skill.
Other then that I see no problem with fixed position if it makes more sense in the game.

Naum
12-29-2011, 01:31 AM
Tbh, if the item is in a constant place, I would just use a mouse with 10 randomness. Would be less hassle and has the same effect as using a dtm, others would disagree with me though