- Joined
- Oct 7, 2014
- Messages
- 2,209
Hello Hive! I'm making an altered melee map where when I select a button in the dialog, for example the Burning Legion, it will create the structures for that race. I first created the Undead race structures so that it will have a Hunted Gold Mine, then after that when I tried to test it it created the Cursed Gold Mine(for the Burning Legion) then created another neutral gold mine. Then I tried to make other triggers for it to work but I still failed.
This last trigger well it doesn't change the gold mine. Really need help here guys.

-
Race Selection Pick 2
-
Events
-
Dialog - A dialog button is clicked for Race_Dialog_2
-
-
Conditions
-
Actions
-
Set Temp_Integer_1 = (Player number of (Triggering player))
-
Set Temp_Location = ((Triggering player) start location)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to Race_Dialog_Buttons_2[0]
-
-
Then - Actions
-
Melee Game - Create Undead starting units for (Triggering player) at Temp_Location (Include Heroes)
-
Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Necropolis
-
-
Then - Actions
-
Unit - Replace (Picked unit) with a Hall of Terror using The new unit's default life and mana
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Haunted Gold Mine
-
-
Then - Actions
-
Unit - Remove (Picked unit) from the game
-
Unit Group - Pick every unit in (Units within 1000.00 of ((Picked player) start location)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Gold Mine
-
-
Then - Actions
-
Unit - Create 1 Cursed Gold Mine for (Picked player) at (Position of (Picked unit)) facing Default building facing degrees
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Acolyte
-
-
Then - Actions
-
Unit - Replace (Picked unit) with a Cultist using The new unit's default life and mana
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Ghoul
-
-
Then - Actions
-
Unit - Replace (Picked unit) with a Imp using The new unit's default life and mana
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-