View Single Post
Old 12-25-2006, 08:29 AM   #9
Jacek
Banned
 
Join Date: Dec 2004
Posts: 1,095

Submissions (1)

Jacek is a jewel in the rough (164)Jacek is a jewel in the rough (164)

Send a message via MSN to Jacek
Default

Quote:
-JASS is the programming language used by the Wc3 engine.
I'd name it a scripting language
Quote:
-Easier to write out
Maybe, but good luck when you have to debug long spells
Quote:
-Doesn't use BJ's (which again is possible when done correctly)
Would you like some fries with that?
Quote:
-Neater, easier on the eyes for longer triggers
Right, especially with Vexorian's optimizer
Quote:
-Generally faster to do when you get the hang of it. Much less clicking around.
You forgot to count keyboard keys as "clicking"

Quote:
However, you must be careful with JASS.
Right, it may blow!
Quote:
So what's the first step to learning JASS?
-Forget everything you know about GUI, except for globals. JASS is far different from GUI, and trying to compare them is a bad idea. However, a good first step is to make some triggers in GUI, then make them JASS. Throw them into JASScraft and have a ball converting BJ's to natives and cleaning leaks. You'll learn fast. It defiantly helps the crossover from GUI to JASS.
I never care about leaks and BJs, only in 0.01 triggers but ok
Quote:
Collapse JASS:
function variable_test takes nothing returns nothing
  local unit u = GetTriggerUnit()
    call KillUnit(u)
    call KillUnit(GetTriggerUnit())
endfunction 
They both work, but which one looks neater?
Obviously the second one, because you don't have to mess with nullifying the variable
TIME FOR CHALLENGE!
Quote:
Collapse JASS:
 function variable_challenge takes nothing returns nothing
  local noob n = GetTriggerUnit()
    call KillUnit(n)
set n = dead
endfunction 
Jacek is offline   Reply With Quote