
Originally Posted by
NewToAutoing
Yeah, i used the walking aid thing when making it and yeah, i made sure it searched a little bit over the location of the color. I kinda thought about the failsafes and figured i'd put them in later if i was in fact using it the most common way. I used PerfectNorth at the start of the script, but I didn't try resetting the compass to North though. i'll try that. How often do you think i should do that? (Every five walking commands, something like that?) Thanks for the help

Actually, you only should make the compass north before you walk each time. Like, you chop the trees, then when your full with logs, make the compass north and walk to the bank.
Then, once your at the bank and about to walk back, make the compass north and get back to the tree. That should do it.
And what I've found is, unless the compass is facing east, west or south, if you use Perfect north or MakeCompass('N'), it will not even move the compass even if the position isn't at north.
So I made a procedure of my own to put the compass at a random angle, and then make it north like this:
SCAR Code:
{***************************************************************************
procedure JADCompass;
By: JAD
Description: Puts compass in random position, then makes north, then puts
at highest angle.
***************************************************************************}
procedure JADCompass;
begin
case random(3) of
0: MakeCompass('E');
1: MakeCompass('W');
2: MakeCompass('S');
end;
MakeCompass('N');
wait(200+random(200));
MakeCompass('N');
HighestAngle;
end;
You can use that if you like, but that would be the best working way to do it, because for some reason, if I ever try using MakeCompass('N') when the compass isn't facing S, E or W (on my computer at least), It doesn't work.
So if you are experiencing that problem, I'd try doing JAD compass or making your own procedure.
You can use it, but just remember to give credits if you do