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

How to add song before the map loads like in DotA ?

Status
Not open for further replies.
Level 5
Joined
May 12, 2013
Messages
70
In DotA, the song "Storm,Earth, and fire" is played before the map loads, like when the players join in. How do you do that ? How is that even possible ? Is that triggered ? Whats the event ? Please explain !
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
The normal editor does not give you the opportunity to modify it openly. config and main function are the two basic functions every map is supposed to have. config contains information about the player setup, forces etc., is run in lobby. main is activated during loadscreen, does some default functionality like setting of camera borders, light environment, creates preplaced objects, starts the blizzard.j and finally initializes your triggers.

You can see both config and main in the editor by causing a syntax error, then scrolling to the bottom of the compile error window.

In JNGP, vJass offers

//! inject config
//! endinject

analogue for main

to integrate custom lines in those functions.
 
Status
Not open for further replies.
Top