JASS

From Wikipedia, the free encyclopedia

JASS is an event driven scripting language used in Blizzard Entertainment's Warcraft III game. Map creators can use it in the World Editor to create triggers and AI scripts. It is unknown what JASS stands for, although some users have created joke names, such as "Just Another Scripting Syntax."

Contents

[edit] Features

The language provides an extensive API that gives programmers control over nearly every aspect of the game world. It can, for example, give orders to units, change the weather and time of day, play sounds and display text to the player, and manipulate the terrain. It has a syntax similar to Turing and Delphi, although, unlike those languages, it is case sensitive.

[edit] Sample code

The following function creates a string containing the message "Hello, world!" and displays it to all players:

function Trig_JASS_test_Actions takes nothing returns nothing
 call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "Hello, world!")
endfunction

or if you want this only for one player:

function Trig_JASS_test_Actions takes player p returns nothing
 call DisplayTextToPlayer(p, 0,0, "Hello, world!")
endfunction

And if you want to print the message 100 times and show the iterator:

function Trig_JASS_test_Actions takes player p returns nothing
 local integer i=0
 loop
   exitwhen i==100
   call DisplayTextToPlayer(p, 0,0, "Hello, world! "+I2S(i))
   set i=i+1
  endloop
endfunction

[edit] External links

[edit] Documentation

  • An Introduction To JASS--A beginner's guide to the language, covering its basic features and capabilities.
  • JASS Manual--An advanced guide to the language, intended to serve as a reference for users who are already proficient with it. Includes a comprehensive API browser.
  • Wc3jass Tutorials--A collection of tutorials about the language.
  • wc3c JASS Tutorials--Other tutorials about the language.

[edit] Communities

[edit] Scripts

[edit] Tools

Languages