Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
The best way to learn about Jass is to create a simple trigger in the GUI and convert it to custom text(Edit>Convert to Custom Text).
Then you can look throguh the script and if you got any common sense at all you will realize that, for exmaple "GetLastCreatedUnit()" is "Last Created Unit".
Repeat as neccesary to learn more about Jass. After awhile you should understand the basic parts of Jass. To convert a trigger back to GUI hit ctrl+Z (undo). Thought all changes made while in custom mode is undone. You can quickly check how it looked in the GUI again.
Some notes about Jass:
All functions (actions) which doesn't have a return value (eg you get a result back from it, like "CountUnitsInGroup" returns the number of units in a group, but you don't get from one from "Hide Unit".) should have a "call" in front of it.
All comparisons should be after either a "if" (elseif) which is the "If" in an If/Then/Else action or a "exitwhen" which is when a loop should end (like when variable A exceeds 10 ( exitwhen A>10 ) which are the two main uses.
Functions with return value can also be in this manner:
if A>CountUnitsInGroup([Your group)] then
[Actions]
To set a variable type "set [You Variable]=[Your value]
To make a local variable (A variable which only exist in this function, like "Entering Unit" only exist in a trigger with the event "Unit Enter a Region" type "local [variable type, like "integer"] [variable name]"
Example:
local integer myinteger
All global variables (which is displayed when you push ctrl+B) has the prefix udg_ which means something like "User Declared Global" (I'm not sure at all )
There are alot more to learn but I don't feel like typing all down.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.