• 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] unknown variables

Status
Not open for further replies.
You have to create them manually if the code is in regular JASS. If the code was written in vJASS, it should be as easy as copy & pasting the code into your trigger editor (assuming you have JassNewGenPack).

A lot of resources in regular JASS should have a trigger in GUI to make that step easier. For example, if you were to open the test map in this system, you would see a trigger called "VariableCreator" that is just for that purpose:
http://www.hiveworkshop.com/forums/spells-569/physical-damage-detection-gui-v1-2-0-1-a-231846/
 
JNGP colors all the scripts, even if it is regular JASS. The resource should say whether it is vJASS. If you see keywords like globals or struct or library in the code, then it is vJASS--and it probably means the implementation is as easy as copy & pasting the code and copy & pasting whatever object editor things it uses. If it uses variables that say udg_ before the name, then it is using regular JASS & you may need to create the variables yourself or copy the GUI variable trigger if they provided one.
 
Status
Not open for further replies.
Top