- Joined
- Nov 20, 2007
- Messages
- 660
Hello guys, i'm trying to make a modificated Melee Map and i have a "remake" command which "recreate" the map. The problem is that if any one has race Undead, a mine is created so i they will have 2 mines.
Start
-
Events
- Player - Player 1 (Red) types a chat message containing !start as An exact match
- Conditions
-
Actions
- Set Game_PointLeak = (Center of Goldmine1 <gen>)
- Unit - Create 1 Gold Mine for Neutral Passive at Game_PointLeak facing Default building facing degrees
- Unit Group - Add (Last created unit) to Game_GoldMines
- Set Game_PointLeak = (Center of Goldmine2 <gen>)
- Unit - Create 1 Gold Mine for Neutral Passive at Game_PointLeak facing Default building facing degrees
- Unit Group - Add (Last created unit) to Game_GoldMines
- Set Game_PointLeak = (Center of Goldmine3 <gen>)
- Unit - Create 1 Gold Mine for Neutral Passive at Game_PointLeak facing Default building facing degrees
- Unit Group - Add (Last created unit) to Game_GoldMines
- Set Game_PointLeak = (Center of Goldmine4 <gen>)
- Unit - Create 1 Gold Mine for Neutral Passive at Game_PointLeak facing Default building facing degrees
- Unit Group - Add (Last created unit) to Game_GoldMines
-
Destructible - Pick every destructible in (Playable map area) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked destructible) is dead) Equal to True
-
Then - Actions
- Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Set Game_PointLeak = (Center of (Playable map area))
- Unit - Create 1 Dummy for Neutral Passive at Game_PointLeak facing Default building facing degrees
- Unit - Order (Last created unit) to Night Elf Wisp - Detonate Game_PointLeak
- Custom script: call RemoveLocation(udg_Game_PointLeak)
- Melee Game - Use melee time of day (for all players)
- Melee Game - Limit Heroes to 1 per Hero-type (for all players)
- Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
- Melee Game - Set starting resources (for all players)
- Melee Game - Remove creeps and critters from used start locations (for all players)
- Melee Game - Create starting units (for all players)
- Melee Game - Run melee AI scripts (for computer players)
- Trigger - Turn off Shuffle Players <gen>