okokokok
2013-06-12 07:59:04
Hello guys,
I have one question about the const values in a script.
I have the next procedures (just an example):
Now my question: How can I integrate FoodType in the procedure "eat"?
Thanks in advance
I have one question about the const values in a script.
I have the next procedures (just an example):
program new;
begin
Const
FoodType = Swordfish; //Type of food you will use
procedure SetDTM;
var Lobster, Swordfish, Tuna, Trout, Salmon: Integer;
begin
Swordfish := DTMFromString('mrAAAAHic42BgYLgGxfeB+BEQ3wDiC0B8CojPAfE8IJ4CxNOg7KVAvAKIl0H5AbbWDMH2NgyhTnYMRREhQBFGMJ5UkMUQ4+7CwArk4cOMBDAMAAB8dRG7');
Lobster := DTMFromString('m1gAAAHic42JgYLgBxPeg9CUgPgfEp6BskPgjKH0IiM9C5U8A8TGo2H4g3gLE24D4CBAvd+MAkowMW3y5wOxDQVwMHOzsDHOcOBiqTdgZtvtxgdmsQFXEYEYiMQIAAENQGAQ=');
Tuna := DTMFromString('mwQAAAHic42RgYLgGxY+A+AkQ34byTwHxGSC+AMQvgfgBEN+BqnsFxB+A+BMQvwHiF0B8SJeLIcpIC8hihOPZIR4Mx0vTGKYoczAUSLIzsAJFCWFGIjAcAADJdxXK');
Trout := DTMFromString('mrAAAAHic42BgYLgOxNeA+B4QPwHiB0B8BYhPAPElIGZnZGBgAmI2IOYFYgEg5gNiCSDmAOIwsxgGL9UgoEpGBj/1UIYutxkMc/xXMbQ4T2BIsE1nYAXK4MOMBDAMAADwKQ8k');
Salmon := DTMFromString('m1gAAAHic42JgYLgGxQ+A+BEQ3wHiG0B8BYjPAfEZIL4AxGaMDAx6QKwFpU2A2BKIbYDYDoitGCFqckMCGKz1dBjCXRwZ4j3dGFrTEoG6GRmq46MY5lYWMYT4+jL4WJkzsAJFicGMRGIEAACVVRPo');
end;
Procedure FreeDTM;
var Lobster, Swordfish, Tuna, Trout, Salmon: Integer;
begin
FreeDTM(Swordfish);
FreeDTM(Lobster);
FreeDTM(Tuna);
FreeDTM(Salmon);
FreeDTM(Trout);
end;
Procedure Eat;
var Lobster, Swordfish, Tuna, Trout, Salmon,x,y: Integer;
begin
if FindDTM('OneOfThoseDTMS',x,y,MIX1,MIY1,MIX2,MIY2) THEN
begin
Writeln('Found Food');
end;
end;
end.Now my question: How can I integrate FoodType in the procedure "eat"?
Thanks in advance