• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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