Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programming noob in need.
#5
Making a bot declare it is not destroyed is not the best of solutions since it's impossible for a bot to state otherwise. After all it cannot send any information if it's no longer operational.

A much more elegant solution would be to have other bots check for it being functional.
Code:
object botURchecking; // declaring variable
botURchecking = radar(BotCategory, 0,360,0,1000,FilterFriendly); // looking for a friendly bot
if (botURchecking != null) // checking if it exists


If you'd like to share information between multiple bots you'll have to use a class. I'd recommend checking information available in the sat-COM and playing through the exercises available in-game.
The botURchecking variable can also be shared through a class.


As a general tip I'd like point out that most bot battles resemble a race where players attempt to attack as soon as possible while the opponent is still defenceless. There rarely is enough time to get any bots out except the starting WheeledGrabber.
My Code Battle League program: MhrodeBattle.txt

Welcome back, Mrocza. You last visited: Sunday, July 7th, 2013, 02:12 pm 
http://imgur.com/L3Y8bQz


Messages In This Thread
Programming noob in need. - by Quartofel - 12-25-2016, 02:29 PM
RE: Programming noob in need. - by tomangelo - 12-25-2016, 04:14 PM
RE: Programming noob in need. - by Quartofel - 12-25-2016, 04:28 PM
RE: Programming noob in need. - by Quartofel - 12-27-2016, 11:24 PM
RE: Programming noob in need. - by Mrocza - 12-28-2016, 07:55 AM
RE: Programming noob in need. - by Quartofel - 12-28-2016, 12:53 PM
RE: Programming noob in need. - by tomangelo - 12-28-2016, 04:54 PM
RE: Programming noob in need. - by Quartofel - 12-29-2016, 12:50 PM
RE: Programming noob in need. - by krzys_h - 12-29-2016, 01:04 PM
RE: Programming noob in need. - by Quartofel - 12-29-2016, 04:31 PM
RE: Programming noob in need. - by Mrocza - 01-02-2017, 07:24 PM
RE: Programming noob in need. - by krzys_h - 01-02-2017, 08:48 PM
RE: Programming noob in need. - by Mrocza - 01-03-2017, 09:06 AM
RE: Programming noob in need. - by krzys_h - 01-03-2017, 10:02 PM
RE: Programming noob in need. - by tomangelo - 01-03-2017, 11:02 PM
RE: Programming noob in need. - by Mrocza - 01-04-2017, 08:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)