• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Could you help me with understanding Jass??

Status
Not open for further replies.
Level 3
Joined
Feb 12, 2005
Messages
22
I am pretty good with ordinary triggers but is there any thing better about Jass then the trigger editor on WE??? If so are there any tutorials that i could read? Jass seems to be a bit more technical then whats on the trigger editor...
 
Level 8
Joined
Apr 3, 2004
Messages
507
If you get WinMPQ and open the war3patch.mpq, you can extract the Scripts\common.j and Scripts\Blizzard.j files. Those contain virtually all the functions that you can call in jass.

Most useful, generally, is to convert GUI actions to jass and see what functions they call. Most of those functions are in Blizzard.j. You can find them in Blizzard.j and see what they do. Often they just call a common.j function, so you could skip a step and call just that instead.
Other times, they do special things to make sure that they've been passed good parameters, and other such safety-ness. A knowledgeable user could be more particular and thus avoid having to call the safe versions of functions.

Jass lets you declare local variables that are only used within the instance of the function that they're defined in, so you don't need to worry about crossing wires. To call a local, you type
Code:
local variabletype variablename
which could be, for example,
Code:
local unit Caster
local group UnitsInRange
local real FacingAngle
etc. etc.

Are you familiar with programming languages? Jass is just another language, albeit limited in some ways and specially designed to manipulate the Warcraft 3 engine.
 
Status
Not open for further replies.
Top