| 02-25-2006, 06:38 PM | #1 |
So you can't declare globals inside the JASS script, it has to be in the GUI variable editor? I just tried transfering my script to my map and realized I have to put all my global variables in using the variable editor. I'm keeping track of gobs of hero stats so it's going to be a pain in the ass =P. Can I add my globals to the global section of common or blizzard.j and then import that modified file into my map? Edit: Mmm tried putting em in blizzard.j and importing it..didn't work. Unless I'm using the wrong path name (I tried Blizzard.j, Scripts/Blizzard.j, and the default). Guess I'll start putting these into the variable editor =\. |
| 02-25-2006, 06:54 PM | #2 |
It is scripts\blizzard.j (note the \ instead of / ) , it should work. Probably you have to restart world editor and let that be the first map you open or place a copy of the custom blizzard.j inside a scripts subfolder located in warcraft III 's folder |
| 02-25-2006, 07:33 PM | #3 |
Yea, think I forgot to restart WE the first time. Anyways, the globals worked, then I realized you have to declare local variables at the start of the function, then had some other error that's fixed, so now I'm able to run the map ; ). Unfortunately...the code doesn't seem to work. But, I'll mess around with that and post if I need help. Thanks. |
