Game Race Settings


For the following commands the player or cgi script must set the '$Game' variable. Only one $Game variable should be used per message. The player who sent the message must be recognized by AutoTroll.

$Game: 23Sets the game. This must exist in messages where the player will be sending any game variables.  
$QPlayer : yesValid response is 'yes' or 'no'. Turns on/off The Q for the player. The player must be playing a race in the game.  
$RemoveAlly : 3Removes an ally.  
$AddAlly : 4Valid numbers are 1..11. Adds an ally. This is a little tricky. The player adds an ally and that means the other player (fascists in this example) will start getting this player's RST files. That other player (4) must send an $AddAlly command also to have an "equal alliance".  
$JoinRace : 3Valid numbers are 1..11. If Allow Joining is set in the game config screen, and race '3' in this example is open, the player will be added to the game and immediately sent his RST files. Multiple $JoinRace commands can be in one message and AT will process them in order from top to bottom. But realize that WebTroll and CGI forms may not always put them in the order you'd expect.  
$QuitRace: 4Valid numbers are 1..11. Can only be sent if the player is playing race 4. When quitting, The Q is turned on for the player  
$RaceFlag1 : YesValid response are 'yes' or 'no'. Boolean flag set by player. You can use thse for anything you'd like, like if they player wants their name published for that game - and do an if test to see if this is false and ifso display the name.  
$RaceFlag2 : no
$RaceFlag3 : no
$RaceFlag4 : no

$RaceFlag5 : no
$RaceFlag6 : no
$RaceFlag7 : no
$RaceFlag8 : no


Note: AutoTroll maintains a database file in each game directory to track when a player joins and when they drop. Once a player joins a game and is sent their RST, AutoTroll will not allow them to quit and join as a different race. The player can join again, but must join the same race. If a player joins a race by mistake or played one race and wants to play another - you'll have to do this for him manually. The file is named 'atTurnData.dat' and is written by AT. You should not delete or try to modify this file.