• 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 function help (introduction)

Status
Not open for further replies.
Level 3
Joined
Dec 12, 2009
Messages
32
Hey! I am not sure of what a jass function is. So I wondered if anyone could give me a bit basic information of what they are used for, how u insert them in wc3 world editor and so on.
Thanks
 
Level 15
Joined
Aug 31, 2009
Messages
778
JASS is the underlying coding language of Warcraft 3. When you write a trigger in the trigger editor, it is often referred to as GUI - Graphical User Interface. What this actually is, is a slightly more understandable and simple version of JASS coding. When you write your trigger in GUI, the game actually converts this to JASS.

You can select a trigger and go to the Edit Menu and select "Convert to Custom Text" to turn a trigger into JASS for you to edit. This is a good method of learning some basic JASS functions as it allows you to see the equivalent GUI action as converted into JASS.

Additionally, you can enter a single line of JASS into gui by using the "Custom Script" action. A common use of the Custom Script action is to remove memory leaks. For example:
  • Set Point = Random Point in (Playable Map Area)
  • ----Do Stuff with that point----
  • Custom script: call RemoveLocation(udg_Point)
There are also multiple Tutorials on Hive that will help explain the basic premises of using and working with JASS coding.
 
Next time it would be wiser to post in the Triggers/Scripts section.
Anyways, all GUI code is converted to Jass so it's essentially the same language, GUI is just a frontend for it.

And triggers in GUI are different from triggers in Jass. In Jass they are just another variable type like regions or locations. You can use them to register events with and attach actions and conditions more dynamically then GUI is possible of.

Furthermore, I suggest you go read some Jass tutorials and not use GUI at all.
 
Status
Not open for further replies.
Top