Command Files - vanjac/zoomscape-info GitHub Wiki

Command files contain sequences of commands in plaintext, which are executed in response to certain events. Command files have the extensions .CMD, .CLK, .BUM, and sometimes .TXT, depending on their purpose.

Syntax

One statement per line. The first word of the statement is the Command, followed by arguments separated by spaces. Commands are not case sensitive. The only control structures are a handful of "if" blocks which must be terminated with endif, with an optional else in the middle.

Argument types:

  • Strings: can be written with or without quotes
  • Integers
  • Vectors: comma-separated lists of integers.
  • Booleans: indicated with ON or OFF
  • Boolean Properties

Types of command files

  • .CMD files are generic command files, usually called by other files using commands like exec and play.
    • STARTUP.CMD: called at the start of the game
    • CONFIG.CMD: seems to be an unused alternative to KA.CNF, called before anything is loaded
  • .CLK files are triggered when the player clicks the object named/aliased after the file.
  • .BUM files are triggered when the player bumps into the object named/aliased after the file.