Use cases :)
At the beginning, have a constant like:
const
Option = 'burn'; //Burn or Drop
TreeType = 'yew'; //yew, oak, normal, willow
When you want to chop the logs you can make separate procedures for each tree have something like
case Lowercase (TreeType) of
'normal': ChopNormal;
'oak': ChopOak;
'willow': ChopWillow;
end;
(not as good, but maybe a good starting point)
orUse cases to declare the tree information at the beginning of the script like this, and call this procedure when you start your script:
procedure LoadTreeInfo;
begin
case Lowercase (TreeType) of
'normal':
begin
TreeUptext := 'p Tr';
TreeColor := 626421;
TreeTol := 5;
end;
'oak':
begin
TreeUptext := 'p Oa';
TreeColor := 6054506;
TreeTol := 4;
end;
end;
end;
and then in your tree finding procedure replace the tree color with TreeColor, ect.
If you do this method you'll need to declare the things like TreeTol as global variables at the beginning.
When you want to get rid of the logs have something like
case Lowercase (Option) of
'burn': BurnLogs;
'drop': DropLogs;
end;
I just typed this in the browser but this should give you a general idea :)