• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

JASS vs Triggers

Status
Not open for further replies.
Level 6
Joined
Jun 30, 2006
Messages
230
Are triggers or JASS better for spells? I mean, do JASS spells execute faster, slower, same, take less memory, more memory, etc?
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
triggers isnt the oposite of JASS, triggers can be JASS and GUI. but ehm, JASS is only better if the spells r complicated. with JASS u can make spells multi instancible and it has less leaks (well i heard) but u can clean leaks easily with GUI to (go dl leak checker on this site)
 
Level 11
Joined
Feb 22, 2006
Messages
752
There are really only three reasons why you would want to use JASS over GUI. Number one is to make your triggers more efficient. Blizzard made almost all GUI functions more complicated than they should be and thus they cause more lag than they should. Also, those "if-then-else" loops can also be made more efficient by using JASS Number two is that you can't create/manipulate local variables with GUI. You HAVE to use JASS, and local variables make things a lot easier to work with (and a lot more efficient). The third thing is there are some functions that simply are not available in GUI, so you HAVE to use JASS to use those functions.

If your spells have a LOT of special effects/lightning effects, make units do crazy things like knockback and jumping, and you require multi-instanceability, use JASS.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Ramza - if you're not lazy/incompetent/an I Dont Care person/n00bish, you DO use JASS :p

also, JASS is much faster than GUI ( if you can type at a competent rate ) to write, and has many features, (such as X/Y functions) that gui does not bother using

oh, and aznricepuff, to add to your list, GUI loops suck
 
Level 6
Joined
Apr 4, 2005
Messages
299
I personally using GUI triggers with custom JASS functions if necessary, because GUI is much faster for me (making what I want) and I have enough programing in my job, so I prefer clicking:]
 
Status
Not open for further replies.
Top