HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hiding or Destroying cancel button

02-22-2005, 03:37 AM#1
AFZ
Hello

I have a trigger that orders my builder to go to the build menu when my builder is selected. I want to make it so there is not a cancel build button.

Is this even possible?
02-22-2005, 09:56 AM#2
Guest
I don't think so :/
But maybe
02-22-2005, 06:35 PM#3
shadow1500
probably not, the problem is that the cancel button is used for abilities and many other things so even if it was possible you would kinda corrupt the map.
02-22-2005, 07:34 PM#4
ThyFlame
Hrm. You might be able to reposition the icon and then overlap it with something else... not sure though.
02-22-2005, 07:44 PM#5
Vexorian
no way at all to do that
07-15-2005, 10:21 PM#6
AFZ
T.T

Ok thanks all of you.
07-16-2005, 12:13 AM#7
EdwardSwolenToe
What about ordering the unit to stop if its ordered to 'cancel' ?
07-16-2005, 07:52 PM#8
TaintedReality
Quote:
Originally Posted by EdwardSwolenToe
What about ordering the unit to stop if its ordered to 'cancel' ?

I don't think you can catch the cancel order. I remember trying to do it with some spellbook thing a while ago.

Edit: Maybe with JASS, but I don't know JASS.
07-18-2005, 02:09 PM#9
Peekaboo
It should be possible, something along the lines of
Code:
call UnitRemoveAbilityBJ( 'Acan', GetTriggerUnit() )
This should remove it from triggering unit, if you want to find out how to change it to remove from another unit, make a blank trigger that just has unit - remove ability, then choose the unit and do convert to custom text.
NOTE: The code 'Acan' is a complete guess at the cancel code, I have no idea what it really is, either ask around or trial and error ;)
07-18-2005, 11:15 PM#10
Vexorian
There is no 'Acan' ability, there is no Cancel ability actually.
07-19-2005, 12:04 AM#11
weaaddar
you can probably detect cancel, it probably has an order id, I have no idea what it is.
07-20-2005, 12:09 AM#12
Vexorian
Only cancel of training and constructing has an orderid
07-20-2005, 12:41 AM#13
AFZ
Quote:
Originally Posted by Lord Vexorian
Only cancel of training and constructing has an orderid

Well, then that is just what i need! do you know that orderid ?
07-23-2005, 04:10 PM#14
Vexorian
You can figure out the order id easily with a trigger that shows orderids of issued orders and a building placed to train a unit and then ordering the building to cancel.

But the problem is that even if you knew the orderid, I figured out that blocking the cancel order would be impossible, since buildings can't be issued to stop I think, and pausing the building will just do the same that cancel does