Robots are coded in Robot Scripting Language (RSL), and can be created in all text editors such as Notepad. Robots are usually worked on and distributed in .prg format, but some coders choose to scramble their robots and distribute them as .dst files. The scrambling software was created by Brad for Robot Battle 1.3 and later edited by Joseph Fowler (aka Sorcerer) and Mark Duller to give two separate programs both compatible with Robot Battle 1.4.
RSL has been said to resemble many programming languages including Basic, C, and JavaScript. Each robot has one or many sections, separated by section names and curly brackets, "init" being the only required section and where other sections are defined by an event and a priority.
The Core section does not need a priority, and contains the details of what the robot will do when it isn't doing anything else. The Ascan, when used, usually has the lowest priority (least important) and takes place whenever the robot is moving. The other events take place when an object is detected with the radar or collided with by the body.
The parts of the robot are controlled by commands.
The easiest way to make a robot is to look at the ones which come free with the game, Combo, Smart Corner, Events, Fire, Rammer, Shell, Side Liner, Target, Walls II and Zag. These robots demonstrate uses of the simple commands above, as well as some more advanced tactics such as the use of radio and the differences when creating a robot with "command blocking" turned off.
Read more about this topic: Robot Battle
Famous quotes containing the words robot and/or language:
“The person who designed a robot that could act and think as well as your four-year-old would deserve a Nobel Prize. But there is no public recognition for bringing up several truly human beings.”
—C. John Sommerville (20th century)
“It is a mass language only in the same sense that its baseball slang is born of baseball players. That is, it is a language which is being molded by writers to do delicate things and yet be within the grasp of superficially educated people. It is not a natural growth, much as its proletarian writers would like to think so. But compared with it at its best, English has reached the Alexandrian stage of formalism and decay.”
—Raymond Chandler (18881959)