• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Requesting a Trigger Fix:

Status
Not open for further replies.
Level 4
Joined
Oct 4, 2005
Messages
65
Event-
Unit - A unit Begins an upgrade

Conditon-
(Mana of (Triggering unit)) Less than or equal to 499.00

Action-
Unit - Order (Triggering unit) to Cancel

I am trying to make it so that a building called "Village" to not upgrade to another building (but it does anyways). Some reason this trigger does not fire up.
 
If you're using meta-morph abilities, it wont cancel quick enough. Instead make the whole thing triggered:

Event
Unit - Begins upgrade

Condition
null

actions
if(Mana of (upgrading unit) <= 500)
then
DoNothing()
else
replace unit - blah blah, blah blah
endif


Sorry, didint have time to get the actual code, but you get the point yes?
 
Status
Not open for further replies.
Back
Top