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

[Solved] Undead Starting Buildings Edit

Status
Not open for further replies.
Level 2
Joined
Jun 16, 2010
Messages
22
Hello,
I want to ask:
How I can remove the starting Haunted Gold Mine from the Undead race so I can have at the start of the map an normal Gold Mine, not and haunted one?


I've made a custom race based on Undead race where the workers doesn't require a Haunted Gold Mine to gather gold so, I don't need that starting Haunted Gold Mine...
 
Last edited:
Level 31
Joined
Jun 27, 2008
Messages
2,557
  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Entire map)) 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 Haunted Gold Mine
            • Then - Actions
              • Unit - Remove (Picked unit) from the game
            • Else - Actions
 
Level 2
Joined
Jun 16, 2010
Messages
22
Thx for help :)
It worked, that means the Thread is solved :)

(Even if i don't know how to set "Solved" option on the thread :)) )
 
Level 17
Joined
Jan 21, 2010
Messages
2,111
Check this out, i have 'repair' the above trigger with the 'working' one, i know that the first trigger is working, but its completely remove the gold mine
This one replace the haunted gold mine with the normal mine
  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Entire map)) 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 Haunted Gold Mine
            • Then - Actions
              • Unit - Replace (picked unit) with gold mine
            • Else - Actions
 
Last edited:
Level 2
Joined
Jun 16, 2010
Messages
22
Well, thx
Both triggers are working.I know that the first trigger will completely remove the Haunted Gold Mine and I don't have any problem with that xD...there are no races in my map that uses Haunted Gold Mine so, I don't need it.
Thx for the 2nd one, it's safer than the first :)
 
Status
Not open for further replies.
Top