Highlight and copy or functions from below to your bot code they fit together in your bots brain to make it modular! Highlight and copy below: attack the closest bot attack the closest bot: set abot to closest bot set direction to abot move if abot medium range fire item1 fire item2 endif return Hit ctrl-c, go to bot edit page and paste for your bot brain. update it and watch. repeats the code between main: and :main If you write something that is not a command (a command is move left, move right...) It assumes it is a botdrop (function) and searches for it below the :main So copy and paste the program above and try it out. Learn the commands and make your own functions. You can also write commands inside the main: and :main Here are 'botdrops' you can highlight and drop into your bots code. ATTACK THE CLOSEST BOT
DON'T SHOOT AT MY OWN BOTS instead of typing 'fire item1' write 'fire 1' then add this function to the bottom of your bot code
DON'T FIRE A BULLET EACH TIME
PASSING THIS POINT IN CODE
To make it fire less often increase the 5 to a
bigger number
|