Starblaster100
2006-05-12 17:13:59
What are DTM's?
Deformable Template Models (DTM's) are used a lot like bitmaps in SCAR. Basically they compare colors, and depending on what colors are found and how far away from eachother they are, the DTM will return a boolean. If the boolean is True, it will record its position.
How do i Use them?
With the Functions:
[PHP]
FindDTM(DTM : Longint; Var x, y : integer; xs, ys, xe, ye : integer))
FindDTMRotated(DTM : Longint; Var x, y : integer; xs, ys, xe, ye : integer; StartAngle, EndAngle, AngleStep : Extended; Var Angle : Extended))
[/PHP]
How do i Make them?
Using the DTM editor. Hit Tools and the DTM Editor in Scar to access it.
What are they Best Used for?
I find they are most effective in finding specific Objects in the inventory. We have 'FindText' to look for specific text, 'FindSymbol' to Look for Symbols and 'RadialWalk' and 'LinearWalk' to walk long disances. Looking for Specific Items in the invenotry is basically the only option left!
The Tutorial Link:
Try this Link First
Otherwise this one
If you have any question, do not hesitate to ask me
Starblaster100