• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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