Warcraft III resources & community, 2003–2006 · archived

using external script

6 posts
#1

using external script

I am building a campaign that uses the same 100 or so triggers in each of the 20 maps. I dont like having the code repeated, especially if I need to edit it from time to time. I was wondering if i could use jass so that a script could keep all of the triggers seperate from the individual maps.
#2
You could try merging them into blizzard.j and then import your custom blizzard.j to the campaign archive. You still need to call an initializer function in the blizzard.j archive if any of the triggers are to run on map initialization, but that shouldn't be too much of a pain.
#3
Sorry. That went right over my head. where is the blizzard.j file and how do i edit/import it?
Sorry if I sound like a dunce.
#4
Blizzard.j is the script file that contains all the utility functions that are used by GUI triggers. It can be edited and imported.
#5
But how do I import it?
#6
With the usual import functionality of WE.
If your question is rather how to get Blizzard.j in the first place, then get yourself an MPQ archive program like WinMPQ and extract in from War3patch.mpq