<-CW3 Home<- CRPL Home

CRPL Reference

There is a slow and ongoing process to convert entries in this wiki to the more user-friendly format of the 4RPL wiki. Contributors are welcome. Note that the process may never complete.

See here for the old/new format.

This reference is divided into two major sections with many subsections in each of those. The purpose of this reference is to provide an index to all commands in the language, and define the input required and the output produced by each command. In many instances a short example of the use of the command is provided.

The Language API (Application Programming Interface) is related and common in many languages - these are used to control program execution and are part of the core language.

The rest of CRPL is contained in the Platform API and is CW3-specific. These govern the behavior of objects in the CW3 game.

To get started, review the CRPL overview and the programming tutorial. If you seek to write neater code, read the style guide.

There is also an alphabetic list of commands in the language. In addition, you can examine map resources from other maps and missions from the game.

If you are looking for the in-game images (and some that was never used), then look no further than the Units page!.

Table of Contents

Language API

External references

Platform API

Unit Values

Language API

Vars and Functions

Comparators

Comparators
gt gte lt lte
eq neq eq0 neq0
TRUE FALSE

Special

Special
#

Logical Operators

Logical Operators
and or xor not

Stack Manipulation

Stack Manipulation
swap dup dup2
pop ClearStack StackSize

Math Commands

Flow Control

Timers

String Commands

Input Commands

Lists

Platform API

Movement Commands

Terrain and Wall Commands

Score Commands

Script Commands

Digitalis Commands

Unit Commands

Image Commands

Sound Commands

Sound Commands
PlaySound

Creeper Commands

Conversation Commands

Spore Commands

Spore Commands
CreateSpore

Runner Commands

Debugging

Utility Commands

Screen Commands

Text Commands