• 🏆 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!

Changing Blight!

Status
Not open for further replies.
Hi everybody on the hive.

The undead race, creates blight when constructing a building, and their buildings needs blight before they can be built. Then i ask, how to change the blight to lava cracks, and still make the buildings only buildable in the lava.
Ofcause i will give +rep for helping me and you are free to ask questions if you need more information. Also, it hurries a little so, a fast solution would be good.

~x-omg-x
 
you can go to object editor
under the pathing-placement requires change to buildable
then use triggers to cancle building if the terrain is not lava.

Allready tried that but it doesnt work right.
  • Pathing-buildable, makes normal terrain show up as green and not red.
  • You loose gold when placing somewhere without lava.
  • When finished constructing the building creates blight again, and not lava.

edit: Ohh sorry, didnt see your post pangahas. Will try that, i hope it works. Then it also creates lava cracks on other races blight, but whatever.
 
Level 9
Joined
Jul 11, 2009
Messages
294
..
it turns green,but if you make a trigger right.
it returns gold and cancle building if its not built on lava.

you can try this trigger
  • Destroy if not on lava
    • Events
      • Unit - A unit Begins construction
    • Conditions
      • (Unit-type of (Constructing structure)) Equal to (Your Structure)
    • Actions
      • Set TempPoint = (Position of (Constructing structure))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain type at TempPoint) Equal to (Terrain Type)(Lava)
        • Then - Actions
        • Else - Actions
          • Unit - Kill (Constructing structure)
          • Player - Add <Gold Cost> to (Owner of (Constructing structure)) Current gold
          • Player - Add <Lumber Cost> to (Owner of (Constructing structure)) Current lumber
      • Custom script: call RemoveLocation(udg_TempPoint)
 
Status
Not open for further replies.
Top