Advertisement
Mr-A

A-Engine AI Script Candidate

Jan 23rd, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. <<-INIT
  2.   $l.target = &get_nearest{@self.team != @team};
  3. INIT
  4.  
  5. <<-RANDOM_CODE{$l.hey, $l.yo}
  6.     $l.hodgepodge = 124151354;
  7.     $result = $l.hey + $l.yo/$l.hodgepodge;
  8. RANDOM_CODE
  9.  
  10. <<-MAIN
  11.   IF ($l.target.z_pos > $l.target.z_pos) THEN
  12.     &hold_key{<u>}; #move up
  13.   ELSE
  14.     &hold_key{<d>}; #move down
  15.   END
  16.  
  17.   IF ($l.target.x_pos > $l.target.x_pos) THEN
  18.     &hold_key{<r>}; #move rigth direction
  19.   ELSE
  20.     &hold_key{<l>};
  21.   END
  22.  
  23.   IF (&distance{$l.target.screen_id} == 3) THEN
  24.     &tap_key{<0>, 2};
  25.     $l.somelocalreg = <<-RANDOM_CODE{5, 6}>>;
  26.   END
  27. MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement