52 posts Florida, Winter Garden. joined 2005-10-04
#1 2005-10-31
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.
460 posts joined 2004-08-27
#2 2005-10-31
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?
52 posts Florida, Winter Garden. joined 2005-10-04
#3 2005-11-01
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.
138 posts Seattle joined 2005-08-05
#4 2005-11-01
Make it less than, not less than or equal to.