View Full Version : What are DDTMs for?
mat_de_b
08-24-2007, 05:38 AM
I understnad what they are, but im not intirely sure how they are used, becuase i thought a dtm was useful becuase it never changed, so why do you need dynamic ones :confused:
ZephyrsFury
08-24-2007, 09:14 AM
Dynamic DTM's are DTM's which can be created while a script is running. This means you can create it with dynamic colours. For example, you could use SRL's FindRoadColor then create a DTM using that colour so the DTM is "personalised" for that time only. DDTM's are useful for points where the colour change is quite dynamic (road colour, ladder colour, water colour, door colours, etc.)
PwNZoRNooB
08-24-2007, 11:35 AM
Search button, Fakawi has a nice tutorial of it.
rotflmfwao
08-24-2007, 09:07 PM
Also, they pwn for autocoloring, because they can add tolerance and area without loading more than 1 dtm.
EX:Function GetFeildColor:Integer;
Var q:TPoint;
i:Integer;
Begin
ddtmarea:=1;
ddtmtol:=20;
LoadDTMs;
For i:=0 to 5 do
Begin
IF (FindDTM(BFeild,q.x,q.y,MMX1,MMY1,MMX2,MMY2)) Then
Begin
MMouse(q.x+30,q.y+30,2,2);
Result:=GetColor(q.x,q.y);
FreeDTMs;
Exit;
End;
Inc(ddtmarea);
ddtmtol:=ddtmtol+5;
End;
Writeln('Trouble autocoloring the feild...');
FreeDTMs;
Result:=2596502;
End;
Killerdou
08-24-2007, 09:17 PM
or what about ores, the same dtm really, only some points have different colors(in inventory i mean :p) and you can also increase the tolerance(of color and place) when you do not find it the first time...
rotflmfwao
08-24-2007, 09:28 PM
Yeah, that too. They cut down on the amount of dtm's you need, and also are good for autocoloring.
ZephyrsFury
08-25-2007, 02:23 AM
or what about ores, the same dtm really, only some points have different colors(in inventory i mean :p) and you can also increase the tolerance(of color and place) when you do not find it the first time...
Well ores would be good for a normal DTM cos the only point that would be a different colour would be the main point in the middle of the ore (you could set the tolerance to 255 which means any colour). All the others would be on the edges (the black lines) which are the same colour in all inv objects.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.