Warcraft III resources & community, 2003–2006 · archived

Requesting a Trigger Fix:

4 posts
#1

Requesting a Trigger Fix:

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.
#2
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?
#3
Okay, the trigger works, but now I can't upgrade when I have 500 mana.

The trigger is set to not allow the upgrade if its lower than 500 mana, if the building is 500, then it should be allowed to upgrade but it does not.
#4
Make it less than, not less than or equal to.