• 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.

Map's header?

Status
Not open for further replies.
Level 9
Joined
Jul 27, 2006
Messages
652
First of all this is in the wrong section, it should be in the World Editor Help section ( could a mod move this? ).
Secondly the header is a place where you can add JASS script that will be added to the maps .j file before any other triggering.
You can find it by clicking on the icon/name of your map that is found at the top of all your triggers in the trigger editor.
 
Level 4
Joined
Apr 29, 2007
Messages
88
Map Header is a trigger (in JASS) that run as the first, it doesn't really needed except you want to put something before the Map Initialization and it's very rare

I only use this to set variable like 'set hero<0000 ge>=H_Aszael' for my project now, else? NO
 
Level 9
Joined
Jul 27, 2006
Messages
652
The custom script Header is not another trigger believer, and it is used for alot more than variable setups. The most common use is for system script e.G local handle variables ( or another type of Cache System ), Vex's Caster System ect.
The header is basicaly a section for functions that are use repeatedly in different places and allows you to avoid forward referancing.
 
Level 2
Joined
Apr 21, 2007
Messages
11
Thank you, now i'm understanding.
If i'm not wrong, the header code in the .j file is after this?:

//***************************************************************************
//*
//* Custom Script Code
//*
//***************************************************************************

But now i'm confused. I was reading something and it says that the map's header is apart from the MPQ file of the map.
How is that?
 
Level 9
Joined
Jul 27, 2006
Messages
652
Yup thats the where it starts and it ends at
Code:
//*
//* Triggers
//*
And it is apart of the mpq because its a part of the .j file in the mpq... But thats all.
 
Status
Not open for further replies.
Top