Why do people find it so hard to learn jass?
When I was 13 I learned jass and could write complex spells (now 14) and some adults can not even learn it.
And NO I had no other programming knowledge at the time so I learned my programing skills from jass which is unusual.
The basics is. . .
You have functions
You have locals
You have default functions
You have boolean returning comparisons
You have returns
Try getting jass shop pro or jass craft since thoes programs are good ways to learn jass since they list ALL default functions allowing you to easily find what you are after.
Alot of learning jass is trial and error and also folowing a syntax.
A syntax is like a format that jass has to be in.
JASS:
function test takes integer a, integer b returns integer
local real r
set r = a*b
set r = r+a+b
set r = r*r/a/b
return r
endfunction
the first line starts a function and has a syntax of.
"function " + FUNCTION_NAME + " takes" + VALUES_TAKEN + " returns" + VALUE_TYPE_RETURNED
The function is closed by using the endfunction command
Creating a local uses the syntax
"local" + VARABLE_TYPE + REFERENCE_NAME
and appon creating a local it can be set like
local integer I = 1
and that will be valid
but doing. . .
JASS:
set I = 1
local integer I
Is not valid since
ALL LOCALS BUST BE DECLAIRED AT THE BEGINNING OF A FUNCTION BEFORE ANY OTHER ACTIONS ARE USED!
This is only a very brief tutorial that I hope helps you begin to understand the basics so that you can move onto the more advanced tutorials.