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

Unit to building with conditions

Status
Not open for further replies.
Level 4
Joined
Feb 4, 2014
Messages
50
Hello,

I am short for ideas and I would highly appreciate your professional intake of solutions.

I am trying to create a trigger that will build a tower on a spot of dying unit. So far I have it alright, but the tricky part is how do I make it so that if there is no way of that Tower to be built on the exact spot of the dying unit if there is no space for it. (Right now the Trigger just builds it at nearest point available)

(And also, is there any way how do I add here my trigger easily? I do not have English version of Map editor and I do not know how it is exactly word by word in English version.)

Thanks in advance.
 
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
I doubt there's a way to easily post GUI in English here without outright changing your editor's localization.

Anyhow, I'm not sure I really understand your question:

So far I have it alright, but the tricky part is how do I make it so that if there is no way of that Tower to be built on the exact spot of the dying unit if there is no space for it. (Right now the Trigger just builds it at nearest point available)

Do you mean that a tower shouldn't be built if there's no space for it? If so, you can create the unit at the specified point, then check to confirm that the unit actually exists at the place you told it to be created at, and if it doesn't then delete it.
 
Level 4
Joined
Feb 4, 2014
Messages
50
Yes that's pretty much an idea I needed to hear. Thanks for the fresh wind, I am most grateful.
The only problem after 15 minutes is that I am not quite sure how do I do such a thing :(
Looks like I have something to wrap my head around :)

Thank you PurplePoot
 
Level 4
Joined
Feb 4, 2014
Messages
50
Never thought of it this way Dat-C3, I have it already figured out but I might use your approach elsewhere. Thanks for your contribution I value it greatly.

Also thank you PurplePoot, I got the best out of your idea and I adjusted it for my purposes. Keep this attitude up, you're fine men you two.
 
Last edited:
Status
Not open for further replies.
Top