- Joined
- Mar 27, 2012
- Messages
- 3,232
The language is called Crypt Script or Crypt for short.
All external script files use the .cry format and get converted to .j upon compilation.
All syntactic sugar is optional and only meant to make the scripts cleaner/faster to write.
All external script files use the .cry format and get converted to .j upon compilation.
All syntactic sugar is optional and only meant to make the scripts cleaner/faster to write.
JASS:
//Increment operator
i++
set i = i + 1
//Decrement operator
i--
set i = i - 1
//Addition
i+=x
set i = i + x
//Subtraction
i-=x
set i = i - x
//The "set" keyword can be omitted.
i = x + y
set i = x + 1
//"break" can be written instead of "exitwhen true"
loop
break
endloop
loop
exitwhen true
endloop
//The "if" and "then" keywords can be omitted in == comparisons.
//You can omit both, one, or neither of them.
x == y
if x == y
x == y then
if x == y then
Last edited: