• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Crypt Features

Level 21
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.
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:
Top