• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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)
 
Could you give me a clearer explanation?

The trigger i gave is
if the building is built in a terrain that is not lava it will be destroyed and refunded.

I was just thinking that it will create blight at the location because its an undead building.... but I guess I'm wrong.... sorry..
 
Status
Not open for further replies.
Top