Fork me on GitHub

Documentation for the Maniaplanet game operating system

If you are already used to programming, this should be useful.

Maniascript Types

Language primitive types are :

Boolean
Text
Integer
Real
Vec2
Vec3
Int3
Ident

The other types, known as Classes, are composite types whose name starts with a 'C'. CSmPlayer, CManialinkLabel, etc...

Maniascript Values

Language constant values are :

TypeValues
BooleanTrue, False
TextEverything like "XXX" or """XXX"""
IntegerEverything like 123789
RealEverything like 123789. or .12312
Vec2 < Real1, Real2 >
Vec3 < Real1, Real2, Real3 >
Int3 < Integer1, Integer2, Integer3 >
Ident NullId
Class Null

You can not create your own Ident or Class values, however many API functions return such values, and you can store them or use them like other Maniascript variables

See more here...

Operators

Mathematical operators:

+add value
-substract value
* multiply value
/ divide value

Boolean operators:

!boolean "not", this will negate the boolean expression
&& boolean "and"
||boolean "or"

Comparison operators:

==equals
!= not equals
< less than
> greater than
<= less or equal than
>= greater or equal than

Incremention operators:

+= add value to current
-= substract value from current
*= multiply current value
/= divide current value