• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to 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