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

modification of melee initalization

Status
Not open for further replies.
Level 2
Joined
Jan 9, 2009
Messages
7
i want to make some races choosen by dialog window in-game. how to script the map to gain effect like in the creep rebellion after choosing race (main building in starting location)?
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
I don't know what the "Creep Rebellion" is, but if you want the players to choose their race, just create a trigger like this:
  • Events
    • Dialog - A dialog button is clicked for Dialog
  • Conditions
    • (Clicked dialog button) Equal to DialogButton[1]
  • Actions
    • Set TempLoc = ((Triggering player) start location)
    • Unit - Create 1 Town Hall for (Triggering player) at TempLoc facing Default building facing (270.0) degrees
    • Unit - Create 5 Builders for (Triggering player) at TempLoc facing Default building facing (270.0) degrees
    • Custom script: call RemoveLocation (udg_TempLoc)
Of course: the units aren't placed as they are in a melee-game, but you get the point...
Starting recourses can be set with the melee-trigger.
 
Status
Not open for further replies.
Top