User Tools

Site Tools


crpl:crplreference

This is an old revision of the document!


<!--In order to align tables in the two columns, I used a hack. I placed only one table in a column, created a column break, placed the opposing table and then ended the column formatting. Rinse/repeat. Essentially two tables are paired in a set of columns and this pattern is then repeated. --> <-CW3 Home<- CRPL Home

CRPL Reference

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.

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.

Table of Contents

Language API

<span id="vars_and_functions"></span>

<span id="comparators"></span>

Comparators
gt gte lt lte
eq neq eq0 neq0
TRUE FALSE

<span id="special"></span>

Special
#

<span id="logical_operators"></span>

Logical Operators
and or xor not

<span id="stack_manipulation"></span>

Stack Manipulation
swap dup dup2
pop ClearStack StackSize

<span id="math_commands"></span>

<span id="flow_control"></span>

<span id="timers"></span>

<span id="string_commands"></span>

<span id="input_commands"></span>

<span id="lists"></span>

Platform API

<span id="movement_commands"></span>

<span id="terrain_and_wall_commands"></span>

<span id="score_commands"></span>

<span id="script_commands"></span>

<span id="digitalis_commands"></span>

<span id="unit_commands"></span>

<span id="image_commands"></span>

<span id="sound_commands"></span>

Sound Commands
PlaySound

<span id="creeper_commands"></span>

<span id="conversation_commands"></span>

<span id="spore_commands"></span>

Spore Commands
CreateSpore

<span id="runner_commands"></span>

<span id="debugging"></span>

<span id="utility_commands"></span>

<span id="screen_commands"></span>

<span id="text_commands"></span>

crpl/crplreference.1426785902.txt.gz · Last modified: 2015/03/19 13:25 by warren