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.

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 DisplayTextToForce( GetPlayersAll(), "Hello, world!" )
endfunction


or if you want this only for one player:


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


And if you want to repeat the message 100 times:

function Trig_JASS_test_Actions takes player p returns nothing
 local integer i
    set i=0
    loop
        exitwhen i==100
        call DisplayTextToForce( p, "Hello, world!" )
        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

  • Wc3Campaigns--A forum for discussing Warcraft III modding, art and many other Warcraft III related things.
  • Warcraft III Anvil--A forum for discussing Warcraft III gaming, modding, quality mapping & scripting.
  • TheHelper--A forum for discussing global Warcraft III mapping, JASS scripting and more.
  • The Jass Vault--A forum for discussing JASS development with other programmers.
  • Warcraft III Map Development--Blizzard's official Battle.net forum for the World Editor.

[edit] Scripts

[edit] Tools