I'm having trouble figuring out how to label my dtm for walking. The report generated from objdtm editor gives the coords of the path. Do I still call my DTM and Integer or do I call it an IntArray, StringArray, or TPointArray? Also, do I keep it as printed within [ ] or do I need to change it to ( ) And do I need to add cx, cy, true at the end of the String or is it already included in Walk_Path?
This is what I have
Simba Code:
Procedure Clay_Walk;
var
cx, cy: Integer;
ClayPath: IntArray;
Begin
If Not(LoggedIn) Then Exit;
ClayPath:=DTMFromString['44:96:4:1:7:21:105:1:7:25:121:3:7:14:55:3:7:56:117:4:80:79:111:111:111:134:46:82', '67:125:4:1:7:58:93:1:7:63:110:3:7:64:139:3:7:51:135:5:81:80:111:88:78:120:25:111:32:60',
'54:138:5:1:7:70:50:1:7:75:115:1:7:24:126:3:7:98:145:3:7:64:93:5:81:78:27:34:14:95:38:107:73:108', '68:141:4:1:7:96:59:1:7:45:70:1:7:27:92:2:7:100:138:5:81:79:69:18:7:70:35:116:74:111',
'74:142:5:1:7:45:83:1:7:32:96:1:7:41:118:2:7:113:77:2:7:105:145:4:81:79:103:87:95:127:57:149', '92:124:5:1:7:75:45:1:7:58:71:1:7:45:96:2:7:113:85:11:7:37:18:4:80:79:100:63:75:19:17:100',
'74:123:5:1:7:46:55:1:7:29:55:1:7:21:67:1:7:17:96:2:7:95:44:5:79:78:56:22:29:116:69:149:85:123', '80:121:4:1:7:50:42:1:7:21:59:2:7:100:135:10:7:120:88:5:80:79:81:41:15:85:40:135:91:124',
'106:129:5:1:7:47:108:1:7:35:125:2:7:129:133:2:7:100:97:11:7:54:10:5:81:79:13:68:56:133:95:143:123:128',
'93:128:5:1:7:48:108:1:7:36:125:2:7:99:97:2:7:148:108:2:7:128:132:5:80:79:117:92:117:132:80:149:54:137',
'103:74:7:1:7:72:126:1:7:35:64:1:7:24:81:2:7:86:53:2:7:138:64:2:7:115:88:2:7:122:111:5:80:78:47:32:43:107:101:134:107:98'];
Begin
If ObjDTM_Find('44:96:4:1:7:21:105:1:7:25:121:3:7:14:55:3:7:56:117:4:80:79:111:111:111:134:46:82', cx, cy, True) Then
Begin
Writeln('At the Bank');
ObjDTM_WalkPath(ClayPath);
end;
Writeln('Walking to Clay');
end;
FreeDTM(ClayPath);
end;