Home
Documents
Appendices

APPENDIX 4 - QUICK SYNTAX GUIDE

For complete information on the commands, please see Part 3 of this handbook.

TANK MOVEMENT

MOVE [TANK] FORWARD "#"
MOVE [TANK] BACKWARD "#"
TURN [TANK] LEFT "#"
TURN [TANK] RIGHT "#"
TURN [TANK] TO "ANGLE"
TURN [TANK] TO "X" "Y"
TURN [TANK] TO FACE [ENEMY] [TANK]
TURN [TANK] TO FACE ENEMY HQ
ALIGN TANK [WITH SCANNER]
IF TANK [IS] ALIGNED WITH SCANNER] THEN [BRANCH TO : DO] "LABEL"
IF TANK [IS] NOT ALIGNED [WITH SCANNER] THEN [BRANCH TO : DO]
   "LABEL"
IF MOVEMENT IS] OBSTRUCTED THEN [BRANCH TO : DO] "LABEL"
IF [MOVEMENT IS] NOT OBSTRUCTED THEN [BRANCH TO : DO] "LABEL"
IF OBSTRUCTION [IS] ENEMY HQ THEN BRANCH TO : DO] "LABEL"
IF OBSTRUCTION [IS] ALLY HQ THEN [BRANCH TO : DO] "LABEL"
IF TANK [IS] FACING [ENEMY] TANK THEN [BRANCH TO : DO]
   "LABEL"
IF TANK [IS] NOT FACING [ENEMY] TANK THEN [BRANCH TO : DO] "LABEL"
IF TANK [IS] FACING ENEMY HQ THEN [BRANCH TO : DO] "LABEL"
IF TANK [IS] NOT FACING ENEMY HQ THEN [BRANCH TO : DO] "LABEL"
IF TANK [IS] FACING "X" "Y" THEN LABEL
IF TANK [IS] NOT FACING "X" "Y" THEN LABEL
DETECT [OBSTRUCTION] AT "#"
DETECT [OBSTRUCTION] AT TANK DIRECTION
DETECT [OBSTRUCTION] AT SCANNER DIRECTION
IF [TANK] TREADS [ARE] FUNCTIONAL THEN [BRANCH TO : DO] "LABEL"
IF [TANK] TREADS [ARE] NOT FUNCTIONAL THEN [BRANCH TO : DO]
   "LABEL"

USING THE SCANNER

ROTATE [SCANNER] LEFT "#"
ROTATE [SCANNER] RIGHT "#"
ROTATE [SCANNER] TO "ANGLE"
ROTATE [SCANNER] TO "X" "Y"
ROTATE [SCANNER] TO FACE [ENEMY] TANK
ALIGN SCANNER [WITH TANK]
SCAN FOR [ENEMY] TANK
SCAN FOR [CLOSEST] OBJECT
SCAN FOR ENEMY HQ
LOCK SCANNER
UNLOCK SCANNER
JAM [SCANNER SIGNAL]
LAUNCH [REMOTE SCANNER]
IF SCANNER [IS] FUNCTIONAL THEN [BRANCH TO : DO] "LABEL"
IF SCANNER [IS] NOT FUNCTIONAL THEN [BRANCH TO : DO] "LABEL"
IF SCANNER [IS] ALIGNED [WITH TANK] THEN [BRANCH TO : DO] "LABEL"
IF SCANNER [IS] NOT ALIGNED [WITH TANK] THEN [BRANCH TO : DO]
   "LABEL"
IF [ENEMY] TANK [WAS] FOUND THEN LABEL
IF [ENEMY] TANK [WAS] NOT FOUND THEN LABEL
IF [CLOSEST] OBJECT [WAS] FOUND THEN [BRANCH TO : DO] "LABEL"
IF [CLOSEST] OBJECT [WAS] NOT FOUND THEN [BRANCH TO : DO] "LABEL"
IF ENEMY HQ [WAS] FOUND THEN [BRANCH TO : DO] "LABEL"
IF ENEMY HQ [WAS] NOT FOUND THEN [BRANCH TO : DO] "LABEL"
IF [CLOSEST] OBJECT [IS] ENEMY HQ THEN [BRANCH TO : DO] "LABEL"
IF [CLOSEST] OBJECT [IS] ALLY HQ THEN [BRANCH TO : DO] "LABEL"
IF [SCANNER IS] LOCKED THEN LABEL
IF [SCANNER IS] UNLOCKED THEN LABEL
IF [TANK IS] BEING SCANNED THEN [BRANCH TO : DO] "LABEL"
IF [TANK IS] NOT BEING SCANNED THEN [BRANCH TO : DO] "LABEL"
IF REMOTE [SCANNER IS] AVAILABLE THEN [BRANCH TO : DO] "LABEL"
IF REMOTE [SCANNER IS] UNAVAILABLE THEN [BRANCH TO : DO] "LABEL"

USING THE WEAPON

FIRE WEAPON] AT [ENEMY] TANK
FIRE [WEAPON] AT [CLOSEST] OBJECT
FIRE [WEAPON] AT OBSTRUCTION
FIRE [WEAPON] AT "X" "Y"
FIRE WEAPON] AT TANK DIRECTION
FIRE [WEAPON] AT SCANNER DIRECTION
FIRE [WEAPON] AT ENEMY HQ
IF WEAPON [IS] FUNCTIONAL THEN [BRANCH TO : DO] "LABEL"
IF WEAPON [IS] NOT FUNCTIONAL THEN [BRANCH TO : DO] "LABEL"
IF [ENEMY] TANK [IS] WITHIN [WEAPON] RANGE THEN [BRANCH TO : DO]
   "LABEL"
IF [ENEMY] TANK [IS] BEYOND [WEAPON] RANGE THEN [BRANCH TO : DO]
   "LABEL"
IF [CLOSEST] OBJECT [IS] WITHIN [WEAPON] RANGE THEN
   [BRANCH TO : DO] "LABEL"
IF [CLOSEST] OBJECT [IS] BEYOND [WEAPON] RANGE THEN
   [BRANCH TO : DO] "LABEL"
IF ENEMY HQ [IS] WITHIN WEAPON] RANGE THEN [BRANCH TO : DO]
   "LABEL"
IF ENEMY HQ [IS] BEYOND [WEAPON] RANGE THEN [BRANCH TO : DO]
   "LABEL"

TANK STATUS

IF FUEL [IS] REMAINING THEN [BRANCH TO : DO] "LABEL"
IF FUEL [IS] EMPTY THEN [BRANCH TO : DO] "LABEL"
SELF DESTRUCT

Defense Shield

RAISE [SHIELD]
LOWER [SHIELD]
IF SHIELD [IS] UP THEN [BRANCH TO : DO] "LABEL"
IF SHIELD [IS] DOWN THEN [BRANCH TO : DO] "LABEL"

Tank Repairs

REPAIR INTERNAL
REPAIR ARMOR
REPAIR TREADS
REPAIR SCANNER
REPAIR WEAPON
IF [REPAIR] KIT [IS] AVAILABLE THEN [BRANCH TO : DO] "LABEL"
IF [REPAIR] KIT [IS] UNAVAILABLE THEN [BRANCH TO : DO] "LABEL"

USING THE COMMLINK

TRANSMIT [CODE] "#" TO TEAM]
CLEAR [COMMLINK] DATA
COPY [COMMLINK] DATA
SWITCH [COMMLINK] ON
SWITCH [COMMLINK] OFF
IF ALLY TANK "#" [IS] ACTIVE THEN [BRANCH TO : DO] "LABEL"
IF ALLY TANK "#" [IS] INACTIVE THEN [BRANCH TO : DO] "LABEL"

MISCELLANEOUS COMMANDS

GET DISTANCE [TO] "X" "Y"
GET RANDOM [TO "#"]
BEEP
BREAK

ATTAINING MANUAL CONTROL

IF [LAST] KEY [PRESSED] THEN [BRANCH TO : DO] "LABEL"
IF [LAST] KEY [PRESSED] = "1 CHARACTER" THEN [BRANCH TO : DO]
   "LABEL"

SYSTEM COMMANDS

BRANCH TO "LABEL"
GOTO "LABEL"
DO "LABEL"
GOSUB "LABEL"
RESUME

USING LIBRARY CAPSULES

INCLUDE "CAPSULE FILENAME"

Toadstool's Home | Contact © 2003 Toadstool's Game Shrines. All Rights Reserved.