HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Catching 'build' order possible?

08-26-2003, 07:48 PM#1
Oinkerwinkle
Is it possible to detect when someone presses the build button?
08-26-2003, 07:54 PM#2
Pesmerga
The icon 'Build' where the list comes up or selecting a building from the same menu? Neither, I believe, are detectable. My suggestion, figure out an alternative. Many things in wc3 can't be directly done, but theres always a work around.
08-26-2003, 08:45 PM#3
35263526
if u look in the ability editor you can find a spell with a wierd combination of letters and numbers for its name. It has the build icon, so maybe its the build ability. Try detecting it
08-26-2003, 09:32 PM#4
Oinkerwinkle
Where is that spell? What race and so on?
08-26-2003, 09:33 PM#5
Thunder-Hunter
Yes it is possible i think. I think its: Event - Build Button Is pressed.
08-26-2003, 09:41 PM#6
Thunder-Hunter
People People... It is possible. Easy way to find the event is new event, then search for text, then type in button and select it from the list.
08-26-2003, 11:24 PM#7
Oinkerwinkle
Quote:
This event should be used only in single player maps

So, I was hoping there would be another way.
08-26-2003, 11:30 PM#8
Pesmerga
It said SHOULD not required :) Give it a shot, but it probably causes hella lag in mutliplayer
08-26-2003, 11:43 PM#9
Oinkerwinkle
I need to be able to detect exactly which unit cast it, anyway. So... after more work, my porblem was mutated. I now need to know if it's possible to hide the build button. I tried covering it with a spell, but the spell was just pushed off to the side. Might I be able to move it to -1, -1, or 4, 1 or under the move button somehow?

Thanks for all the help so far!

Edit: After some tinkering, I've been able to change what it says on the build button(by editing CommandStrings.txt), but not it's location(by editing CommandFunc.txt).