The official Junk Metal Help Guide
by Calus CoRPS
Junk Metal uses a easily learned language called Gem +
(created by Calus CoRPS). You can use Gem + to edit your scripts for your bot and then
fight other bots. (Note: I tried to base gem + off of Gerdans Bot Duels language)
Gem + Language
Walk(DIRECTION,TILES);
DIRECTIONS: FORWARD or BACKWARD
-The Walk() is to walk in the direction you are facing. To change you direction see Face()
-----Example: Walk(FORWARD,1); //The bot will walk the current direction it is facing one tile.
Face(DIRECTION,TIMES);
DIRECTIONS: RIGHT or LEFT
-The Face() is to turn a certain direction, if you use Face() and then Walk(), then you will walk in the direction you are facing.
-----Example: Face(RIGHT,,2); //The bot turn to the right twice.
Attack(WEAPONNAME,ENERGY);
WEAPONNAME: You can get a weapon at the bot shop, once you get one put the name of the weapon in caps.
ENERGY: How much energy it takes from you. The more it takes the stronger the hit.
-The Attack() is to attack a bot.
-----Example: Attack(SAW,10); //The bot will use it saw to attack and will do the damage it normaly does + 10 with the subtraction of its energy + 10.
Search(DIRECTION);
DIRECTION: Front, Back, Left, Right
VARS: You will need to use vars to check if anyting was found while searching. VAR5: If VAR5=0 Nothing found, If VAR5=1 Wall found, If VAR5=2 Bot found.
-The Search() is to search in what ever direction you defined to see if anything is there.
-----Example: Search(FRONT); //Searches in front of you.
Adding(VAR,NUM);
VARs: VAR0 - VAR9
-The Adding() is to add a number to a var, for example VAR1 is 2 and you do Adding(VAR1,3);, now VAR1 will be 5.
-----Example: Adding(VAR3,2); //Adds 2 to VAR3.
If(VARS,SIGN,NUMBER);
VARS: ENERGY, ARMOR, DIR, DIST, Vars 1-6.
SIGN: ==, >=, <=, != >, >.
NUMBER: number
-Creates a conditional test.
-----Example:If(VAR5,==,1)@Attack(SAW,10); //If you use the scane proc then if a BOT is in front of you, then you attack it.
Pause(TIME);
TIME: number
-This can be used so the bot can rest to gain energy back. 1/10 of a second gets you 2 energy points.
-----Example: Pause(8); //Pauses 8/10ths of a second.
Searchline(BOT);
-This searches in a line in front of you for a bot.
-----Example: Searchline(BOT); //Searches in a line in front of you
Set(VAR,VALUE);
Adding(VAR,NUMBER);
-This adds the Number to the var.
-----Example: Adding(VAR3,2); //This adds two to VAR3. THis means if VAR3 was 3 then it will add 2 to it.
Extra Commands:
These are simple extra commands that hardly needs a definition.
Return();
//Returns to the first line.
credit:
God- Everything.
Calus CoRPS- Creating the game.
Dantom International- Making such a great game making engine/site.
Junk Metal Fans- Helping me get motivated in making this game.