User Tools

Site Tools


cw4:4rpl_console

The 4RPL Console

The Console is available during map editing to test, evaluate and debug scripts. It is an independent execution unit that is not associated with a specific unit on the map. It has its own Unit ID (UID=0) and is identified differently in the Print Log. Trace Output is provided in the Output Window1).

The console allows for scripts to be

  • Edited in the editor of your choice2)
  • Compiled (with the compilation results shown in the output window)
  • Executed (run) once (a compile will precede the run)
  • Executed (run) continuously, once per game update, until the stop button is pressed (a compile will precede the run)

Note that the script will run regardless of whether the game is paused. If you expect your script to interact with Creeper flow, or effect unit movement, etc, the game should not be paused.

1)
The Output Window will truncate long outputs after approx. 250 lines.
cw4/4rpl_console.txt · Last modified: 2023/01/17 03:50 by Karsten75