Sir Ducksworthy
2012-04-12 13:44:44
I'm aiming for Ghetto Bot to be a Low Memory Consuming script if anyone has any Suggestions to make this better It'd be appreciated.
I was thinking of probably moving from a case to just different Procedures and then Assigning it to another procedure in the Main Loop During Setup so It would only need to Do 1 Computation Each time instead of Going through a whole case.
I was thinking of probably moving from a case to just different Procedures and then Assigning it to another procedure in the Main Loop During Setup so It would only need to Do 1 Computation Each time instead of Going through a whole case.
//New method for me Approaching multiple Different TPA's
//Trying to Avoid more Computations
'Cow':
begin
repeat
if(FindTpa(HueModifier, SatModifier, 15, 15, Color,
Tol, xx1, yy1, xx2, yy2, Text, ['ttack']))then
break;
if(FindTpa(HueModifier2, SatModifier2, 15, 15,
Color2, Tol2, xx1, yy1, xx2, yy2, Text, ['ttack']))then
break;
if(FindTpa(HueModifier3, SatModifier3, 15, 15, Color3, Tol3,
xx1, yy1, xx2, yy2, Text, ['ttack']))then
break;
if(FindTpa(HueModifier4, SatModifier4, 15, 15,Color4, Tol4,
xx1, yy1, xx2, yy2, Text, ['ttack'])) then
break; //If one of these ^ break's are used it means Found is True
NotFound:=True; //Using this to Avoid one more Computation at the start
break; //Since NotFound is Automatically False by default when The Var is Declared at the start
until(false);
end;