Map's header?

Status
Not open for further replies.
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.
 
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
 
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.
 
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?
 
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.
Back
Top