HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

what is JASS?

12-26-2003, 10:02 PM#1
Shadow_Strike
what is jass, what does it do, and how do you do it?
12-26-2003, 10:37 PM#2
-={tWiStÄr}=-
jass.. is the triggering language behind the GUI i think... all just plain text. What it does is everything normal triggers do and a lot more, how do you do it, you convert a trigger to custom by going edit->convert to custom text in the trigger editor. as for learning it... theres some good tuts around but you need to know triggers first.
12-26-2003, 10:55 PM#3
Dragon
JASS is the programing language used in Warcraft III triggers.
12-26-2003, 11:21 PM#4
Arohk
emote_sweat
omg i tried that whit a verry simple thing
-unit enters region
-kill triggering unit

JASS
function Trig_simple_Actions takes nothing returns nothing
call KillUnit( GetTriggerUnit() )
endfunction

//===========================================================================
function InitTrig_simple takes nothing returns nothing
set gg_trg_simple = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_simple, gg_rct_1 )
call TriggerAddAction( gg_trg_simple, function Trig_simple_Actions )
endfunction

are there any things i can only do whit JASS?
12-26-2003, 11:29 PM#5
-={tWiStÄr}=-
yes, like non-integer loops are things you cant do in GUI, theres "for each integer A do ..." but that only allows one function inside the loop i think.. but you can have many functions in 1 loop that change and they dont have to be integer based. im a newb at jass but i know what i mean is right... i prolly said it wrong. You should probably use GUI unless you have to make a trigger spell which usually requires Jass editing but even then you should startt with a GUI skeleton and expand on it...
12-27-2003, 12:37 AM#6
Shadow_Strike
this is too confusing, why do they have the "gg_w/e" and the takes_nothing_returns_nothing? what does that mean? why do you have all this other crud that doesnt make sense? this is way too much info for a 13yr old:bgrun:
12-27-2003, 01:08 AM#7
Ninja Squirrel
takes_nothing_returns_nothing

seems to be a mimic of standard programming function construction. Basically what this says is that the function does not expect to receive any variables from the main program, and the main program should not expect anything back from the function.

takes_integer_returns_string

would mean thge program has to pass an integer value to the function, and then the function has to pass a string value back.
12-27-2003, 01:24 AM#8
weaaddar
eh theres a little bit more.

first off theres no underscores invovled.
think of it like a java method.
public datatype(datatype identifier,datatype2 identifier2)
in jass it looks like takes datatype identifier, datatype2 identifier2...

You can reference what was passed to the function using the identifier handle.
12-27-2003, 06:29 AM#9
Xinlitik
JASS is tough to learn if you dont have previous programming experience (IMO). I worked on it for an hour or so.. I can understand what's happening but there's no way I could write it lol.

If you're interested in learning about it, go here.
12-27-2003, 06:26 PM#10
-={tWiStÄr}=-
Quote:
Originally posted by Shadow_Strike
this is way too much info for a 13yr old:bgrun:

lol... thats not an excuse.. im 12 and i get it
but for the takes nothing returns nothing theres plenty of great tuts that cover other stuff too. I dont think other programing languages helps that much... i only know HTML... and thats not really anything like jass but i got it after... a while :bgrun:
12-27-2003, 09:18 PM#11
AIAndy
That is because HTML is no programming language.
The first programming language is always the hardest since you need to understand the logic behind it. Learning more languages is then much easier since they are usually more or less alike.
12-28-2003, 06:38 PM#12
-={tWiStÄr}=-
well, I tried to learn Javascript or whatever, i could kind of tell you what some given scripts would do, but i cant write my own because i dont know all of the functions and commands and stuff. but with jass, theres a database of all of the commands and tools where you just look up the command you want emote_confused oh and jass wasnt that hard, paramaters and returns were hardest to understand.